You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(resume): Show resume hint for any conversation (#461)
## Summary
🤖 Generated with [Nori](https://noriagentic.com/)
- Decouple the post-exit `nori resume <session-id>` hint from token
usage so ACP sessions without token reports still show the resume
command when the session recorded activity.
- Render resume hints as two lines, with `To continue this session,
run:` followed by a standalone `nori resume <session-id>` command for
easier copying.
- Share the resume hint lead text and command construction between the
post-exit CLI output and the in-TUI new-conversation summary, and update
snapshots/docs for the aligned behavior.
## Test Plan
- [x] `cargo test -p nori-cli`
- [x] `cargo test -p nori-tui`
- [x] `cargo build --bin nori`
- [x] `cargo test -p tui-pty-e2e`
- [x] `just fmt`
- [x] `just fix -p nori-cli`
- [x] `just fix -p nori-tui`
- [x] `cargo insta pending-snapshots`
- [x] Live tmux TUI check with ElizACP: prompt appeared, accepted
`hello`, exited, and printed the two-line resume hint with the `nori
resume <session-id>` command on its own line
- [x] GitHub CI green: `cargo-deny`, Linux checks, macOS checks
Share Nori with your team: https://www.npmjs.com/package/nori-skillsets
Copy file name to clipboardExpand all lines: nori-rs/cli/docs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,6 @@ On non-Windows, `wsl_paths.rs` normalizes paths for WSL environments to ensure c
130
130
131
131
**Exit Handling:**
132
132
133
-
`handle_app_exit()` prints token usage and session resume hints after TUI exits, then optionally runs update actions if the user requested an upgrade.
133
+
`handle_app_exit()` prints token usage when available and prints a copyable two-line resume hint for sessions that recorded activity. The lead line ends with `run:` and the next line contains only `nori resume <session-id>` so the command can be copied without surrounding output. It then optionally runs update actions if the user requested an upgrade.
Copy file name to clipboardExpand all lines: nori-rs/tui/docs.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -748,6 +748,8 @@ Selection behavior:
748
748
749
749
The startup picker in `@/nori-rs/tui/src/resume_picker/` is transcript-backed. It uses `TranscriptLoader::list_resumable_session_metadata()` and keeps rows lightweight by reading only `session_meta` lines before selection. It does not perform provider-specific rollout discovery.
750
750
751
+
Resume hints use the shared `RESUME_HINT_LEAD` and `resume_command_for_conversation()` helpers from `app/` so the in-TUI new-conversation summary and the post-exit CLI output stay aligned. Both surfaces put the copyable `nori resume <session-id>` command on its own line after the `run:` lead text.
752
+
751
753
**Session Resume (`/resume`):**
752
754
753
755
The `/resume` command allows reconnecting to a previous ACP session. It uses the ACP agent's `session/load` RPC when available, and otherwise falls back to a fresh ACP session plus normalized replay derived from the saved transcript (see `@/nori-rs/acp/docs.md`).
0 commit comments