Skip to content

docs(runtime): clarify the preset add-on lifetime comment#275

Closed
mfw78 wants to merge 1 commit into
refactor/launchcontext-touchupsfrom
docs/preset-add-on-lifetime-comment
Closed

docs(runtime): clarify the preset add-on lifetime comment#275
mfw78 wants to merge 1 commit into
refactor/launchcontext-touchupsfrom
docs/preset-add-on-lifetime-comment

Conversation

@mfw78

@mfw78 mfw78 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What

Reword the add-on lifetime comment in the preset launch path so it states the actual invariant: add_ons owns the boxed add-ons, add_on_refs borrows into it, and both must stay in scope for the launch call that consumes the refs.

Why

Review feedback on #194 flagged the prior wording ("both ... stay live across the launch await") as imprecise: the locals drop at the end of launch, not "across the await". The region sits in a downstream hot spot (the add-on rename car also touches these lines), so this lands as a top-of-train car rather than a mid-stack edit that would cascade-conflict across the rest of the train.

Testing

Comment-only change; no code path altered.

AI Assistance: Claude Code (Opus 4.8) used for the reword and PR authoring.

@mfw78 mfw78 force-pushed the refactor/launchcontext-touchups branch from 054f90d to e37a2c3 Compare July 8, 2026 05:31
@mfw78 mfw78 force-pushed the docs/preset-add-on-lifetime-comment branch from d8044f6 to 30d9a06 Compare July 8, 2026 05:31
@mfw78 mfw78 force-pushed the refactor/launchcontext-touchups branch from e37a2c3 to b14414e Compare July 8, 2026 06:21
@mfw78 mfw78 force-pushed the docs/preset-add-on-lifetime-comment branch from 30d9a06 to ada8d0f Compare July 8, 2026 06:21
@mfw78

mfw78 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated follow-up PR #278, which carries this change as a preserved commit. Closing to reduce the outstanding-PR count; the commit history is unchanged.

@mfw78 mfw78 closed this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant