GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove CLI from electron app by Brendonovich · Pull Request #17803 · anomalyco/opencode

Conversation

@Brendonovich

@Brendonovich Brendonovich commented Mar 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
  • 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?)
  • Inherit shell env
  • opencode package types - will probably do in a separate PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Brendonovich
Brendonovich commented Mar 17, 2026
View reviewed changes
Comment thread packages/opencode/script/build.ts Outdated
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`,

@Brendonovich Brendonovich Mar 17, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Brendonovich
Brendonovich commented Mar 17, 2026
View reviewed changes
Comment thread packages/opencode/src/server/routes/session.ts
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)

@Brendonovich Brendonovich Mar 17, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Brendonovich
Brendonovich marked this pull request as ready for review March 17, 2026 10:51
@Brendonovich
Brendonovich requested a review from adamdotdevin as a code owner 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
@Brendonovich Brendonovich added the beta label Mar 26, 2026
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
afbcfc2
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
6c51682
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
7da8177
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
b56ad40
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
690091d
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
4b9bae5
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
cf7403b
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
3c32883
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
0fda1ef
opencode-agent Bot added a commit that referenced this pull request Mar 26, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
7fca811
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
5c412f5
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
43a7ef5
@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
Apply PR #17803: Remove CLI from electron app
15ef3e2
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
e51c915
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
b8ec06c
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
a2eeaee
opencode-agent Bot added a commit that referenced this pull request Mar 27, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
ce6bc3e
opencode-agent Bot added a commit that referenced this pull request Mar 29, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
053e466
opencode-agent Bot added a commit that referenced this pull request Mar 29, 2026
@opencode-agent
Apply PR #17803: Remove CLI from electron app
c1f4302
@opencode-agent

opencode-agent Bot commented Mar 29, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

4 similar comments
@opencode-agent

opencode-agent Bot commented Mar 30, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented Mar 31, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented Apr 3, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented Apr 5, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sjqwert

sjqwert commented Apr 5, 2026

Copy link
Copy Markdown

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge failed

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

1 similar comment
@sjqwert

sjqwert commented Apr 5, 2026

Copy link
Copy Markdown

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge failed

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented Apr 5, 2026

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Brendonovich and others added 12 commits April 7, 2026 12:01
@Brendonovich
electron: remove cli and use server code directly
759acb6
@Brendonovich
build-node in prepare
da38da0
@Brendonovich
fix web ui in electron
b797a14
@Brendonovich
electron: bundle node-pty properly (#21148)
eb30104
@Brendonovich
electron: implement server env probe for in-process server (#21196)
14042e2
@Brendonovich
rename token to auth token
8515994
@Brendonovich
remove more bun apis + cut bundle size
8cc0e20
@Brendonovich
Merge branch 'dev' into brendan/electron-remove-cli
d29cbbc
@Brendonovich
fix deps + move asset copies to writeBundle
d73f635
@Brendonovich
add "@valibot/to-json-schema" as electron dep
2ae0bb7
@Brendonovich
Merge branch 'dev' into brendan/electron-remove-cli
0da8405
@Hona
rem ove bun api
6578ced
OpeOginni
OpeOginni reviewed Apr 9, 2026
View reviewed changes
Comment thread packages/app/src/components/terminal.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Brendonovich and others added 2 commits April 9, 2026 10:17
@Brendonovich
move auth_token set inside sameOrigin check
71b315a
@Brendonovich
Merge branch 'dev' into brendan/electron-remove-cli
368bb9d
@Samueru-sama Samueru-sama mentioned this pull request Apr 18, 2026
Unable to install superpowers on centos7 pkgforge-dev/opencode-AppImage-Enhanced#11
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin
1 more reviewer
@OpeOginni OpeOginni OpeOginni left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

beta

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Brendonovich @sjqwert @OpeOginni @Hona
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.