Merge remote-tracking branch 'origin/master' into feat/session-workspace-root

This commit is contained in:
LegGasai committed 2026-11-17 19:29:22 +08:00
commit 854ebc768a
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 }),