Skip to content

refactor(dev): fold lifecycle shutdown into one ordered close loop - #18

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
refactor/dev-server-lifecycle-cleanup
Aug 29, 2026
Merged

refactor(dev): fold lifecycle shutdown into one ordered close loop#18
ScriptedAlchemy merged 2 commits into
mainfrom
refactor/dev-server-lifecycle-cleanup

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Applies the two outstanding cleanup recommendations from the Aug 18 simplification review (mined from the Claude session logs):
    • closeDevServerLifecycle collapses six sequential Promise.allSettled blocks plus six per-resource failure spreads into one ordered producer table and a single close loop. Close ordering (playground → mcp-apps → runtime-client-surfaces → runtime → mcp-sessions → coordinator → detach → completion log → logs) and failure semantics are unchanged; the ordering is now documented as load-bearing.
    • The Workbench root hoists const foregroundClient = foreground.current once, deleting eight foreground.current! non-null assertions at client construction sites.

Test plan

  • pnpm test:unit — 1664 passed, 0 failed
  • pnpm typecheck / pnpm rslint — clean
  • PR CI (integration suite covers dev-workbench.test.ts lifecycle shutdown paths)

The two cleanup recommendations from the Aug 18 simplification review
that were never applied: closeDevServerLifecycle's six sequential
Promise.allSettled blocks and per-resource failure spreads collapse
into one ordered producer table and close loop with identical close
ordering and failure semantics, and the Workbench root hoists the
foreground client once instead of asserting foreground.current! at
eight construction sites.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-28T21:33:38.060267Z bd48ffa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@changeset-bot

changeset-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fa6a401

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle@18
npm i https://pkg.pr.new/ScriptedAlchemy/agent-bundle/@agent-bundle/rsc-runtime@18

commit: fa6a401

@ScriptedAlchemy
ScriptedAlchemy merged commit 74e4652 into main Aug 29, 2026
19 of 23 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the refactor/dev-server-lifecycle-cleanup branch September 3, 2026 05:28
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