Skip to content

feat(companion): an unread alert event shows the alert pose - #303

Merged
adefreitas merged 2 commits into
StackOneHQ:mainfrom
adefreitas:feat/companion-alert-events
Dec 3, 2026
Merged

adefreitas merged 2 commits into
StackOneHQ:mainfrom
adefreitas:feat/companion-alert-events

Conversation

@adefreitas

Copy link
Copy Markdown
Collaborator

Stacky's alert pose (the fire) now also shows for an unread alert event. Before, only quota stress triggered it, and every other event showed the waiting pose.

Alert events today are:

Mute still outranks the alert pose. A permission prompt still waits rather than alarming. Reading the event ends the alert.

Checks

  • make test-without-xcode passes: 2148 tests, 0 failures. A new test covers the alert pose's priority over the waiting pose, and mute's priority over the alert pose.

🤖 Generated with Claude Code

@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.

The precedence is right (preview, mute, alert, waiting), snoozed events don't count, and reading, removing or clearing an event ends the alert. The suite passes (2148).

One behaviour worth sorting out before this lands is inline. Also, #301 rewrites the same paragraph in docs/panel.md, so whichever lands second needs a rebase.

Comment thread panel/Companion/CompanionMode.swift Resolved
Comment thread docs/panel.md Resolved
adefreitas and others added 2 commits December 3, 2026 10:50
The alert pose was only for quota stress. An unread alert event (CI
failing, a merge conflict, a meeting about to start) now shows it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- GitHubFeed remembers a PR's CI as failing until it is seen passing, so FAILURE, PENDING, SUCCESS emits the ci-keyed recovery event that replaces the alert; persisted in the feed state, old state files still decode
- A PR that stops being CONFLICTING emits a non-alert "Conflict resolved" event under the conflict key, replacing the alert
- docs: any feed event with severity alert raises the companion's alert pose, including scripts and extensions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adefreitas
adefreitas force-pushed the feat/companion-alert-events branch from a16bab5 to ec37639 Compare December 3, 2026 11:00
@adefreitas
adefreitas merged commit e88ff2b 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