Repository navigation
Count desktop history import progress per session - #1832
Conversation
kcap import prints one line per settled session when its output is redirected; each pass's closing totals line still settles the figures, since it also counts sessions that print none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoCount desktop history import progress per session
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f5678fe79
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Code Review by Qodo
1.
|
Claude and Codex history reports through the chain worker's own line forms, so without them the figures stayed at zero for the common case. A selection with an uncounted repository now has no total. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #1830 — AI-4218
What & why
The setup wizard's Done page and the main window's import line counted sessions only from
kcap import's closing totals line, so a running import read "0 / 245" until a whole pass ended. The app now counts the per-session lines the CLI already prints when its output is redirected, from both the chain worker (Claude, Codex) and the routed loop, and each pass's totals line settles the figures. The progress bar tracks sessions checked against the selection's count, and a spinner shows while the import runs, with "N of M sessions checked" on the Done page.Where to look
Too-short and excluded sessions print no line, so the bar can stop short of full before the run ends; the totals line corrects the landed and failed counts.
Verification
HistoryStepViewModelTests.The_run_counts_sessions_as_they_land: chain-worker and routed lines counted mid-pass, then reconciled by the totals line across two passesDoneStepViewModelTests.A_running_import_shows_sessions_as_they_land: 20 landed, "25 of 100 sessions checked", bar at 25 while runningA_pass_without_totals_keeps_its_live_counts,An_uncounted_repository_leaves_the_expected_count_unknown- Desktop app unit suite: 4,177 total, 0 failed🤖 Generated with Claude Code