Skip to content

fix(resume): Speed up resume picker preloading#453

Merged
CSRessel merged 2 commits intomainfrom
debug/resume-picker-tracing
Apr 27, 2026
Merged

fix(resume): Speed up resume picker preloading#453
CSRessel merged 2 commits intomainfrom
debug/resume-picker-tracing

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

Summary

🤖 Generated with Nori

  • Adds nori_resume tracing and writes the captured /resume pre-picker findings to CLI_RESUME_SPEED.md.
  • Filters /resume sessions by the active agent before loading preview transcripts.
  • Reuses the first transcript metadata scan instead of scanning all sessions again for the agent filter.

Test Plan

  • just fmt
  • just fix -p nori-acp
  • just fix -p nori-tui
  • cargo test -p nori-tui load_resumable_sessions_filters_agent_before_loading_previews --no-fail-fast
  • cargo test -p nori-acp transcript::loader --no-fail-fast
  • cargo test -p nori-tui --no-fail-fast
  • cargo build --bin nori
  • cargo build --bin mock_acp_agent
  • cargo test -p tui-pty-e2e --no-fail-fast
  • git diff --check

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets

@CSRessel CSRessel changed the title Speed up resume picker preloading fix(resume): Speed up resume picker preloading Apr 27, 2026
@CSRessel CSRessel merged commit ed5c4cd into main Apr 27, 2026
3 checks passed
@CSRessel CSRessel deleted the debug/resume-picker-tracing branch April 27, 2026 21:52
CSRessel added a commit that referenced this pull request Apr 27, 2026
## Summary
🤖 Generated with [Nori](https://noriagentic.com/)

- Build `/resume` picker rows from first-line session metadata only, so
preview and turn counting no longer block the picker from appearing.
- Add lazy background summary updates for first-user previews and exact
user-turn counts, with stale-generation protection and zero-turn row
removal.
- Document the fix slice in `CLI_RESUME_SPEED.md` and update Noridocs
for transcript metadata/loading and resume picker behavior.

## Test Plan
- [x] `cargo build --bin mock_acp_agent`
- [x] `cargo test -p nori-acp -p nori-tui --no-fail-fast`
- [x] `cargo clippy --all-features --tests`
- [x] `cargo build --bin nori`
- [x] `git diff --check`

Stacked on #453 (`debug/resume-picker-tracing`).

Share Nori with your team: https://www.npmjs.com/package/nori-skillsets
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.

1 participant