Skip to content

Remove CLI from electron app#17803

Open
Brendonovich wants to merge 3 commits intorefactor/npm-over-bunprocfrom
brendan/electron-remove-cli
Open

Remove CLI from electron app#17803
Brendonovich wants to merge 3 commits intorefactor/npm-over-bunprocfrom
brendan/electron-remove-cli

Conversation

@Brendonovich
Copy link
Copy Markdown
Member

@Brendonovich Brendonovich commented Mar 16, 2026

  • OpenCode server is now spawned using Server.listen in the Electron main process
  • syncCli functionality has been removed as CLI is no longer bundled with the app

TODO

  • Improve logging
  • Trigger SQlite migration manually
  • Better types for opencode node build (might need to make package composite: true?)

await Bun.write(
path.join(dir, "src/provider/models-snapshot.ts"),
`// Auto-generated by build.ts - do not edit\nexport const snapshot = ${modelsData} as const\n`,
`// Auto-generated by build.ts - do not edit\nexport const snapshot = ${modelsData} as Record<string, unknown>\n`,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this as the const type is too large for ts to generate

Comment on lines +797 to +801
const sessionID = c.req.valid("param").sessionID
const body = c.req.valid("json")
SessionPrompt.prompt({ ...body, sessionID })

return c.body(null, 204)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node isn't happy when returning a 204 with a body

@Brendonovich Brendonovich marked this pull request as ready for review March 17, 2026 10:51
@Brendonovich Brendonovich changed the base branch from opencode-2-0 to refactor/oauth-node-http March 26, 2026 01:39
@Brendonovich Brendonovich changed the base branch from refactor/oauth-node-http to dev March 26, 2026 01:42
@Brendonovich Brendonovich force-pushed the brendan/electron-remove-cli branch from 7010a05 to 8fc5f8a Compare March 26, 2026 08:37
@Brendonovich Brendonovich changed the base branch from dev to refactor/npm-over-bunproc March 26, 2026 08:38
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 26, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
@Brendonovich Brendonovich force-pushed the brendan/electron-remove-cli branch from 9154038 to f501d3c Compare March 27, 2026 04:59
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 27, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 28, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
opencode-agent bot added a commit that referenced this pull request Mar 29, 2026
@opencode-agent
Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

2 similar comments
@opencode-agent
Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

@opencode-agent
Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant