mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-30 14:14:20 +01:00
do not mark errored tool calls as aborted
This commit is contained in:
@@ -1115,7 +1115,7 @@ export namespace Session {
|
|||||||
}
|
}
|
||||||
const p = await getParts(assistantMsg.sessionID, assistantMsg.id)
|
const p = await getParts(assistantMsg.sessionID, assistantMsg.id)
|
||||||
for (const part of p) {
|
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({
|
updatePart({
|
||||||
...part,
|
...part,
|
||||||
state: {
|
state: {
|
||||||
|
|||||||
Reference in New Issue
Block a user