fix(last): say when the folder fallback picked the transcript - #64
Merged
Conversation
This was referenced Sep 7, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
lastcannot identify a transcript exactly, it now says so in the status line instead of silently showing the folder's newest transcript.Reproduced first
Two Claude transcripts for one project folder, different mtimes, distinct replies, no session id available. Before this change
plannotator-tui last --host claude --printprinted the newer session's reply with no note, and inside Herdr without a session id the UI was byte-identical to the exact-session path. The same run with--session-idfor the older session printed the other reply.What changed
last/fallback.rs: aDiscoveryvalue per host,Exactwhen a path, session id, thread id, or the process's own open rollout named the transcript,Folderfor cwd/mtime discovery,Sessionfor Codex's newest-rollout guess.last/locate.rs:Located.discovery; explicit paths and ids are alwaysExact.last/mod.rs:discovery_notebuilds the hint. Inside Herdr: "no session id from Herdr, showing the newest transcript for this folder". Outside Herdr: "showing the newest transcript for this folder".Exactproduces no note.--printoutput is unchanged on stdout and stderr.app/draw.rs: the status now leads the footer. The left footer area is narrow, so an appended status was cut off entirely; the status is transient and clears on the next key.SessionStart, so only sessions started afterherdr integration install claudereport an id, andlastsays when it falls back.Checks
cargo fmt --all --check,cargo clippy --locked --workspace --all-targets -- -D warnings,cargo test --locked --workspaceall pass. Unit tests cover the note wording, theExactcase, a command-line transcript never being reported as a guess, and the status leading the footer on a narrow pane.refs #57