Skip to content

Commit 0a4b66e

Browse files
committed
Fix Freebuff fallback session restart
1 parent a2f1b50 commit 0a4b66e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cli/src/hooks/use-freebuff-session.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,10 @@ export function useFreebuffSession(): UseFreebuffSessionResult {
460460
useFreebuffModelStore
461461
.getState()
462462
.setSelectedModel(FALLBACK_FREEBUFF_MODEL_ID)
463-
nextMethod = 'GET'
463+
// The unavailable response came from a POST attempt. Re-POST with
464+
// the fallback model; a GET would only redisplay the old ended row
465+
// and leave the restart banner stuck in its pending state.
466+
nextMethod = 'POST'
464467
schedule(0)
465468
return
466469
}

0 commit comments

Comments
 (0)