[PR #5996] feat(session): add SessionRunner abstraction for async subagent delegation #11690

Closed
opened 2026-02-16 18:16:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5996

State: closed
Merged: No


Adds SessionRunner namespace as foundation for async subagent delegation (#5887).

  • runOnce() wraps SessionPrompt.prompt for sync execution
  • Stub methods for PR2: runBackground(), cancelBackground(), waitFor()
  • Zod schemas with OpenAPI refs
  • Tests for schema validation

PR2 will add the actual background queue and lifecycle events.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5996 **State:** closed **Merged:** No --- Adds `SessionRunner` namespace as foundation for async subagent delegation (#5887). - `runOnce()` wraps `SessionPrompt.prompt` for sync execution - Stub methods for PR2: `runBackground()`, `cancelBackground()`, `waitFor()` - Zod schemas with OpenAPI refs - Tests for schema validation PR2 will add the actual background queue and lifecycle events.
yindo added the pull-request label 2026-02-16 18:16:37 -05:00
yindo closed this issue 2026-02-16 18:16:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11690