Skip to content

feat(cli): session UX — tole sessions list + enriched status (B3) - #44

Merged
ajianaz merged 1 commit into
developfrom
feat/b3-session-ux
Aug 27, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/b3-session-ux

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

New tole sessions: one line per session in the dir, newest first — id, pc, seq, turns (user-message count), mtime (UTC YYYY-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 as hBc0.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, --last was the only way to find a session and status showed 4 bare fields. tole sessions is the directory view; status is the per-session orientation view (turns + usage + pinned persona).

Testing

  • 123/123 tests, clippy clean, cargo fmt.
  • Live validated against real smoke sessions from B1/B2: list output (columns aligned, mtime correct), status output (turns=2, system=pinned, usage normalized).

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).
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 22a1cdc into develop Aug 27, 2026
11 checks passed
@ajianaz
ajianaz deleted the feat/b3-session-ux branch August 27, 2026 23:20
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