mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-20 16:47:40 +02:00
[eric] agents: mid-turn provider backoff shows a muted retrying pill instead of a dead card, and transient pills survive session status frames
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
updateSessionContext,
|
||||
setContextOverflow,
|
||||
setRateLimited,
|
||||
setProviderRetrying,
|
||||
setContextRecovered,
|
||||
setAppDepsChanged,
|
||||
setMcpSuggestions,
|
||||
@@ -644,6 +645,17 @@ class WebSocketManager {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'agent:provider_retrying':
|
||||
// Mid-turn CLI backoff: the provider 500/429'd and the CLI is silently waiting; show the muted pill so the card doesn't read as dead (ENG-178).
|
||||
if (session_id) {
|
||||
store.dispatch(setProviderRetrying({
|
||||
sessionId: session_id,
|
||||
attempt: typeof data.attempt === 'number' ? data.attempt : null,
|
||||
delayMs: typeof data.delay_ms === 'number' ? data.delay_ms : null,
|
||||
}));
|
||||
}
|
||||
break;
|
||||
|
||||
case 'agent:rate_limited':
|
||||
// Provider throttle that outlasted the silent backoff. Transient muted pill, not a card; auto-clears frontend-side.
|
||||
if (session_id) {
|
||||
|
||||
Reference in New Issue
Block a user