fix: import every dropped .json (aggregate counts) + 5 MB size guard (#39) #45

Merged
the_og merged 1 commits from fix/39-drop-import-all into main 2026-07-12 13:00:44 -04:00
Owner

Closes #39.

  • dropEvent no longer breaks after the first file: every dropped .json is imported, with a single undo snapshot and one aggregate status line ("Imported N added, M replaced from K file(s).").
  • Files over 5 MB (MAX_DROP_IMPORT_BYTES) are skipped with a warning naming the file — a full ~/.claude.json with history is parsed on the UI thread otherwise.
  • Per-file parse failures keep the existing warning-and-continue behavior.

Tests + ruff clean. (Implemented by a delegated agent; reviewed.)

🤖 Generated with Claude Code

Closes #39. - `dropEvent` no longer `break`s after the first file: every dropped `.json` is imported, with a single undo snapshot and one aggregate status line ("Imported N added, M replaced from K file(s)."). - Files over 5 MB (`MAX_DROP_IMPORT_BYTES`) are skipped with a warning naming the file — a full `~/.claude.json` with history is parsed on the UI thread otherwise. - Per-file parse failures keep the existing warning-and-continue behavior. Tests + ruff clean. (Implemented by a delegated agent; reviewed.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
the_og added 1 commit 2026-07-12 12:59:47 -04:00
fix: import every dropped .json (aggregate counts) + 5 MB size guard (#39)
CI / Lint (ruff) (pull_request) Successful in 7s
CI / Tests (py3.10) (pull_request) Successful in 8s
CI / Tests (py3.12) (pull_request) Successful in 9s
d95db2b026
Closes #39

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
the_og merged commit b485357cd5 into main 2026-07-12 13:00:44 -04:00
the_og deleted branch fix/39-drop-import-all 2026-07-12 13:00:44 -04:00
Sign in to join this conversation.