fix window titles for time tracking apps - #6477
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 |
Fix window titles to reflect active thread and project for time tracking apps
Macroscope summarized 4fc7a33. |
ApprovabilityVerdict: Approved 87dcb80 Simple UI-only change that modifies window titles to include thread and project names instead of a static app name. No functional impact - only affects what time tracking apps see in the window title. You can customize Macroscope's approvability policy. Learn more. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ 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 4fc7a33. Configure here.
| window.on("page-title-updated", (event) => { | ||
| event.preventDefault(); | ||
| window.setTitle(environment.displayName); | ||
| }); |
There was a problem hiding this comment.
Load handler resets window title
Medium Severity
Removing the page-title-updated lock lets the renderer drive the native title, but did-finish-load still calls setTitle with environment.displayName. That main-process write can run after DocumentTitleSync has already set a thread/project document.title. Because the React effect does not re-run, the native title can stay on the generic app name—so desktop time trackers still cannot distinguish sessions after open or reload.
Reviewed by Cursor Bugbot for commit 4fc7a33. Configure here.


T3 Code currently reports every thread as
T3 Code (Alpha), so time tracking apps cannot distinguish work by project or thread.This updates the window title to include the active thread and project.
Note
Low Risk
Title-only UX changes with no impact on auth, data, or core app behavior.
Overview
Window titles now reflect the active thread and project so time-tracking tools can distinguish sessions instead of always seeing the generic app name.
The web shell’s
DocumentTitleSyncreads the current thread route and setsdocument.titleto{thread title} — {project title}when both are available, otherwise it keeps the existing server-backed app display name.On desktop, the main window stops overriding
page-title-updatedto forceenvironment.displayName, so the native window title can follow rendererdocument.titleupdates (initial load still resets to the app name until the route sync runs).Reviewed by Cursor Bugbot for commit 4fc7a33. Bugbot is set up for automated code reviews on this repo. Configure here.