Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Terminal Session RecallNew to Visual Studio Code? Get it now.
Terminal Session Recall

Terminal Session Recall

orange-creatives

|
20 installs
| (0) | Free
Automatically resume Claude Code CLI sessions after VSCode restart
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal Session Recall

Unofficial VSCode extension — Automatically restore Claude Code CLI sessions after restart

v1.1.0-beta: This version adds urgent support for the resume dialog introduced in Claude CLI v2.1.90+. Because the CLI change was not accompanied by a public API, this extension detects the dialog via terminal output matching — behavior may be fragile. Please report issues at GitHub Issues.

v1.1.0-beta: このバージョンは Claude CLI v2.1.90+ で追加された resume ダイアログへの緊急対応です。CLI 側に公開 API がないため、ターミナル出力のパターンマッチで検知しており、動作が不安定になる可能性があります。不具合は GitHub Issues へ報告してください。

Demo

UI Overview

Features

  • Status bar shows live and idle session counts for the current project
  • QuickPick session manager: start new sessions, resume interrupted or completed sessions
  • Automatically restores interrupted sessions when VSCode restarts
  • Reset stale sessions — clear "active" entries whose terminal no longer exists
  • Diagnostic logging in the Output panel (channel: "TS Recall") for troubleshooting

Requirements

  • Claude Code CLI must be installed and available on your PATH

Settings

Setting Default Description
claudeResurrect.autoRestore true Automatically restore interrupted sessions on startup
claudeResurrect.autoRestoreMaxAge 24 Maximum age (hours) of sessions to auto-restore
claudeResurrect.claudePath "claude" Path to the Claude CLI executable
claudeResurrect.resumeDialogAction "summary" How to handle CLI's large-session resume dialog: summary, full, or ask

Limitations

  • Only sessions started through this extension are fully tracked. The status bar "live" count and auto-restore only cover sessions launched via the QuickPick menu or auto-restore. Sessions started manually in a terminal (e.g., claude or claude --resume) are not tracked as "live" — they may appear as idle in the session list even while running.
  • This extension does not manage session data. It only reads what Claude CLI creates. Sessions with no conversation (e.g., opened and immediately closed) are excluded from the session list, but cannot be deleted by this extension.
  • Read-only by design. Deleting or modifying ~/.claude/ data is out of scope. Use Claude CLI directly to manage session history.
  • WSL2 terminals are not fully supported. Shell integration does not reliably activate in WSL2 terminals, which can cause session restore commands to be sent before the shell is ready. If you need session persistence in WSL2, consider using tmux or similar terminal multiplexers instead. See #63 for details.

Data Access

This extension reads the following from ~/.claude/:

  • history.jsonl — session history (session ID, project path, first prompt, timestamp)
  • Directory listing of projects/<slug>/ (file names only, to locate session files)
  • File size of session JSONL files via stat() (content is not read)

This extension does NOT:

  • Write to ~/.claude/ (read-only access)
  • Read authentication tokens or API keys
  • Parse full conversation history
  • Send any data over the network
  • Collect telemetry

How we enforce this

  • All ~/.claude/ access is isolated in a single read-only module (claude-dir.ts)
  • CI checks block PRs that introduce write APIs or network calls outside allowed modules
  • The extension is open source — you can audit the code

日本語

非公式 VSCode 拡張 — Claude Code CLI のセッションを VSCode 再起動後に自動復元

デモ

UI 概要

機能

  • ステータスバーにプロジェクトごとのセッション数を表示(live / idle)
  • Quick Pick メニューでセッション管理:新規作成、中断・完了セッションの再開
  • VSCode 再起動時に中断セッションを自動復元
  • ステイルセッションのリセット — ターミナルが消失した "active" エントリを手動クリア
  • 「出力」パネルでの診断ログ(チャンネル: "TS Recall")でトラブルシューティング

前提条件

  • Claude Code CLI がインストール済みで PATH に通っていること

設定

設定 デフォルト 説明
claudeResurrect.autoRestore true 起動時に中断セッションを自動復元
claudeResurrect.autoRestoreMaxAge 24 自動復元の最大経過時間(時間)
claudeResurrect.claudePath "claude" Claude CLI のパス
claudeResurrect.resumeDialogAction "summary" CLI の大セッション resume ダイアログへの対応: summary, full, ask

制限事項

  • 追跡できるのは、この拡張経由で起動したセッションのみ。 ステータスバーの "live" カウントや自動復元は、QuickPick メニューまたは自動復元で起動したセッションだけが対象。ターミナルで手動起動した claude セッションは "live" として追跡されないため、実行中でも idle として一覧に表示されることがある。
  • セッションデータの管理は行わない。 CLI が作成したデータを読み取るだけ。会話が発生していないセッションは一覧に表示されない。
  • 読み取り専用。 ~/.claude/ への書き込み・削除は行わない。セッション履歴の管理は Claude CLI 側で行う。
  • WSL2 ターミナルは完全にはサポートされていない。 WSL2 ではシェル統合(Shell Integration)が正常に発火しない場合があり、シェル準備完了前に復元コマンドが送信されることがある。WSL2 でセッション永続化が必要な場合は tmux 等のターミナルマルチプレクサの利用を推奨。詳細は #63 を参照。

データアクセス

~/.claude/ から以下を読み取り専用で参照:

  • history.jsonl — セッション履歴(セッション ID、プロジェクトパス、最初のプロンプト、タイムスタンプ)
  • projects/<slug>/ のディレクトリ一覧(ファイル名のみ)
  • セッション JSONL ファイルのサイズ(stat() のみ、内容は読まない)

この拡張が 行わないこと:

  • ~/.claude/ への書き込み
  • 認証トークン・API キーの参照
  • 会話内容の読み取り
  • ネットワーク通信
  • テレメトリ収集

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft