Repository navigation
Lift closure-free createRunner helpers, add the runner split design (#1447 pass G) - #1454
Merged
currentbits merged 2 commits intoOct 5, 2026
Merged
Conversation
…pers.js (#1447) Scope analysis (babel) of createRunner's 123 inner functions found 11 that reference no createRunner binding. Move them verbatim (dedented) to electron/runnerHelpers.js along with PLAN_TRUNCATE, and require them back. Drops the now-unused DECISION_CANCEL import from runner.js. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
deleted the
coder/refactor-g-lift-createrunner-helpers-spl-ad7272
branch
October 5, 2026 11:00
currentbits
restored the
coder/refactor-g-lift-createrunner-helpers-spl-ad7272
branch
October 5, 2026 11:01
currentbits
deleted the
coder/refactor-g-lift-createrunner-helpers-spl-ad7272
branch
October 5, 2026 11:18
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 2, pass G of #1447. Two parts.
1. Lift closure-free helpers out of
createRunnerA babel scope analysis checked each of
createRunner's 123 inner functions. 11 of them reference no binding in its scope. They move verbatim, withPLAN_TRUNCATE, toelectron/runnerHelpers.js:shouldRecordSession,noticePrompt,formatQueuedPrompt,firstChanged,planText,questionInfo,replyCodexJsonRpc,replyCodexJsonRpcError,cancelCodexServerRequests,sanitizeAttachments,attachmentPromptSection. The other 112 all touchstore,activeor another stateful function, so they're left alone.2. Design note:
docs/superpowers/specs/2026-10-04-runner-split-design.mdThe note is the plan for splitting the rest of
createRunnerin a later round:create<Seam>(ctx)factories, generalising the deps object thatworkflow.jsalready takes.runner.js.Checked
createRunnerdeclares no local namedpath,truncate,approvalResponse,DECISION_CANCEL,normalizeQuestionsorPLAN_TRUNCATE, so every lifted helper resolves the same bindings as before.npm run typecheckclean.🤖 Generated with Claude Code