Skip to content

fix(companion): the badge counts what the Events tab counts - #301

Merged
adefreitas merged 2 commits into
StackOneHQ:mainfrom
adefreitas:fix/companion-badge-pending
Dec 3, 2026
Merged

adefreitas merged 2 commits into
StackOneHQ:mainfrom
adefreitas:fix/companion-badge-pending

Conversation

@adefreitas

@adefreitas adefreitas commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Stacky's count badge now shows the Events tab's count, less snoozed events. Before, the badge read 29 while the tab said 10.

The badge and the waiting pose counted every listed event. Notifications stay in the list after you read them, so they kept counting and kept Stacky waving. Both now use the tab's rule, shared as EventStore.isPending: permission prompts and finished turns always count, and notifications count until read. Snoozed events stay listed and in the tab's count, but the badge leaves them out: a snooze means "not now", so it shouldn't keep Stacky waiting.

Checks

  • make test-without-xcode passes: 2148 tests, 0 failures. A new test checks that read and snoozed events are left out, and that the badge matches pendingCount except for the snoozed event.

🤖 Generated with Claude Code

The badge and the waiting pose counted every listed event, so read
notifications, which stay listed, kept counting: 29 on the badge
against 10 on the tab. Both now use the tab's rule: prompts and stops,
and notifications until read, less any snoozed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@hiskudin hiskudin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharing the rule through EventStore.isPending is nice: pendingCount and waiting can't drift. They agree on read and unread, prompts, stops and grouped rows, and the suite passes (2148).

#303 rewrites the same paragraph in docs/panel.md, so whichever lands second needs a rebase.

Comment thread panel/EventStore.swift Resolved
- badge doc and code comment now say the badge is the Events tab count less snoozed events
- the companion test states the snooze difference: pendingCount 3 vs waiting 2, with the snoozed event named

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adefreitas
adefreitas merged commit 37b92a6 into StackOneHQ:main Dec 3, 2026
6 checks passed
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.

2 participants