Repository navigation
refactor(headless): use opencode SDK for threads - #4191
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d89e63cb62f7a629013175d72d6e25230f25a719). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
d89e63c to
d5c78a4
Compare
Deploying openwork with
|
| Latest commit: |
21bdf8e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://be686005.openwork.pages.dev |
| Branch Preview URL: | https://thin-headless-threads-openco.openwork.pages.dev |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d5c78a46b12219b1fcdabd7edd7985c1fddb051e). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
d5c78a4 to
21bdf8e
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (21bdf8e4fad2240e37479969bb771416380e4bf6). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Stack
Stacked on #4190 → #4189 → #4188. Review only commit
0f7589f2/ the diff againstthin/automation-runner-opencode-sdk.Why
@openwork/headless-threadsis the stable programmatic thread API used by Den Automations and MCP remote-session capabilities. It still called OpenWork’s duplicate session create/messages/snapshot/abort endpoints. This migrates its transport to the official OpenCode SDK through the workspace-scoped proxy while preserving the package’s public API and transcript/wait semantics.What changed
@opencode-ai/sdkas a direct package dependency (3-line importer-only lockfile change; trustedxlsxintegrity preserved and frozen install verified).session.create, then optionalsession.promptAsyncsession.messagesfor admission/idempotency checkssession.get+messages+todo+statussnapshotssession.promptAsyncfor turnssession.abortwith native boolean acceptanceHeadlessThreadErrorfieldsVerification
pnpm --filter @openwork/headless-threads test— 36 pass / 0 failpnpm --filter @openwork/headless-threads typecheck— passpnpm --filter @openwork/headless-threads build— passbun ... apps/server/src/headless-threads.e2e.test.ts— 2 pass / 0 failpnpm install --frozen-lockfile --prefer-offline— pass; supply-chain policy verified 1718 entriesnode:sqliteinworkspace-kv-store.node.test.ts; file untouched, and hosted parent CI is green on Linux/macOS.git diff --check— passCoverage added