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
Prompt clip can hide a redirection target or group closer in the clipped tail #97
After #85, every approval-prompt line is clipped to a fixed budget with a hidden-chars marker. The clip is applied to the whole rendered leaf text. A redirection suffix (> path, 2>&1, < path), the chain operator (&&, ||, |, ;), a group's ( opener and its ) closer are joined into that text before the clip, so a long argument pushes them into the clipped tail of the Steps: line. Past MAX_DISPLAY_CMD_CHARS (1024) the Command: line hides them too.
Steps: line 0 shows sudo echo AAAA… [N more chars hidden]; > /etc/sudoers is cut.
Command: is cut at 1024 chars, before the redirection.
Resolves: shows only echo.
No prompt line names the target file. The marker does show that something is hidden, which is the accepted F3 trade-off of #85, but the operator cannot see what the command writes to without denying it.
Suggested direction
Clip only the command text (the argv words) and keep the structural parts (operators, parentheses, redirections and their targets) outside the budget, each bounded separately (a redirection target is a path, so it can take the field budget). This fits with Phase 1 of #89 (rendering from the compiled plan, daemon-owned syntax).
Activity
docs: clipped tail can hide redirections and group closers (#85)
docs: clipped tail can hide redirections and group closers (#85)