by VibecodedThis

Claude Code 2.1.141: Hook Notifications, Workspace Federation, and 50+ Fixes

Claude Code 2.1.141 shipped May 13 with a new terminalSequence field in hook output for native OS notifications, ANTHROPIC_WORKSPACE_ID for workload identity federation, and one of the biggest bug fix batches in recent memory.

Share

Claude Code 2.1.141 landed on May 13 — two days after the previous release added agent view and the /goal command. This one is more of a consolidation: a handful of new capabilities plus 50+ bug fixes across MCP, hooks, permissions, and rendering.

Hooks Can Now Send Desktop Notifications

The standout addition for power users is the terminalSequence field in hook JSON output. Hooks already let you run shell commands at specific points in Claude Code’s lifecycle — before a tool call, after a session, and so on. The new field lets a hook emit terminal escape sequences directly, which means native desktop notifications, window title updates, and terminal bell sounds, all without needing a controlling terminal attached.

In practice this is about CI-style feedback loops inside Claude Code. You can write a hook that fires a system notification when a long background task finishes, or changes your terminal tab title to reflect which agent is currently running. Previously doing either required wrapping Claude Code in a shell script. Now the hook itself can handle it.

Workspace Identity Federation

The new ANTHROPIC_WORKSPACE_ID environment variable supports workload identity federation scenarios where a federation rule covers more than one workspace. Setting it scopes the minted token to a specific workspace. Teams running Claude Code across multiple Anthropic workspace contexts — different orgs, different billing units, different compliance boundaries — now have a clean way to declare which workspace a session belongs to at runtime.

There’s also CLAUDE_CODE_PLUGIN_PREFER_HTTPS, which switches GitHub plugin source cloning from SSH to HTTPS. Useful in environments where SSH keys aren’t configured or where corporate firewalls block the SSH port.

Session and Agent View Improvements

claude agents --cwd <path> scopes the session dashboard to a single directory instead of showing every session under your config root. If you work across many projects, this is a fast way to narrow the view to just the one you’re in.

Rewind gets a new menu item: “Summarize up to here.” It compresses the earlier part of a conversation while keeping recent turns intact. The goal is the same as autocompact — recover context budget — but triggered on demand at a specific point rather than automatically.

Background agents launched via /bg or the ←← shortcut now preserve the current permission mode. Previously they reverted to default permissions, which could mean either more prompting or fewer safeguards than intended.

Auto mode’s permission dialog now says which permissions.ask rule triggered the prompt. That’s a small change with real practical value for anyone who has ever stared at a permission dialog not knowing which rule in a long config file caused it.

The 50+ Fix List

The fixes cover enough ground that a full summary would take more space than the features themselves. A few worth noting:

The Bedrock awsCredentialExport fix resolves cross-account auth: the export hook now always runs when configured rather than being skipped when ambient credentials already resolve. Teams using cross-account IAM roles should update.

Remote Control sessions no longer loop through /login when a stale token triggers a 401 — it re-enrolls the trusted device cleanly instead.

MCP HTTP/SSE servers returning 403 on connect now show “needs auth” rather than “failed,” which is actually useful information.

The markdown table renderer is fixed: tables with cell wrapping no longer fall back to the ugly vertical key-value layout (this was a regression from 2.1.136).

On Windows, Alt+V image paste now works correctly. In the VSCode extension, voice mode’s microphone gives feedback when it detects only silence instead of staying quiet.

There are also several fixes around the claude agents dashboard: placeholder sessions no longer linger, crashed sessions don’t fire redundant dispatches, and empty idle background sessions auto-retire after 5 minutes.

Quick Notes

The /feedback command can now include recent sessions — last 24 hours or last 7 days — for issues that span more than the current session. Previously you could only report on what was in front of you.

The /mcp server list in short terminals now keeps the focused server visible in fullscreen mode, and MCP configs using POSIX shell parameter expansions like ${var%pattern} are no longer incorrectly flagged as missing environment variables.


Source: Claude Code v2.1.141 release notes

Share