Repository navigation
Runner split step 1: seam ctx + watchdogs module (#1447, stacked on #1454) - #1456
Merged
Merged
Conversation
One ctx object built after createRunner's owned state, so seam modules (electron/runner-<seam>.js, create<Seam>(ctx)) can destructure their deps. Holds only what the first seam consumes; later steps extend it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447) Seam 1 of the createRunner split. checkStalls, heartbeatActiveLanes and the 15s stallTimer move verbatim behind a ctx destructure; the module owns the timer and stopAll calls its dispose(). The return object and module.exports are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The packagers copy only electron/*.js, so the electron/runner/ folder the note proposed would be dropped from the packaged app. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Oct 4, 2026
Closed
currentbits
changed the base branch from
coder/refactor-g-lift-createrunner-helpers-spl-ad7272
to
main
October 5, 2026 11:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 3, step 1 of the
createRunnersplit (#1447), followingdocs/superpowers/specs/2026-10-04-runner-split-design.md.Stacked on #1454. Merge that first; GitHub then retargets this PR to
main.What changes
ctxinsidecreateRunner. It's built once, aftercreateRunner's own state. For now it holds only what the first seam uses:store,active,nowFn,resolveProvider,appendMessage,pushDetail,pushThreadsChanged. Later steps extend it.electron/runner-watchdogs.js.checkStalls,heartbeatActiveLanesand the 15 sstallTimer(with its.unref()and the "never break the runner" try/catch) move verbatim behind aconst {…} = ctx. The module owns the timer;stopAllcalls itsdispose(). The timer still starts at the same point during boot: after the crew sweep, beforerefreshAllQuotaWaits().electron/runner-<seam>.js, exportingcreate<Seam>(ctx).ctx.startRun(...).dispose()for any timer.require("./runner.js")from a seam.electron/runner/folder:package-app.shandpackage-cross.shcopy onlyelectron/*.js, so files in a subfolder would be missing from the packaged app. The design note is corrected here to match.createRunnerandmodule.exportsare unchanged.Checked
dispose.npm run typecheckclean.🤖 Generated with Claude Code