Skip to content

Commit 3aa6eeb

Browse files
committed
do not mark errored tool calls as aborted
1 parent b6ee8e9 commit 3aa6eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/session/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ export namespace Session {
11151115
}
11161116
const p = await getParts(assistantMsg.sessionID, assistantMsg.id)
11171117
for (const part of p) {
1118-
if (part.type === "tool" && part.state.status !== "completed") {
1118+
if (part.type === "tool" && part.state.status !== "completed" && part.state.status !== "error") {
11191119
updatePart({
11201120
...part,
11211121
state: {

0 commit comments

Comments
 (0)