GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(web): notification (and sound) when a thread finish by jaakkoob · Pull Request #7348 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Two consistency findings in the new Settings rows. Details inline.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| <div className="flex w-full items-center gap-3 sm:w-52"> | ||
| <output | ||
| className="min-w-12 rounded-md bg-muted px-2 py-1 text-center font-mono text-xs font-medium tabular-nums text-foreground" | ||
| htmlFor="thread-completion-notification-volume-slider" | ||
| > | ||
| {volume}% | ||
| </output> | ||
| <input | ||
| aria-label="Notification volume" | ||
| className="settings-slider min-w-0 flex-1" | ||
| id="thread-completion-notification-volume-slider" | ||
| max={MAX_NOTIFICATION_VOLUME} | ||
| min={MIN_NOTIFICATION_VOLUME} | ||
| onChange={(event) => { | ||
| const nextVolume = Number(event.currentTarget.value); | ||
| if ( | ||
| !Number.isInteger(nextVolume) || | ||
| nextVolume < MIN_NOTIFICATION_VOLUME || | ||
| nextVolume > MAX_NOTIFICATION_VOLUME | ||
| ) { | ||
| return; | ||
| } | ||
|
|
||
| primeNotificationChime(); | ||
| updateSettings({ threadCompletionNotificationVolume: nextVolume }); | ||
| if (previewTimerRef.current !== null) { | ||
| window.clearTimeout(previewTimerRef.current); | ||
| } | ||
| previewTimerRef.current = window.setTimeout(() => { | ||
| previewTimerRef.current = null; | ||
| playNotificationChime(nextVolume); | ||
| }, 400); | ||
| }} | ||
| step={10} | ||
| style={volumeSliderStyle} | ||
| type="range" | ||
| value={volume} | ||
| /> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This reconstructs the glass-opacity slider row (lines 1031-1058): identical output badge classes, identical settings-slider min-w-0 flex-1 input, and a second copy of the --settings-slider-progress / --settings-slider-fill-offset math, which encodes the half-thumb offset the .settings-slider CSS contract in index.css depends on. With two copies, a change to that fill math or to the badge geometry only lands on one slider. Consider extracting a named control next to SettingsRow in settingsLayout.tsx (value, min, max, step, aria-label, id, onChange) and rendering both rows through it, keeping call-site-only concerns such as the chime preview timer here.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| <Switch | ||
| checked={enabled} | ||
| onCheckedChange={(checked) => { | ||
| if (checked) { | ||
| enable(); | ||
| return; | ||
| } | ||
| updateSettings({ threadCompletionNotifications: false }); | ||
| }} | ||
| aria-label="Thread completion notifications" | ||
| /> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
When permission is denied or unsupported, enable() returns early, so this switch accepts the click, reports no state change, and snaps back — an interactive-looking control that cannot do anything. Switch already carries a disabled contract (data-disabled:cursor-not-allowed, reduced opacity, no keyboard activation), and the row's status text already explains why. Consider disabling it only while it is off and permission cannot be granted, so the documented case (permission revoked after opting in) still leaves a switch the user can turn off.
| <Switch | |
| checked={enabled} | |
| onCheckedChange={(checked) => { | |
| if (checked) { | |
| enable(); | |
| return; | |
| } | |
| updateSettings({ threadCompletionNotifications: false }); | |
| }} | |
| aria-label="Thread completion notifications" | |
| /> | |
| <Switch | |
| checked={enabled} | |
| disabled={!enabled && (permission === "denied" || permission === "unsupported")} | |
| onCheckedChange={(checked) => { | |
| if (checked) { | |
| enable(); | |
| return; | |
| } | |
| updateSettings({ threadCompletionNotifications: false }); | |
| }} | |
| aria-label="Thread completion notifications" | |
| /> |
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6c24b9c89ad9718b207759950851abf0a40e9561. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| showNotification, | ||
| useNotificationPermission, | ||
| } from "../../notificationPermission"; | ||
| import { playNotificationChime, primeNotificationChime } from "../../notificationChime"; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
The new General settings threadCompletionNotifications, threadCompletionNotificationSound, and threadCompletionNotificationVolume are omitted from changedSettingLabels and the restoreDefaults updateSettings payload. Changing them never dirties Restore defaults, and Restore leaves them unchanged while resetting neighboring General rows.
Reviewed by Cursor Bugbot for commit 6c24b9c89ad9718b207759950851abf0a40e9561. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a complete new feature (thread completion notifications with audio chimes), adding new components, browser API integrations, settings schema changes, and ~860 lines of new code. New features introducing user-facing behavior warrant human review. Additionally, unresolved Medium-severity findings identify missing restore-defaults handling and a documentation inaccuracy. Not approved because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Huge +1 from me! I’d be genuinely excited to have completion sounds in T3 Code—being able to switch away during a long-running thread and hear when it’s ready would be fantastic. The opt-in sound and volume controls proposed here look especially nice. 🔔 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Nothing tells you a thread is done unless you are looking at it, so long runs mean polling the tab. Web and desktop have no completion notification at all; only mobile does, and that path needs the relay. Adds an opt-in client setting that raises a native notification, with an optional synthesized chime, when a thread's latest turn completes. It announces a transition rather than a state, so it needs no clock of its own: a thread is news only once this client has seen it unfinished and then finished. A thread seen for the first time — on load, on reconnect, or when an environment joins late — is recorded silently, which is what keeps a page load from announcing the user's whole history. Turns that were interrupted or errored are not announced, and neither is a thread whose `backgroundLiveness` is still `working`, so delegating to subagents does not read as finishing. The watcher lives in the app shell so a turn finishing while the user is in Settings still reaches them, and subscribes to thread updates only while the setting is on and permission is granted. Web and desktop only; desktop inherits it through the web bundle. Mobile is untouched — it already has relay-backed push. Notifications need an open tab by construction. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
6c24b9c to
d19d671
Compare
|
|
||
| Notifications are delivered by the app itself, so they arrive while T3 Code is open in a tab or in | ||
| the desktop app, including when it is in the background. A closed tab receives nothing. On iOS and | ||
| Android, the mobile app delivers its own push notifications instead. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium user/notifications.md:21
Android users are told they will receive completion push notifications, but the mobile app does not deliver them because requestAgentNotificationPermission and SettingsRouteScreen support only iOS. Update this sentence to mention iOS only.
| Android, the mobile app delivers its own push notifications instead. | |
| On iOS, the mobile app delivers its own push notifications instead. |
In file @docs/user/notifications.md around line 21:
Android users are told they will receive completion push notifications, but the mobile app does not deliver them because `requestAgentNotificationPermission` and `SettingsRouteScreen` support only iOS. Update this sentence to mention iOS only.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Its honestly kinda strange we dont have alerts yet. T3 is such a cool app, but some sort of sound notifications when a thread needs input or is done would improve it by a mile. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@t3dotgg @maria-rcks can someone please review this? need alerts and could be turned off by default in settings so only people need it can turn it on, happy to contribute and make this better in this PR itself but please review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This would be super useful, feels like missing basic functionality 🙏 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Another +1 here, this is a no-brainer without any downside and very much needed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Superseded by #11481 (opt-in thread notifications and sounds on main). Closing as superseded. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.