You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drop the slash prompt from the approval rule and feedback editors #448
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
In manual mode, have the model run a command that needs approval, such as cargo check --quiet.
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