Skip to content

Ask before skip, reject and a chat's hunk reject - #1094

Merged
lezli01 merged 2 commits into
tui-auditfrom
fix/confirm-skip-reject-hunk
Nov 23, 2026
Merged

lezli01 merged 2 commits into
tui-auditfrom
fix/confirm-skip-reject-hunk

Conversation

@lezli01

@lezli01 lezli01 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #1055 (fifth in #1084's suggested order). Merges into tui-audit. Stacked on #1093, which also edits the action bar; its diff shrinks to this change once #1093 merges.

Skip and reject

  • s (skip) and x (reject a gate) now ask first, as c and A do. Each question names the consequence:
    • skip #12's current step? it is marked skipped and the task goes on without it (y/n)
    • reject #12's gate? the task is blocked there until you retry, skip or cancel (y/n)
  • A selection gets the bulk form of each question.
  • The wording follows docs/reference/task-lifecycle.md.

Hunk reject in a chat's diff

  • x in a chat's diff pane asks before reverting the hunk on disk. The question is drawn under the pane's head line: revert this hunk of <path> on disk? its lines go back to the base, and a note goes into your draft (y/n).
  • y rejects the hunk. Any other key keeps it and says kept the hunk.
  • Hunks that cannot be rejected (binary, nested repository, empty file) still only say why, without asking.

Checks

  • Help labels and the guide say (asks first).
  • The hunk tests (unit, binding and live) now answer y. A new test covers the skip and reject questions and n cancelling.
  • go test ./internal/tui passes and mage lintall is clean.

An action key (p, a, x, r, s, c, A) the target does not offer now sets
the action bar's status — "retry: not available while running", or that
the cursor is on a group, that none of the selection offers it, or that a
chat holds the task — on the board and in the workspace, instead of
doing nothing. E is hinted only where it works, the workspace on a step
with text to edit, and pressed elsewhere says why.

Closes #1059
s and x on a task now ask first, naming the consequence (the step is
skipped and the task goes on without it; the task is blocked at the
rejected gate), as c and A do, singly and for a selection. x in a chat's
diff pane asks before reverting the hunk on disk; any answer but y keeps
it.

Closes #1055
@lezli01
lezli01 merged commit 72e1ad0 into tui-audit Nov 23, 2026
24 checks passed
@lezli01
lezli01 deleted the fix/confirm-skip-reject-hunk branch November 23, 2026 10:07
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