Claude Code · Source-level changelog

Version 2.1.114

This is a minimal patch release (from v2.1.113) containing a single bug fix that adds null-safety when accessing application state during tool permission requests, preventing a potential crash.

Package @anthropic-ai/claude-code Diff v2.1.113 → v2.1.114
0
Features & Changes
1
Bug Fixes
0
In Development
0
Env Vars / Flags

Bug Fixes

1 item
  • Fix potential crash during tool permission prompts: added optional chaining (?.) when accessing getAppState() and toolPermissionContext.mode in the permission request handler. Previously, if getAppState returned null or undefined (e.g., during teardown or an edge-case race condition), the application could throw a TypeError. The fix changes getAppState().toolPermissionContext.mode to getAppState?.()?.toolPermissionContext.mode, gracefully handling the null case. (search for "tengu_tool_use_show_permission_request" in function Qy at line ~573815)