feat(run): integrate session origins and agent detection into continuation state

- Update continuation-state to use session_origins from boulder state
- Add isTrackedDescendantSession helper for lineage detection
- Integrate getLastAgentFromSession for reliable agent detection
- Update completion tests for new lineage-aware continuation logic
- Add JSON backend tests for continuation state

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-04-05 17:15:08 +09:00
parent d555410745
commit d143d2dfa6
2 changed files with 36 additions and 0 deletions
+2
View File
@@ -1,4 +1,5 @@
import { getPlanProgress, readBoulderState } from "../../features/boulder-state"
import { getSessionAgent } from "../../features/claude-code-session-state"
import {
getActiveContinuationMarkerReason,
isContinuationMarkerActive,
@@ -65,6 +66,7 @@ async function hasActiveBoulderContinuation(
}
const sessionAgent = await getLastAgentFromSession(sessionID, client)
?? getSessionAgent(sessionID)
if (!sessionAgent) {
return false
}