Drag-and-drop import: only the first .json is imported, additional files silently ignored #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in audit of
main@06326e5.MainWindow.dropEvent(bcc.py~L2358) iterates dropped URLs butbreaks after the first successfully imported .json. Dropping three config files imports one with no indication the other two were skipped (dragEnterEventaccepted the whole drop). Also: the file is read with no size guard, so a mistakenly dropped multi-MB .json (e.g. a full~/.claude.jsonwith history) is parsed on the UI thread.Proposed fix: import all dropped .json files (single undo snapshot, aggregate added/replaced counts in the status line), and skip files over a sanity threshold (e.g. 5 MB) with a warning dialog naming the file.
Acceptance: dropping N valid files imports servers from all N and reports the aggregate; an oversized file is skipped with feedback; a mix of valid and invalid files imports the valid ones and reports the failures (existing per-file warning already does this).