fix(vscode): show stop button during rate limit retry state (#8552)

The PromptInput isBusy() check only matched 'busy' status, hiding the
stop button and disabling Escape-to-abort when the session was in 'retry'
state (e.g. rate limited). Changed to match any non-idle status so users
can always abort.
This commit is contained in:
Marius
2026-04-08 10:34:41 +02:00
committed by GitHub
parent c9e8188504
commit 634cec88b1
@@ -244,7 +244,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
window.addEventListener("compactSession", onCompact)
onCleanup(() => window.removeEventListener("compactSession", onCompact))
const isBusy = () => session.status() === "busy"
const isBusy = () => session.status() !== "idle"
const isDisabled = () => !server.isConnected()
const hasInput = () => text().trim().length > 0 || imageAttach.images().length > 0 || reviewComments().length > 0
const canSend = () => hasInput() && !isDisabled() && !props.blocked?.()