Repository navigation
Split cli-sessions.js into one module per provider (#1447 pass O) - #1467
Merged
Merged
Conversation
…hared.js Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ex.js Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aude.js Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rsor.js Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…opencode.js Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move for #1447 round 6; cli-sessions.js keeps the same exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move for #1447 round 6; cli-sessions.js keeps the same exports. 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 O of #1447.
electron/cli-sessions.jsimported CLI session history for every provider in one 2,566-line file of 91 flat functions. It's now split into one flat module per provider plus a shared module, withcli-sessions.jskept as the entry point. No caller changes its require.cli-sessions-opencode.jscli-sessions-claude.jscli-sessions-kimi.jscli-sessions-muse.jscli-sessions-grok.jscli-sessions-codex.jscli-sessions-cursor.jscli-sessions-shared.js(helpers used by several providers)Checked
Object.keys(require("./electron/cli-sessions.js"))is identical on main and this branch, 42 keys.letat module scope in any of the files, so there's nothing to own or share. Shared helpers live only in-shared.js, which requires none of the others.npm run typecheckclean.npm run test:smoke(real Electron launch) passes A–E.🤖 Generated with Claude Code