Merge pull request #2669 from MoerAI/fix/atlas-worktree-verification
fix(atlas): use worktree path for git verification when available (fixes #2229)
This commit is contained in:
@@ -120,11 +120,13 @@ export function createToolExecuteAfterHandler(input: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (toolOutput.output && typeof toolOutput.output === "string") {
|
if (toolOutput.output && typeof toolOutput.output === "string") {
|
||||||
const gitStats = collectGitDiffStats(ctx.directory)
|
const boulderState = readBoulderState(ctx.directory)
|
||||||
|
const worktreePath = boulderState?.worktree_path?.trim()
|
||||||
|
const verificationDirectory = worktreePath ? worktreePath : ctx.directory
|
||||||
|
const gitStats = collectGitDiffStats(verificationDirectory)
|
||||||
const fileChanges = formatFileChanges(gitStats)
|
const fileChanges = formatFileChanges(gitStats)
|
||||||
const extractedSessionId = extractSessionIdFromOutput(toolOutput.output)
|
const extractedSessionId = extractSessionIdFromOutput(toolOutput.output)
|
||||||
|
|
||||||
const boulderState = readBoulderState(ctx.directory)
|
|
||||||
if (boulderState) {
|
if (boulderState) {
|
||||||
const progress = getPlanProgress(boulderState.active_plan)
|
const progress = getPlanProgress(boulderState.active_plan)
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in New Issue
Block a user