fix: collapse session fork to one api

This commit is contained in:
Hypatia May
2026-07-06 13:57:59 +08:00
parent 37f3aedc0b
commit 37aac7f313
10 changed files with 284 additions and 177 deletions

View File

@@ -161,11 +161,10 @@ enter(session: Session): () => void
announce(session: Session): void
get(id: SessionId): Session | undefined
list(): Session[]
snapshot(source: SessionForkSource): SessionForkSeed
fork(options: ForkSessionOptions): Session
```
Source: [`packages/core/session/src/index.ts:369`](../../packages/core/session/src/index.ts)
Source: [`packages/core/session/src/index.ts:358`](../../packages/core/session/src/index.ts)
## `ctx.subagents` — `SubagentService`