Skip to content

Add "Clear statuses" to the task menus - #454

Merged
psjamesh merged 2 commits into
mainfrom
clear-task-statuses
Nov 6, 2026
Merged

psjamesh merged 2 commits into
mainfrom
clear-task-statuses

Conversation

@psjamesh

@psjamesh psjamesh commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a Clear statuses item to both task menus (tile right-click and the ⋮ actions menu, Unassigned included), so a task full of orchestrator-launched sessions can be quieted in one click.

  • It covers every on-board session in the task, nested children included:
    • acknowledges each session, so a needs-you card stops flashing but keeps its red stripe
    • clears the just-finished and unread alarms
    • sends snooze-clear for snoozes that have already woken (awake). Snoozes still asleep are left alone.
  • It shows only when something in the task can be cleared. localStorage is written once per set and the grid re-renders once.
  • A new pure helper, public/clear-statuses.js clearableSessions, picks the sessions, with unit tests beside it. tray.test.js now also checks both menus pass the right task id.
  • Documented in docs/board-and-sessions.md.

Verification

  • npm test: 5178 pass, 0 fail.
  • Dev instance with real sessions: the done, unread and fired-snooze halos and a nested worker's dot all cleared. The needs-you card went to needs-you focused. The fired snooze was cleared on the server. The item is absent on a quiet task and disappears after clearing. It also works on Unassigned.

Made with Agent Wrangler and the PortSwigger/wrangler-squared extension

🤖 Generated with Claude Code

Model: claude-opus-5-5

Made with Agent Wrangler and the PortSwigger/wrangler-squared extension
@psjamesh
psjamesh merged commit 9e9f3cb into main Nov 6, 2026
2 checks passed
@psjamesh
psjamesh deleted the clear-task-statuses branch November 6, 2026 16:33
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