Skip to content

Conversation

@muraalee
Copy link
Collaborator

Fix dropped edits from concurrent async hooks

When Claude Code edits multiple files in quick succession, the async
PostToolUse hooks spawn multiple capture processes simultaneously.
Without busy_timeout, concurrent SQLite writes would fail with
SQLITE_BUSY and edits would be silently dropped.

Changes:

  • Add PRAGMA busy_timeout = 5000 to retry writes for up to 5 seconds
  • Add debug logging (AGENTBLAME_DEBUG=1) to diagnose missing captures

@muraalee muraalee marked this pull request as ready for review January 27, 2026 21:31
@muraalee muraalee requested review from OliverGilan and Peterrallojay and removed request for OliverGilan January 27, 2026 21:34
@muraalee muraalee merged commit 443290f into main Jan 27, 2026
1 check passed
@muraalee muraalee deleted the murali/concurrent-edits branch January 27, 2026 22:58
@muraalee muraalee restored the murali/concurrent-edits branch January 31, 2026 08:08
@muraalee muraalee deleted the murali/concurrent-edits branch February 4, 2026 02:14
@muraalee muraalee restored the murali/concurrent-edits branch February 4, 2026 19:00
@muraalee muraalee deleted the murali/concurrent-edits branch February 4, 2026 19:51
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.

2 participants