mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-21 05:29:33 +01:00
feat(copilot): plan-usage chip row for the monthly premium-request quota (#662)
Squash of PR #662. The header plan-usage chip gains a Copilot row: the calendar-month premium-request quota, with the request counts and the reset in the tooltip, read every 10 minutes from GitHub's copilot_internal/user endpoint with the Copilot CLI's own sign-in token. It rides showPlanUsageLimits and is on by default while the CLI is installed and signed in; any failure leaves the chip without the row. Merge-time fixes by the maintainer: the gates (setting, then token, then the CLI probe) live in readCopilotPlanUsageIfEnabled() so a host with no Copilot sign-in never runs the login-shell probe each tick, with a test that Plan Usage Limits off means no request; the X-GitHub-Api-Version header the Copilot CLI itself does not send is dropped; and CLAUDE.md, architecture-invariants, README and copilot-integration describe the read. The hooks-config import in server.ts was merged with #666's. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f80f107445
commit
34cf798b10
22 files changed
+642
-26
No files matched your search
@@ -101,8 +101,15 @@ Stated plainly, because a security page that only lists strengths is not useful:
|
||||
|
||||
## Privacy
|
||||
|
||||
No telemetry, no analytics, no phone-home. Codeman's only network traffic is between your
|
||||
browser and your server. Your agent CLI's traffic is its own, on your account.
|
||||
No telemetry, no analytics, no phone-home. Your agent CLI's traffic is its own, on your
|
||||
account. Beyond the traffic between your browser and your server, the server itself makes a few
|
||||
requests for features you use: the Codex usage poll, web push, and webhooks if you set one up.
|
||||
|
||||
The GitHub Copilot quota read behind the plan usage chip's **Copilot** row is **on by default
|
||||
while Copilot CLI is installed and signed in** (an absent plan-usage setting reads as on, even
|
||||
for a phone-only user whose chip is hidden). Every 10 minutes the server asks `api.github.com`,
|
||||
and nothing else, for your premium-request quota, with Copilot's own sign-in token. The token is
|
||||
never logged and redirects are refused. Turn off **Plan Usage Limits** in App Settings to stop it.
|
||||
|
||||
Two features send data outward, both off by default and both stated where they appear: voice
|
||||
dictation through your Claude login, and the Read My Mind prediction call.
|
||||
|
||||
Reference in new issue
Block a user