Skip to content

feat: add tray icon#968

Draft
nmggithub wants to merge 14 commits intopingdotgg:mainfrom
nmggithub:tray-icon
Draft

feat: add tray icon#968
nmggithub wants to merge 14 commits intopingdotgg:mainfrom
nmggithub:tray-icon

Conversation

@nmggithub
Copy link
Contributor

@nmggithub nmggithub commented Mar 12, 2026

What Changed

This PR adds a Tray icon to T3 Code on macOS. Currently it has no menu, but I plan to add one. I want to make it like Cursor where you can see your active threads and if any have unread messages and/or are awaiting input.

Why

A tray icon may be useful for interacting with / observing the status of the application.

UI Changes

Screenshot 2026-03-12 at 05 40 34 Screenshot 2026-03-12 at 05 41 22

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/ after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Add macOS tray icon using the T3 wordmark SVG

  • Adds tray.ts with a createTray factory that renders the T3 wordmark SVG to a multi-scale PNG template image via sharp and creates an Electron Tray on macOS; returns null on other platforms.
  • Wires tray creation into the app bootstrap sequence in main.ts and destroys the tray on before-quit.
  • Behavioral Change: sharp is now a runtime dependency, adding a native module to the desktop build.

Macroscope summarized a43fcef. (Automatic summaries will resume when PR exits draft mode or review begins).

@coderabbitai
Copy link

coderabbitai bot commented Mar 12, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3ab4c79c-48a4-4020-95bf-00d25770c8d7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Mar 12, 2026
@zortos293
Copy link
Contributor

Looks clean ❤️

@Noojuno
Copy link
Contributor

Noojuno commented Mar 12, 2026

Please make this optional whatever you do! I don't need more icons in my menu bar 🙃

@nmggithub
Copy link
Contributor Author

Please make this optional whatever you do! I don't need more icons in my menu bar 🙃

Yeah, definitely planning on making it configurable. This is just a first draft.

@Ymit24
Copy link
Contributor

Ymit24 commented Mar 12, 2026

I like this idea, i bet there are some cool interactions that could be added to that tray feature!

@github-actions github-actions bot added the size:L 100-499 changed lines (additions + deletions). label Mar 12, 2026
@nmggithub
Copy link
Contributor Author

Screenshot 2026-03-12 at 19 52 38

Threads are now accessible in the menu on macOS, and the icon will inform you when there is an unread thread. Performance isn't exactly great right now, but this is still a draft.

@nmggithub
Copy link
Contributor Author

nmggithub commented Mar 13, 2026

@macroscope-app can you take a look at this and let me know your thoughts so far?

EDIT: It seems all Macroscope knows how to do is check the initial PR commit and respond with eyes to comments but not actually follow up.

@nmggithub
Copy link
Contributor Author

I think I like where this is at at the current moment. Unfortunately, menu item click handlers don't fire all that fast. It looks to be an AppKit issue, so not something we ourselves can entirely solve. Still looking into it, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants