Skip to content

Drop the slash prompt from the approval rule and feedback editors #448

Open

Description

@hakula139

Summary

Every single-line editor in the TUI draws a / prefix (PROMPT in tui/modal/line_editor.rs:18): the /resume filter, the /rename editor, and the approval prompt's A rule and F feedback editors. In the filter, the slash reads as a search prompt, but in the rule editor it sits directly before the pattern:

Allow for the rest of this session:
/ cargo check --quiet

A leading / is meaningful in that pattern syntax: in read and edit patterns it anchors at the file system root, so an edit rule shown as / src/** looks like an absolute pattern. The feedback editor gets the same prefix in front of prose, where it means nothing.

Steps to reproduce

  1. In manual mode, have the model run a command that needs approval, such as cargo check --quiet.
  2. Press A at the approval prompt, or F.

Expected

The editor's prompt glyph cannot be read as part of the value, and each editor uses a prefix that fits its content.

Proposed fix

Let LineEditor take its prompt from the caller. Keep / for the filter, where it reads as search, and use the input box's ❯ or no glyph for the rename, rule, and feedback editors. Fold this into the cursor and gutter alignment in #318 if that lands first.

Acceptance criteria

  • The rule and feedback editors no longer show / before the value.
  • Render tests pin each editor's prefix.

Found at ox 0.1.0-alpha.5 (main at 2deb3b5) in tmux at 140 columns.

Activity

  1. added
    enhancement
    area: permission
    area: tui
    on Oct 20, 2026
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

    area: permissionarea: tuienhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions