Skip to content

M7: Take launch inputs in wrapping multi-line boxes #287

Description

@Sandstorm831

Parent

Spec #276; implementation sub-issue of M7 #275.

What to build

Text Launch inputs on Start a Run render as OpenTUI's native multi-line textarea: word wrap, a minimum height of one line, a maximum of max(6, a third of the terminal height), then internal scroll. Enter submits (Continue); Shift+Enter, Ctrl+Enter, Alt+Enter, and Ctrl+J insert a newline, overriding the textarea default. Pasted line endings are normalised, and a paste of three or more lines or over 150 characters shows as a [Pasted ~N lines] placeholder that expands to the full text on submit. File, file-set, choice, and verdict inputs keep their controls. The prompt is rebuilt against OpenCode's, not copied, under ADR 0018, and the vendor provenance record notes what was taken and what differs. Headless multi-line values keep passing through the existing launch input values with no new flag (stories 71–76).

Acceptance criteria

  • Renderer tests prove wrapping, the height cap and internal scroll, Enter submit, each newline key, multi-line paste kept intact, and placeholder collapse and expansion on submit.
  • A headless test proves a multi-line launch input value is accepted unchanged.
  • The vendor provenance record for the rebuilt prompt passes the structural step.
  • Prototype Crucible's launch and Run information architecture #23 evidence: keymap and focus, small terminals and resize, large content, interaction tuning, meaning without colour, and renderer and platform evidence, each shown by testRender frames with the fake Renderer Port.
  • CI scenario: the Start a Run input renderer tests and the headless launch test are green on Windows x64, macOS arm64, and Linux x64.

Blocked by

Implementation packet

Owner: TUI presentation (Start a Run inputs step), vendor provenance record

Ratchet: renderer tests for textarea submit, newline, paste, and placeholder

Deletes: the single-line launch input that drops pasted newlines

Gate: ADR 0027 three-OS CI and recorded human evidence, with the slice scenario above.

Dependencies: no new runtime dependency

Activity

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