Add a hide shortcut to the agents overview (#44424)

## What changed

- Add `Ctrl+W` to hide the selected task without stopping it. Hidden tasks stay hidden through activity and metadata refreshes until explicitly resumed or the TUI restarts.
- Expose `agents.hide` in keymap configuration and the shortcut picker, and let the default binding yield to existing custom shortcuts.
- Wrap overview footer hints while keeping shortcuts and their labels together when they fit.

## Testing

Add coverage for hiding filtered tasks across statuses, visibility through activity and refreshes, explicit resume, existing keybinding compatibility, and custom chord footer rendering at narrow widths.

GitOrigin-RevId: 980726e1095b8d5bad8901be919decdde8c0f925
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-10 05:41:54 +00:00
1 parent ddea03ad04
commit bf5ebd98c5
24 files changed
+339 -24

No files matched your search

+10
View File
@@ -3993,6 +3993,7 @@
],
"default": {
"agents": {
"hide": null,
"new_task": null,
"rename": null,
"resume": null,
@@ -4303,6 +4304,14 @@
"additionalProperties": false,
"description": "Shortcuts specific to the shared agents overview.",
"properties": {
"hide": {
"allOf": [
{
"$ref": "#/definitions/KeybindingsSpec"
}
],
"description": "Hide the selected task until explicitly resumed or the TUI restarts."
},
"new_task": {
"allOf": [
{
@@ -4808,6 +4817,7 @@
}
],
"default": {
"hide": null,
"new_task": null,
"rename": null,
"resume": null,