Skip to content

Conversation

@lipka
Copy link
Contributor

@lipka lipka commented Jan 31, 2026

Summary

  • Add system notification support via Tauri notification plugin
  • Add app setting + UI toggle and test action for system notifications
  • Trigger system notifications for long-running agent completions when unfocused

Testing

  • Not run (not requested)

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9fb45398f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +210 to +214
// Store the message text for use in turn completion notification
if (event.text) {
lastMessageByThread.current.set(threadKey, event.text);
}
const durationMs = consumeDuration(event.workspaceId, event.threadId, "");

Choose a reason for hiding this comment

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

P2 Badge Prevent duplicate system notifications per turn

In handleAgentMessageCompleted, consumeDuration is called with an empty turnId, which clears only turnStartByThread but leaves the turnStartById entry that was created in handleTurnStarted (lines 140–148). When the subsequent turn/completed event arrives with a real turnId, consumeDuration will compute a fresh duration from turnStartById and can send a second notification if it’s >1.5s after the first. This yields duplicate system notifications for a single long turn whenever item/completed (agentMessage) and turn/completed are separated by more than 1.5s. Consider clearing turnStartById for the thread when notifying on agent message completion, or only notifying on one of the two events.

Useful? React with 👍 / 👎.

@lipka lipka force-pushed the add-system-notifications branch from 9fb4539 to f5863ca Compare January 31, 2026 10:27
@lipka lipka force-pushed the add-system-notifications branch from f5863ca to e4d6315 Compare January 31, 2026 10:28
@Dimillian
Copy link
Owner

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian closed this Feb 1, 2026
@Dimillian Dimillian reopened this Feb 1, 2026
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