Root causes: - toolInputMapRef in useAiAgent was overwritten by tool_progress events (which arrive with input=undefined AFTER the assistant message set the full input), causing detectFileOperation to receive undefined and skip file creation detection entirely. - MCP open_note only broadcast open_tab without vault_changed, so the note list didn't refresh when Claude Code called open_note. - detectFileOperation only handled Write/Edit but not Bash commands that create .md files via redirects. Fixes: - Preserve accumulated input in toolInputMapRef (input ?? prev?.input) - MCP open_note now broadcasts vault_changed before open_tab - detectFileOperation now detects Bash redirect patterns (>, >>, tee) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6.6 KiB
6.6 KiB