mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
do not mark errored tool calls as aborted
This commit is contained in:
parent
b6ee8e92f9
commit
3aa6eeb426
1 changed files with 1 additions and 1 deletions
|
|
@ -1115,7 +1115,7 @@ export namespace Session {
|
|||
}
|
||||
const p = await getParts(assistantMsg.sessionID, assistantMsg.id)
|
||||
for (const part of p) {
|
||||
if (part.type === "tool" && part.state.status !== "completed") {
|
||||
if (part.type === "tool" && part.state.status !== "completed" && part.state.status !== "error") {
|
||||
updatePart({
|
||||
...part,
|
||||
state: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue