Claude Code 2.1.145: JSON Sessions, Plugin Discovery, Agent Fixes
Claude Code 2.1.145 adds JSON session listing for scripting, plugin discovery previews, and fixes permission bypasses, MCP errors, and task ordering issues.
TL;DR
- claude agents --json outputs live sessions for scripting and status bars
- Plugin discovery now previews commands, agents, skills before install
- Fixed permission bypass, MCP errors, voice push-to-talk, and task list ordering
New
- claude agents --json — List live Claude sessions as JSON for tmux-resurrect, status bars, and session pickers
- Plugin discovery screens — /plugin Discover and Browse now show commands, agents, skills, hooks, and MCP/LSP servers before installation
- Agent tab title indicator — claude agents terminal tab now displays awaiting-input count so you know when an agent needs attention
- Status line GitHub context — JSON input now includes detected GitHub repo and PR information
- Mouse support in fullscreen — Slash command and @-mention suggestion lists now respond to hover and click in fullscreen mode
- Hook input expansion — Stop and SubagentStop hooks now include background_tasks and session_crons fields
- Read tool truncation — Returns partial first page with notice instead of hard error when whole-file read exceeds token limit
Fixed
- Permission-prompt bypass where bare variable assignments to non-allowlisted environment variables in Bash were auto-approved
- MCP prompt slash commands now name missing arguments and show expected usage instead of raw server validation errors
- Spinner and elapsed-time display freezing after terminal resize or refocus until keypress
- Cross-project resume hint failing in Windows PowerShell 5.1 — now uses ; as command separator
- Voice push-to-talk not working in agent view's reply pane
- Task lists rendering in random order when created simultaneously
- Stale "Failed to install Anthropic marketplace" banner persisting after successful install
- PR badge in footer not updating immediately after gh pr create and other PR-state-changing commands
- Agent Teams teammates with non-ASCII names failing API calls due to invalid header encoding
- /review using deprecated projectCards GraphQL query that errored on repos with Classic Projects
- claude plugin validate not flagging skills: entries pointing at files instead of directories
- Infinite loop where skills using context: fork could repeatedly re-invoke themselves
Update: npm install -g @anthropic-ai/claude-code@2.1.145 or check the full release notes.
Source: Claude Code