Repository navigation
Ask before skip, reject and a chat's hunk reject - #1094
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andx(reject a gate) now ask first, ascandAdo. 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)docs/reference/task-lifecycle.md.Hunk reject in a chat's diff
xin 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).yrejects the hunk. Any other key keeps it and sayskept the hunk.Checks
(asks first).y. A new test covers the skip and reject questions andncancelling.go test ./internal/tuipasses andmage lintallis clean.