Skip to content

feat(core): continue subagent sessions - #40931

Draft
opencode-agent[bot] wants to merge 2 commits into
v2from
subagent-session-id
Draft

feat(core): continue subagent sessions#40931
opencode-agent[bot] wants to merge 2 commits into
v2from
subagent-session-id

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an optional sessionID input to continue an existing foreground subagent session
  • preserve the child session history while validating parent ownership and agent identity
  • expose the reusable session ID in foreground and background completion envelopes as sessionID
  • reject running or explicitly backgrounded continuation until that lifecycle is implemented separately

Testing

  • bun test test/tool-subagent.test.ts from packages/core
  • bun typecheck from packages/core
  • scoped Effect pattern scan for the changed Core source files

Requested by: @rekram1-node (Aiden Cline via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant