[VSCode Extension] Add stall detection and auto-retry settings for hung AI responses

Resolved 💬 1 comment Opened Apr 25, 2026 by SeijiShii Closed May 29, 2026

Summary / 概要

The Claude Code VSCode extension occasionally hangs while waiting for an
AI response. The current workaround is to stop the request manually and
re-send a short prompt (e.g. "go" / "動け") to make it resume. Please add
configurable stall-detection and auto-retry settings so users don't need
this manual workaround.

VSCode拡張でAIレスポンスが返ってこずハング状態になることが頻発します。
現状は手動で停止 → 短いプロンプト (「動け」等) を送ると再開しますが、
これを設定で自動化できるようにしてほしいです。

Proposed settings / 提案する設定

Add the following to extension settings (settings.json):

| Key | Type | Default | Description |
|---|---|---|---|
| claude.response.stallTimeoutMs | number | 60000 | No-token-received時間がこの値を超えたらストール扱い |
| claude.response.autoRetry | boolean | false | ストール検知時に自動で再リクエスト |
| claude.response.maxRetries | number | 2 | 自動リトライの最大回数 |
| claude.response.showResumeButton | boolean | true | ツールバーに手動「Resume」ボタンを表示 |

Expected behavior / 期待動作

  1. レスポンスのストリーミングトークンが stallTimeoutMs 経過しても

届かない場合、拡張がストール状態を検知。

  1. autoRetry: true なら直前のリクエストを maxRetries まで自動再送。
  2. autoRetry: false でも、ステータスバー or チャットUIに

「Resume」ボタンを表示しワンクリックで再開できる。

Environment / 環境

  • OS: Windows 11 Pro 26200
  • VSCode: <vscodeのバージョン>
  • Claude Code Extension: <拡張のバージョン>
  • Model: claude-opus-4-7 (1M context)

Related issues / 関連

  • #25976 (MCP server infinite hang)
  • #41031 (VSCode freezes since 2026-03-29)
  • #51732 (Windows "Query closed before response received")

Workaround currently used

Manually click stop, then send a short prompt like "動け" / "go" to
unstick the session.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗