Repository navigation
feat(cli): session UX — tole sessions list + enriched status (B3) - #44
Merged
Merged
Conversation
New 'tole sessions': one line per session in the dir, newest first —
id, pc, seq, turns (user messages), mtime (UTC, no chrono: civil-from-
days). Unreadable files are skipped, not fatal — the listing always
renders.
Enriched 'tole status': turns, system-pinned indicator, and usage
totals (prompt/completion tokens + cost from usage records). Fixed
negative-zero cost display ('-0.0000' -> '0.0000') — a sum of zero
records must not look like a negative cost.
Live validated against the B2 smoke sessions (list + status output
verified).
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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.
What
New
tole sessions: one line per session in the dir, newest first — id, pc, seq, turns (user-message count), mtime (UTCYYYY-mm-dd HH:MM, computed via civil-from-days — no chrono dependency). Unreadable/corrupt files are skipped rather than fatal: the listing always renders.Enriched
tole status: adds turn count, system-prompt-pinned indicator, and usage totals (prompt/completion tokens summed from usage records + cost). Also fixes a display bug caught during live validation: an empty cost sum rendered ashBc0.0000(negative zero) — now explicitly normalized to/usr/bin/bash.0000 USD.Why
B3 — session UX from the v1.1 roadmap: durable sessions are only useful if you can see them. Before this,
--lastwas the only way to find a session andstatusshowed 4 bare fields.tole sessionsis the directory view;statusis the per-session orientation view (turns + usage + pinned persona).Testing