feat(atlas): inject worktree_path into boulder continuation

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim 2026-02-26 00:40:23 +09:00
parent f872f5e171
commit 9cd6fc6135
2 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,7 @@ export async function injectBoulderContinuation(input: {
remaining: number remaining: number
total: number total: number
agent?: string agent?: string
worktreePath?: string
backgroundManager?: BackgroundManager backgroundManager?: BackgroundManager
sessionState: SessionState sessionState: SessionState
}): Promise<void> { }): Promise<void> {
@ -24,6 +25,7 @@ export async function injectBoulderContinuation(input: {
remaining, remaining,
total, total,
agent, agent,
worktreePath,
backgroundManager, backgroundManager,
sessionState, sessionState,
} = input } = input
@ -37,9 +39,11 @@ export async function injectBoulderContinuation(input: {
return return
} }
const worktreeContext = worktreePath ? `\n\n[Worktree: ${worktreePath}]` : ""
const prompt = const prompt =
BOULDER_CONTINUATION_PROMPT.replace(/{PLAN_NAME}/g, planName) + BOULDER_CONTINUATION_PROMPT.replace(/{PLAN_NAME}/g, planName) +
`\n\n[Status: ${total - remaining}/${total} completed, ${remaining} remaining]` `\n\n[Status: ${total - remaining}/${total} completed, ${remaining} remaining]` +
worktreeContext
try { try {
log(`[${HOOK_NAME}] Injecting boulder continuation`, { sessionID, planName, remaining }) log(`[${HOOK_NAME}] Injecting boulder continuation`, { sessionID, planName, remaining })

View File

@ -130,6 +130,7 @@ export function createAtlasEventHandler(input: {
remaining, remaining,
total: progress.total, total: progress.total,
agent: boulderState.agent, agent: boulderState.agent,
worktreePath: boulderState.worktree_path,
backgroundManager, backgroundManager,
sessionState: state, sessionState: state,
}) })