Skip to content

UX: CLI copy sweep — de-internalize help text, truncate approval input echo, friendlier REPL notices #102

Closed

Description

@ajianaz

Problem

A UX audit (2026-09-19, live E2E of v0.3.0 + source sweep of the CLI host) found user-facing copy that leaks internal project jargon and one overload risk:

  1. Internal IDs in public help text. tole chat --help says "(B1)", tole sessions --help says "(B3)", tole resume --help says "(E5 crash-resume) … (issue Headless automation: resume cannot take a new prompt; chat REPL never exits on piped input #55)". E5/B1/B3 are internal epic codes — meaningless (and confusing) to an OSS user reading --help or crates.io docs. (Issue numbers are fine to keep; epic codes are not.)
  2. Unbounded input: echo in the approval prompt. StdioPrompt prints input: {json} with no truncation — a write_file with large content floods the terminal before the y/N question.
  3. Debug-speak in the REPL. tole> (resolving interrupted turn, pc=Planning…) exposes the internal program counter where "resuming the interrupted turn…" carries the same meaning.
  4. Empty state has no next action. tole sessions on an empty dir prints no sessions in <path> (dir does not exist) with no hint how to create one.

Proposed fix (CLI copy sweep, one PR)

  • Strip epic-code prefixes (E5, B1, B3, …) from clap doc-comments on run/resume/sessions/status/chat (keep cross-references like issue #55 where they genuinely help).
  • Truncate the approval input: echo to ~500 chars with a clear … (+N more chars) marker (the full input stays in the durable session log; tole status remains the audit surface).
  • Reword the REPL mid-flight notice without pc=….
  • Empty state: no sessions in <path> — start one with: tole chat (value → action).

Acceptance criteria

  • tole --help and all subcommand helps contain no E\d+/B\d+ internal epic codes.
  • Approval prompt for a >500-char input shows the truncated preview + marker; deny/allow still fail-closed as before.
  • All existing tests pass; copy-only changes touch no core crate behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions