Skip to content

Commit 2592608

Browse files
committed
fix: mark harness execution cleanup
1 parent 1999fe3 commit 2592608

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/opencode/src/session/prompt.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,7 @@ export namespace SessionPrompt {
19021902
// altimate_change start — disambiguate repeated concurrent tool-call ids
19031903
const { ctx, execution } = context(item.id, args, options)
19041904
// altimate_change end
1905+
// altimate_change start — release the execution identity on every exit path
19051906
try {
19061907
await Plugin.trigger(
19071908
"tool.execute.before",
@@ -1948,6 +1949,7 @@ export namespace SessionPrompt {
19481949
} finally {
19491950
input.processor.finishToolExecution(execution)
19501951
}
1952+
// altimate_change end
19511953
},
19521954
})
19531955
}
@@ -1968,6 +1970,7 @@ export namespace SessionPrompt {
19681970
// altimate_change start — disambiguate repeated concurrent tool-call ids
19691971
const { ctx, execution } = context(key, args, opts)
19701972
// altimate_change end
1973+
// altimate_change start — release the execution identity on every exit path
19711974
try {
19721975
await Plugin.trigger(
19731976
"tool.execute.before",
@@ -2066,6 +2069,7 @@ export namespace SessionPrompt {
20662069
} finally {
20672070
input.processor.finishToolExecution(execution)
20682071
}
2072+
// altimate_change end
20692073
}
20702074
tools[key] = item
20712075
}

0 commit comments

Comments
 (0)