TokenTracker icon indicating copy to clipboard operation
TokenTracker copied to clipboard

[bug]: "Every time you open it, you need to re-authorize."

Open Zane-SI opened this issue 6 months ago • 4 comments

What happened?

"Every time you open it, you need to re-authorize." Image

Steps to reproduce

"Every time you open it, you need to re-authorize." Image

Expected behavior

No response

TokenTracker version

latest

Node.js version

No response

How did you install it?

npm / npx (CLI)

OS / version

26.4.1

Output of tokentracker doctor (if applicable)


Anything else?

No response

Zane-SI avatar May 16 '26 01:05 Zane-SI

001-89

linear[bot] avatar May 16 '26 01:05 linear[bot]

Thanks for the report. The screenshot is the macOS TCC "App Management" prompt — "TokenTrackerBar.app would like to access data from other apps" — which macOS shows when an app reads files written by other apps. TokenTracker has to read the local logs that Claude / Codex / Cursor / Gemini / etc. drop under ~/.<provider>/, so the prompt is triggered on first launch.

The reason it asks every time is that our DMG is currently ad-hoc signed (no Developer ID + notarization yet), and macOS does not persist TCC grants across launches for ad-hoc identities. With a proper Developer ID signature, your answer would be remembered. We have Developer ID + notarization on the roadmap and will roll it into a future release.

A couple of questions while you're hitting this:

  1. Does the prompt appear on every launch of the same installed version, or only after upgrading to a new version?
  2. After you click Allow, does TokenTracker start tracking normally (menu bar icon updates, dashboard shows entries from your CLI sessions)?

If both work after Allow, the prompt is annoying but the app is functional — and the long-term fix is signing. If something else breaks even after Allow, let us know and we'll look into it separately.

xiufengsun avatar May 16 '26 14:05 xiufengsun

  1. Does the prompt appear on every launch of the same installed version, or only after upgrading to a new version? Starts every time.

  2. After you click Allow, does TokenTracker start tracking normally (menu bar icon updates, dashboard shows entries from your CLI sessions)? Even after allowing, it will still appear.

Zane-SI avatar May 16 '26 15:05 Zane-SI

Hi @Zanetach — to confirm: the repeated TCC prompt is a known limitation of our ad-hoc DMG signing on macOS. macOS only persists "App Management" grants for apps signed with a Developer ID + notarized, and our DMG is currently ad-hoc signed (no paid developer cert yet). After you click Allow, the app should still track normally for the rest of that session — it just won't remember the answer next launch.\n\nThe permanent fix is Developer ID + notarization, which is on the roadmap. Closing this for now since there is no code change that bypasses the macOS-side TCC behavior without a real signature. We'll link a release back to this issue once signing lands. Thanks for the report.

xiufengsun avatar May 21 '26 01:05 xiufengsun