{"version":"2.1.90","anchor":"posttooluse-hook-file-state-sync","canonical_anchor":"posttooluse-hook-file-state-sync","heading":"PostToolUse Hook File State Sync","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.90\/e\/posttooluse-hook-file-state-sync","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.90","markdown":"### PostToolUse Hook File State Sync\n\nWhen a PostToolUse hook modifies a file that Claude just edited (e.g., a formatter running after a write), Claude Code now automatically detects the change and re-syncs its internal read-file state. This prevents stale-file errors on the next Edit tool call for that file.\n\n**Evidence**\n\nHook file sync handler (search for `\"PostToolUse hook modified\"` and `\"re-synced readFileState\"`)"}