Repository navigation
Split workflow.js: per-provider spawners and phase helpers into modules (#1447 pass R) - #1470
Merged
Merged
Conversation
…1447) Pure move: hashSeed, capitalize, truncate, agentModelLabel, the view builders, agent-id parsing, prompt building, template checks and kickoffText. Bodies verbatim; workflow.js re-exports the same keys. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447) Pure move: crossesBoundary, resolveWorkflowSpawn, notePhaseGuardrail, realSessionId and claudeStreamSessionId, shared by every per-provider phase spawner. Bodies verbatim. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-claude.js (#1447) Pure move of spawnAgentClaude (claude, grok and other claude-stream providers). Body verbatim; workflow.js drops the imports only it used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#1447) Pure move of spawnAgentCodex. Body verbatim; workflow.js drops the imports only it used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447) Pure move of spawnAgentKimi. Body verbatim; workflow.js drops the imports only it used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447) Pure move of spawnAgentMuse. Body verbatim; workflow.js drops the imports only it used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
….js (#1447) Pure move of spawnAgentCursor. Body verbatim; workflow.js drops the imports only it used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…code.js (#1447) Pure move of spawnAgentOpencode. Body verbatim; workflow.js keeps only spawnPhaseAgent's dispatch plus the run loop, and drops the imports the spawners used. 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. |
Closed
4 tasks
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 6, pass R of #1447.
electron/workflow.js(2,557 lines) runs multi-phase Build workflows. Its per-provider agent spawners and view/prompt helpers move into eight flat modules.startWorkflowRunstays in workflow.js, and the deps-object contract withrunner.js/runner-provider-*.jsis unchanged.workflow-phases.jsworkflow-agents-muse.jsworkflow-agents-codex.jsworkflow-agents-cursor.jsworkflow-agents-claude.jsworkflow-agents-opencode.jsworkflow-agents-kimi.jsworkflow-spawn.jsworkflow.js: 2,557 → 1,106 lines.Checked
Object.keys(require("./electron/workflow.js"))is identical on main and this branch (15 keys).letat module scope in any of the files. Shared helpers live only inworkflow-spawn.js.electron/test/workflow*.test.jspass 97/97.npm run typecheckis clean.test:smokepasses A–E. Pass E runs a real workflow end to end.🤖 Generated with Claude Code