-
Notifications
You must be signed in to change notification settings - Fork 0
Stabilize OpenCode pending approval/question compatibility #20
Copy link
Copy link
Open
Labels
agent:workerReady for an implementation worker.Ready for an implementation worker.area:aiAI and agent workflow behavior.AI and agent workflow behavior.area:backendBackend, CLI, and core workflow implementation.Backend, CLI, and core workflow implementation.priority:p1High priority work.High priority work.status:readyReady to start.Ready to start.type:taskConcrete implementation task.Concrete implementation task.
Description
Metadata
Metadata
Assignees
Labels
agent:workerReady for an implementation worker.Ready for an implementation worker.area:aiAI and agent workflow behavior.AI and agent workflow behavior.area:backendBackend, CLI, and core workflow implementation.Backend, CLI, and core workflow implementation.priority:p1High priority work.High priority work.status:readyReady to start.Ready to start.type:taskConcrete implementation task.Concrete implementation task.
Goal
Make pending permission/question discovery and reply handling reliable across
/api/tree,/api/agent/tree, approval routes, SSE state, and OpenCode 1.3.Derived from #14 Phase 6 dirty branch handoff.
Scope
/permission,/question, and/question/:requestID/replyrequest/response shapes against OpenCode 1.3.Out of Scope
Acceptance Criteria
Functional:
GET /api/treeandGET /api/agent/treeexpose pending permissions/questions consistently.Code/product quality:
Verification
./node_modules/.bin/vitest run src/server/routes/agent.test.ts src/server/routes/approval.test.ts src/server/sse/broadcaster.test.ts./node_modules/.bin/tsc -p tsconfig.json --noEmitgit diff --checkNotes
Current dirty-branch evidence from #14: route tests fail because
agent.tsnow callsopencodeAdapter.listPendingPermissions, but the existing test mock does not provide that method.approval.test.tsandbroadcaster.test.tspassed in the handoff run.