feat: Execute OpenCode agent nodes #315

Closed
opened 2026-07-13 19:46:10 +02:00 by dries · 0 comments
Owner

Parent

#311

What to build

Allow a workflow node to launch and supervise an OpenCode coding session, collect declared outputs when its turn completes, and expose the session and attempt from the run view.

Acceptance criteria

  • Agent nodes launch through the existing platform/session launch service rather than a second launch path.
  • Fresh sessions are the default and are linked to the workflow run, node, and attempt.
  • An explicit session-affinity key can reuse a compatible session across related attempts.
  • Session idle/terminal state completes the attempt without requiring a special agent completion tool.
  • Final-message, Git-diff, file, and JSON-file collectors are supported and validated.
  • The run view links to the agent session and displays its current and terminal state.
  • Workflow cancellation delegates to existing session cancellation and records the result.
  • Platform/host capability handling remains generic; frontend code does not branch on platform identity.
  • A sequential approval-to-agent workflow is verified through the workflow-run harness and thin transport tests.

Blocked by

## Parent #311 ## What to build Allow a workflow node to launch and supervise an OpenCode coding session, collect declared outputs when its turn completes, and expose the session and attempt from the run view. ## Acceptance criteria - [ ] Agent nodes launch through the existing platform/session launch service rather than a second launch path. - [ ] Fresh sessions are the default and are linked to the workflow run, node, and attempt. - [ ] An explicit session-affinity key can reuse a compatible session across related attempts. - [ ] Session idle/terminal state completes the attempt without requiring a special agent completion tool. - [ ] Final-message, Git-diff, file, and JSON-file collectors are supported and validated. - [ ] The run view links to the agent session and displays its current and terminal state. - [ ] Workflow cancellation delegates to existing session cancellation and records the result. - [ ] Platform/host capability handling remains generic; frontend code does not branch on platform identity. - [ ] A sequential approval-to-agent workflow is verified through the workflow-run harness and thin transport tests. ## Blocked by - #313
dries closed this issue 2026-07-16 00:56:08 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#315
No description provided.