fix(acp): clear Claude API retry banner when streaming content resumes
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user