Skip to content

Commit f194c1c

Browse files
fix(web): offer Explain again after an interrupted explanation request
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f473232 commit f194c1c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ThreadErrorExplanation.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export function ThreadErrorExplanation({
4444
});
4545
if (result._tag === "Success") {
4646
setState(explanationStateFromResult(error, result.value));
47-
} else if (!isAtomCommandInterrupted(result)) {
47+
} else if (isAtomCommandInterrupted(result)) {
48+
// Nothing was answered, so offer Explain again rather than a stuck pending line.
49+
setState({ kind: "idle" });
50+
} else {
4851
setState(explanationStateFromFailure(squashAtomCommandFailure(result)));
4952
}
5053
};

0 commit comments

Comments
 (0)