Repository navigation
refactor(desktop): use opencode SDK in automation runner - #4190
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 28, 2026
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a806a929e698c4fd66f736e3981f5d194677acaa). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
benjaminshafii
force-pushed
the
thin/automation-runner-opencode-sdk
branch
from
August 28, 2026 18:05
a806a92 to
c4e61dd
Compare
Deploying openwork with
|
| Latest commit: |
c4e61dd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b3bea335.openwork.pages.dev |
| Branch Preview URL: | https://thin-automation-runner-openc.openwork.pages.dev |
Contributor
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (c4e61dd61085519bca9943e3cacbde3b40f601fb). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
This branch was successfully deployed
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.
Stack
Stacked on #4189, which is stacked on #4188. Review only commit
26f2a4f3/ the diff againstthin/proxy-scope-hardening.Why
The desktop Automation/remote-session runner still used OpenWork’s duplicate session create/abort/snapshot endpoints. This migrates that trusted consumer to the official
@opencode-ai/sdk/v2/clientthrough the workspace-mounted, scope-hardened proxy from #4189.What changed
/workspacesdiscovery and Den runner APIs./workspace/:id/opencode.session.create.session.promptAsync, preserving provider/model/variant/text semantics.session.get,session.messages(limit: 200),session.todo, andsession.status.session.abort. The cleanup call intentionally does not reuse the already-aborted assignment signal, so it can actually reach OpenCode.Server session wrappers remain for other consumers and are removed only after the rest of the stack migrates.
Verification
Branch-specific
node --test apps/desktop/electron/automation-runner.test.mjs— 34 pass / 0 fail./node_modules/.bin/tsc -p apps/desktop/tsconfig.electron.json --noEmit— passpnpm --filter @openwork/desktop check:electron— pass (52 renderer methods covered)pnpm --filter @openwork/desktop typecheck:electron— passvitest ... specs/automation-runner-reconnect-backoff.test.ts— 1 pass / 0 failgit diff --check— passBroader local matrix
EEXIST, and Node 22 loading an unbuilt workspace.tsexport.Contract coverage added/updated
limit=200