Repository navigation
Conversation
Derive badge counts from unread completions and unresolved requests across connected environments. Only record visits while the conversation is visible in a focused window, preserve native badges on focus, and persist a device-local badge color with readable text contrast. Validated with check:changed, 80 focused tests, platform-specific native badge checks, and the running settings UI. Implemented with GPT-6.1-Sol through the Codex harness.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Unread-thread badges now survive app focus and can use a custom color on Windows and web. Notifications remain opt-in, the existing default color is preserved, and the changes are limited to notification presentation and visit tracking. You can add or adjust custom eligibility rules. Learn more. |
|
Closing this PR for now. I had missed the earlier discussion in #21911 and the maintainer response explaining that clearing the badge on app focus is intentional when I started this work. I will take that feedback into account and further refine the proposal and implementation, including platform-appropriate behavior and validation for macOS and other devices rather than focusing only on Windows. Once that work and the direction are clearer, I plan to open a new, better-scoped PR. Thank you for the feedback and review time. |
Problem
On Windows, I expected T3 Code's taskbar icon to behave like the counters in WhatsApp or ChatGPT: keep showing conversations I have not read and conversations that still need my input.
The initial report came from T3 Code Desktop 0.1.7 on Windows 11. Device notifications were disabled, which explained why no counter appeared initially. Source inspection then identified a separate limitation in the implemented counter, also present in nightly
0.1.8-nightly.20261104.4165: bringing any T3 window into focus resets the entire badge and clears its pending notification collection, regardless of which conversation was opened. Other unread completions and unanswered requests lose their reminder too.The mounted conversation also advances its visit watermark while the application is in the background. That can acknowledge a completion the user has not actually viewed.
To illustrate the requested behavior:
The existing badge is also always drawn red (
#e5484d). T3 supplies that image to Windows; the red color is not selected by Windows.Change
The shared settings contract adds a validated six-digit hex color with a decoding default for existing installations. No server orchestration or provider protocol changes are required. Mobile notification behavior is unchanged.
Scope and approval
This PR contains the behavior and appearance changes requested together for a persistent, configurable conversation badge.
Related: #21911. That issue was closed as not planned, and the maintainer response explicitly says clearing on focus is intentional. This PR therefore proposes a product-behavior change; it does not claim that the current focus-clearing behavior is an accidental regression.
No prior maintainer approval of this direction or combined scope has been obtained. The color option configures the existing badge-rendering capability, while the persistent-count behavior changes when that badge is acknowledged.
Verification
vp run check:changedpassed formatting, lint, both knip passes, typechecks of the affected packages and dependents, 80 tests, and the applicable React compiler check.Limitations: the native Windows taskbar overlay and OS notification delivery have not been verified end to end in a packaged desktop build. No Windows installer was built, and the user's installed application was not modified. The conversation-count behavior is covered by automated tests; no end-to-end agent-turn recording is attached.
Screenshots
The screenshots show the new setting before and after changing its color; the first is the default red configuration, not the original settings page before this PR.
Written by GPT-6.1 Sol, with reasoning effort High, through the Codex harness in T3 Code.