Skip to content

fix(toasts): notified gives one answer whatever it opened - #137

Merged
nixfred merged 1 commit into
nixfred:mainfrom
ianswope:fix/notified-one-answer
Oct 8, 2026
Merged

nixfred merged 1 commit into
nixfred:mainfrom
ianswope:fix/notified-one-answer

Conversation

@ianswope

@ianswope ianswope commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the note on #136.

notified returned "shown" when it opened a toasted or still-unread chat and "opened" otherwise, so a same-user process could probe whether a chat id was unread or had just been toasted. It now always returns "opened". What a click opens is unchanged.

Verified

  • bun test: 750 pass, including a test that openNotified has exactly one return value.
  • Deployed and shell restarted; no plugin errors in the qs log. notified 15550100001 and notified "" both answer opened.

It returned "shown" for a toasted or unread chat and "opened" otherwise,
so a same-user process could learn whether a chat id was unread or had
just been toasted by calling it and reading the reply. It now always
returns "opened"; what it opens is unchanged. Raised in the nixfred#136 review.
@ianswope
ianswope requested a review from nixfred as a code owner October 8, 2026 00:34
@nixfred
nixfred merged commit 0f1f87f into nixfred:main Oct 8, 2026
1 check passed
@nixfred

nixfred commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Merged, thank you Ian, and for turning a review footnote into a fix within the hour. One answer whatever happened, and the test that pins exactly one return value means it stays that way. Live on both my machines: an unknown id and a known chat both answer "opened".

nixfred added a commit that referenced this pull request Oct 8, 2026
LR-T: blip, change-log, weekly-notes, #137, ianswope
LR-D: blip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeRMdPWNC2myz9U8hEeeCi
@ianswope
ianswope deleted the fix/notified-one-answer branch October 8, 2026 00:47
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