Commit Graph

1541 Commits

Author SHA1 Message Date
Steve Yegge d0bb0ad7d4 fix: staleness check fails after write in git worktrees (#399)
After write operations in git worktrees, subsequent reads failed with
"Database out of sync with JSONL" even though the hash check passed.

Root cause: flushToJSONLWithState() updated last_import_hash but not
last_import_time after export. CheckStaleness() compares last_import_time
against JSONL mtime, so after export the JSONL appeared "newer" than the
last import.

Additional issue: RFC3339 only has second precision but file mtimes have
nanosecond precision, causing false positives when times were within the
same second.

Fix:
- Update last_import_time after export in flushToJSONLWithState()
- Use RFC3339Nano format for nanosecond precision
- Update CheckStaleness() to parse both formats for backward compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 19:04:57 -08:00
Steve Yegge eeda2053b8 bd sync: 2025-11-26 18:07:01 2025-11-26 18:07:01 -08:00
Matt Wilkie daa94e5b31 update bd JSONL 2025-11-26 17:52:36 -08:00
Matt Wilkie e37caf94cf Remove large deletions.jsonl to fix CI timeout
The 410KB deletions.jsonl file with 3419 records was causing the CI test
suite to timeout after 10 minutes. This file is not needed for the PR and
is being added automatically by bd.

This should resolve the CI test failures that have been occurring.
2025-11-26 17:52:08 -08:00
Matt Wilkie 55c6478f60 update bd JSONL 2025-11-26 17:52:08 -08:00
matt wilkie e64d773233 bd sync: 2025-11-26 06:33:11 2025-11-26 17:52:08 -08:00
matt wilkie 2d77e564a8 WIP: changes before push 2025-11-26 17:52:08 -08:00
Steve Yegge 30305da5fb bd sync: 2025-11-26 17:45:41 2025-11-26 17:45:41 -08:00
Steve Yegge ce42ed43ff Merge remote-tracking branch 'origin/main' into improve-sync-jsonl-msg 2025-11-26 14:42:30 -08:00
Steve Yegge 352b9f7e6b bd sync: 2025-11-26 11:14:59 2025-11-26 11:14:59 -08:00
Matt Wilkie 7a14e6ee3b bd sync: 2025-11-26 09:12:04 2025-11-26 09:12:05 -07:00
Steve Yegge 7c44a1d98a bd sync: 2025-11-25 22:27:38 2025-11-25 22:27:38 -08:00
Steve Yegge 75a5bedd63 bd sync: apply DB changes after import 2025-11-25 21:40:18 -08:00
Steve Yegge 28fc861127 bd sync: 2025-11-25 21:39:38 2025-11-25 21:40:18 -08:00
Steve Yegge 762d158ca1 bd sync: apply DB changes after import 2025-11-25 20:56:48 -08:00
Steve Yegge 4b9671d152 bd sync: apply DB changes after import 2025-11-25 19:50:46 -08:00
Steve Yegge 031193e445 bd sync: 2025-11-25 19:50:26 2025-11-25 19:50:46 -08:00
Steve Yegge 205f68af86 bd sync: apply DB changes after import 2025-11-25 19:32:05 -08:00
Steve Yegge cd1cbbbfdd bd sync: 2025-11-25 19:32:04 2025-11-25 19:32:05 -08:00
Steve Yegge 7964b07ac2 bd sync: apply DB changes after import 2025-11-25 19:28:13 -08:00
Steve Yegge 44b286c655 bd sync: 2025-11-25 19:27:53 2025-11-25 19:28:13 -08:00
Steve Yegge 6109675bba bd sync: apply DB changes after import 2025-11-25 19:18:23 -08:00
Steve Yegge 6408845f09 bd sync: 2025-11-25 19:18:22 2025-11-25 19:18:23 -08:00
Steve Yegge 8051cc911b bd sync: 2025-11-25 17:52:56 2025-11-25 17:52:56 -08:00
Steve Yegge e7b89341b2 bd sync: 2025-11-25 17:12:46 2025-11-25 17:12:46 -08:00
Steve Yegge 9b58241417 bd sync: 2025-11-25 16:56:23 2025-11-25 16:56:23 -08:00
Steve Yegge 47d39fb845 Update beads metadata to v0.25.0 2025-11-25 16:56:18 -08:00
Steve Yegge c43cc41d31 bd sync: 2025-11-25 16:55:56 2025-11-25 16:56:18 -08:00
Steve Yegge 6bab015616 bd sync: 2025-11-25 16:36:33 2025-11-25 16:36:33 -08:00
Steve Yegge 2f5ef33c08 bd sync: 2025-11-25 15:07:58 2025-11-25 15:07:58 -08:00
Steve Yegge ecc5830a31 fix(deletions): track deletions.jsonl in git for cross-clone propagation
Fixes bd-44e: Remove deletions.jsonl from .gitignore.

The deletions manifest MUST be tracked in git for cross-clone deletion
propagation to work (bd-imj). Previously it was incorrectly gitignored
with a "local-only" comment that contradicted the design.

Changes:
- Remove .beads/deletions.jsonl from .gitignore
- Add comment explaining why it is tracked
- Track existing deletions.jsonl file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 14:57:55 -08:00
Steve Yegge 941c65f1a7 bd sync: 2025-11-25 14:57:33 2025-11-25 14:57:33 -08:00
Steve Yegge 25ccdf9892 bd sync: 2025-11-25 14:45:06 2025-11-25 14:45:06 -08:00
Steve Yegge 2a39579189 bd sync: 2025-11-25 14:40:35 2025-11-25 14:40:35 -08:00
Steve Yegge 898bc2ac18 bd sync: apply DB changes after import 2025-11-25 14:29:25 -08:00
Steve Yegge eb8b7f13f9 bd sync: 2025-11-25 12:55:13 2025-11-25 12:55:13 -08:00
Steve Yegge 907759ce3f bd sync: apply DB changes after import 2025-11-25 12:41:36 -08:00
Steve Yegge a79f48d980 bd sync: 2025-11-25 12:41:35 2025-11-25 12:41:36 -08:00
Steve Yegge 1804a91787 bd sync: apply DB changes after import 2025-11-25 12:33:39 -08:00
Steve Yegge f7adb935df bd sync: 2025-11-25 12:03:21 2025-11-25 12:03:21 -08:00
Steve Yegge be784a0b4b bd sync: 2025-11-25 11:46:06 2025-11-25 11:46:06 -08:00
Steve Yegge c3e4172be7 bd sync: 2025-11-25 11:35:26 2025-11-25 11:35:26 -08:00
Steve Yegge a7f63c6925 bd sync: 2025-11-25 10:59:11 2025-11-25 10:59:11 -08:00
Steve Yegge 368e5b9955 bd sync: 2025-11-25 10:52:39 2025-11-25 10:52:39 -08:00
Steve Yegge 11378c72c6 bd sync: apply DB changes after import 2025-11-25 09:58:11 -08:00
Steve Yegge 25359f4606 bd sync: apply DB changes after import 2025-11-25 09:58:03 -08:00
Steve Yegge 72ddacbcb7 bd sync: 2025-11-25 09:58:02 2025-11-25 09:58:03 -08:00
Steve Yegge a8008f5a0b bd sync: 2025-11-25 09:26:29 2025-11-25 09:26:29 -08:00
Steve Yegge bf0a196aed bd sync: 2025-11-25 09:22:26 2025-11-25 09:22:26 -08:00
Steve Yegge 9c68d59550 bd sync: apply DB changes after import 2025-11-25 09:10:06 -08:00