Skip to content

feat(wezterm): show tab badge for Claude Code status - #67

Open
siraken wants to merge 2 commits into
mainfrom
feat/wezterm-claude-code-tab-badge
Open

feat(wezterm): show tab badge for Claude Code status#67
siraken wants to merge 2 commits into
mainfrom
feat/wezterm-claude-code-tab-badge

Conversation

@siraken

@siraken siraken commented Mar 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Claude Codeが応答待機中(idle)のときWezTermタブに緑の●バッジ、許可待ち(permission)のとき黄色の●バッジを表示
  • Claude Code Notification/UserPromptSubmit/SessionEnd hooksで$TMPDIRにステータスファイルを書き出し、WezTermのformat-tab-titleで読み取るファイルベースIPC方式
  • $WEZTERM_PANEによるペイン単位の管理で、複数セッション並列実行にも対応

Test plan

  • 手動でステータスファイルを作成し、タブに緑バッジが表示されることを確認
  • ステータスファイル削除でバッジが消えることを確認
  • $TMPDIRパスでmacOSのアクセス許可ダイアログが出ないことを確認

🤖 Generated with Claude Code

siraken and others added 2 commits March 3, 2026 11:42
Apply mdformat-compliant numbered list style to fix treefmt CI check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add colored badge indicator on WezTerm tabs when Claude Code is waiting
for user input (green) or permission approval (yellow). Uses file-based
IPC via $TMPDIR to communicate status between Claude Code hooks and
WezTerm's tab title formatter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@siraken siraken self-assigned this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant