Skip to content

Comments

Fix permission detail display by stashing tool info from PreToolUse hook#463

Merged
bborn merged 1 commit intomainfrom
task/1416-add-muted-tool-input-display-below-permi
Feb 18, 2026
Merged

Fix permission detail display by stashing tool info from PreToolUse hook#463
bborn merged 1 commit intomainfrom
task/1416-add-muted-tool-input-display-below-permi

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Feb 18, 2026

The Notification hook (permission_prompt) doesn't include tool_name/tool_input fields - those are only available in PreToolUse hooks. PR #458 called formatPermissionDetail() on the notification input, which always returned "" because ToolName was empty.

Fix: store the formatted tool detail as a "pending_tool" log entry during PreToolUse, then retrieve it in the notification handler to append to the permission message. Also filter pending_tool entries from the execution log display since they're internal bookkeeping.

The Notification hook (permission_prompt) doesn't include tool_name/tool_input
fields - those are only available in PreToolUse hooks. PR #458 called
formatPermissionDetail() on the notification input, which always returned ""
because ToolName was empty.

Fix: store the formatted tool detail as a "pending_tool" log entry during
PreToolUse, then retrieve it in the notification handler to append to the
permission message. Also filter pending_tool entries from the execution log
display since they're internal bookkeeping.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bborn bborn merged commit aef2310 into main Feb 18, 2026
3 checks passed
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