Skip to content

Conversation

@edlsh
Copy link
Contributor

@edlsh edlsh commented Dec 22, 2025

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.

…ation

PR1 of async subagent delegation stack (Issue sst#5887).

This commit introduces the SessionRunner namespace which provides a unified
interface for executing session loops:

- runOnce(): Synchronous execution wrapping SessionPrompt.prompt (implemented)
- runBackground(): Fire-and-forget execution for async delegation (scaffold only)
- Options/RunResult types for future background execution
- State tracking infrastructure for active background runs

No behavior change - this is purely an abstraction layer.

Next: PR2 will implement runBackground() with lifecycle events.
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