fix(coding-agent): restore afterToolCall error overrides closes #3051

This commit is contained in:
Mario Zechner
2026-04-17 01:49:34 +02:00
parent 32c52a86a8
commit e9808b5854
2 changed files with 4 additions and 2 deletions

View File

@@ -398,17 +398,18 @@ export class AgentSession {
toolCallId: toolCall.id,
input: args as Record<string, unknown>,
content: result.content,
details: isError ? undefined : result.details,
details: result.details,
isError,
});
if (!hookResult || isError) {
if (!hookResult) {
return undefined;
}
return {
content: hookResult.content,
details: hookResult.details,
isError: hookResult.isError ?? isError,
};
};
}