fix(acp): clear Claude API retry banner when streaming content resumes

This commit is contained in:
xintaofei
2026-04-17 14:27:39 +08:00
parent 3e30ab7d60
commit 7a92f3eef7

View File

@@ -583,6 +583,10 @@ function applyStreamingAction(
return { return {
...conn, ...conn,
liveMessage: { ...prev, content: newContent }, liveMessage: { ...prev, content: newContent },
// Streaming content implies the SDK has recovered from any in-flight
// Claude API retry, so hide the retry banner immediately instead of
// waiting for the prompt cycle to end.
claudeApiRetry: null,
} }
} }
@@ -763,6 +767,7 @@ function connectionsReducer(
next.set(action.contextKey, { next.set(action.contextKey, {
...conn, ...conn,
liveMessage: { ...prev, content: newContent }, liveMessage: { ...prev, content: newContent },
claudeApiRetry: null,
}) })
return next return next
} }
@@ -865,6 +870,7 @@ function connectionsReducer(
next.set(action.contextKey, { next.set(action.contextKey, {
...conn, ...conn,
liveMessage: { ...prev, content: newContent }, liveMessage: { ...prev, content: newContent },
claudeApiRetry: null,
}) })
return next return next
} }
@@ -1154,6 +1160,7 @@ function connectionsReducer(
next.set(action.contextKey, { next.set(action.contextKey, {
...conn, ...conn,
liveMessage: { ...prev, content: newContent }, liveMessage: { ...prev, content: newContent },
claudeApiRetry: null,
}) })
return next return next
} }