Skip to content

feat(claude-tty): show a question option's preview as a preview - #162

Merged
sleeyax merged 1 commit into
mainfrom
feat/claude-tty-question-previews
Oct 22, 2026
Merged

sleeyax merged 1 commit into
mainfrom
feat/claude-tty-question-previews

Conversation

@sleeyax

@sleeyax sleeyax commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Part 4 of #155; resolves the preview item of #36.
Builds on #160, which made the Paseo 0.12.0 bump.

Paseo 0.12.0's question card draws an option's preview under it (getpaseo/paseo#6171), so the preview is no longer appended to the description:

 readQuestions -> option
-  { label, description: description + "\n\n" + preview }
+  { label, description, preview }    # preview whitespace kept

The card draws a preview as code with pre-wrap, so the preview isn't trimmed: a mockup needs its indentation.

Evidence

  • Before: { label: "Node", description: "The established one\n\nnode --version" }
    After: { label: "Node", description: "The established one", preview: "node --version" }, and an indented box-drawing preview passes through byte for byte.
  • Live, on a claude-tty-dev copy on a 0.12.0 daemon:
    • The pending card's options carry preview separately from description.
    • Answering with paseo permit allow --input '{"answers":{"Layout":"Split"}}' reached Claude ("You chose Split").
    • Not yet checked: that the 0.12.0 app draws the previews and its own Submit button answers.
  • claude-tty passes 123 tests with 3 skipped; typecheck is clean.

Merge Danger

Door: two-way

Blast Radius: question cards

requirements.paseo constrains only the daemon.
An app older than 0.12.0 ignores preview, so on such an app a preview that used to show in the description now doesn't show at all.

@sleeyax
sleeyax force-pushed the feat/claude-tty-question-previews branch from 79d671d to 1930bac Compare October 22, 2026 22:33
@sleeyax
sleeyax changed the base branch from refactor/claude-tty-drop-cancelled-tool-call-repair to main October 22, 2026 22:33
Paseo 0.12.0's question card draws an option's `preview` under it (getpaseo/paseo#6171), so the preview goes out as its own field instead of being appended to the option's description.
The preview keeps its whitespace, because the card draws it as code and a mockup needs its indentation.
An app older than 0.12.0 ignores the field, so there the preview no longer shows at all.

Refs #36
Refs #155

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sleeyax
sleeyax force-pushed the feat/claude-tty-question-previews branch from 1930bac to 957f289 Compare October 22, 2026 22:34
@sleeyax
sleeyax merged commit 0ce8a97 into main Oct 22, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Oct 22, 2026
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