Skip to content

Say why an action key the task does not offer did nothing - #1093

Merged
lezli01 merged 1 commit into
tui-auditfrom
fix/unavailable-action-keys-say-why
Nov 23, 2026
Merged

lezli01 merged 1 commit into
tui-auditfrom
fix/unavailable-action-keys-say-why

Conversation

@lezli01

@lezli01 lezli01 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #1059 (fourth in #1084's suggested order). Merges into tui-audit.

Action keys

  • An action key the target does not offer (p, a, x, r, s, c, A) now sends nothing and sets the action bar's status, on the board and in the task workspace. The status says:
    • retry: not available while running for an action the task's state does not allow;
    • select a task — it acts on one task, not a group on a group row;
    • none of the selected tasks offers it under a selection;
    • not available while chat #N holds the task — close the chat first on a locked task.
  • p names resume on a paused task.
  • Non-action keys still fall through, so j/k keep navigating. No other meaning shares the action keys on the surfaces that call the bar.

E edit+retry

  • A new taskActions.editRetry is set only by the task workspace, and only on a step with a prompt or command to edit. The footer and the pinned card hint E only when it is set.
  • So E is no longer advertised on the board, which has no editor, or on a gate or fan-out step.
  • Pressed anywhere it cannot act, E says why: there is nothing to edit (with r to retry as is), or the state does not allow retry.

Recorded behaviour changed

Two tests encoded the old rule that an unoffered key stays silent: TestActionKeyIsIgnoredWhenTheActionIsNotOffered and TestEditRetryUnavailableOnAGate's comment. This issue reverses that rule on purpose. The tests now assert the explanations, and the cascade-retry live test asserts E explains rather than staying quiet.

Checks

  • Updated the TUI guide's action bar section.
  • 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
@lezli01
lezli01 merged commit fed6da6 into tui-audit Nov 23, 2026
24 checks passed
@lezli01
lezli01 deleted the fix/unavailable-action-keys-say-why 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