Merge branch 'feat/session-workspace-root' into feat/session-workspace-root-consumers

This commit is contained in:
LegGasai committed 2026-11-17 19:50:49 +08:00
commit f9eb524891
1155 files changed
+31527 -9869

No files matched your search

@@ -262,6 +262,7 @@ export class SessionCommandController {
)
}
const seed = buildForkSeed(source.events, boundary)
const endSeq = SessionLogOffset(Math.min(boundary + 1, source.persistedEventCount ?? boundary + 1))
let workspace: Workspace | undefined
try {
workspace = await this.forkWorkspace(source.header)
@@ -279,6 +280,7 @@ export class SessionCommandController {
await this.ctx.agents.create({
sessionId: childId,
seed,
parentSource: { sessionId: request.sessionId, endSeq },
inheritedEventCount: SessionLogOffset(boundary + 1),
meta: {
...(source.header.cwd === undefined ? {} : { cwd: source.header.cwd }),