Skip to content

feat(usage): show OpenCode Go, Cursor, and Grok limits - #787

Merged
rynfar merged 3 commits into
pylonfrom
feat/provider-subscription-limit-probes-20260924
Sep 26, 2026
Merged

rynfar merged 3 commits into
pylonfrom
feat/provider-subscription-limit-probes-20260924

Conversation

@rynfar

@rynfar rynfar commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

OpenCode Go, Cursor, and Grok accounts previously showed no subscription quota in Pylon even when their local provider instance was connected. This adds provider-specific, bounded quota probes from the instance's own authenticated environment and reports unavailable readings without exposing response bodies or credentials.

The probes run only for installed, authenticated local instances. OpenCode external servers, Cursor API-key mode, and Grok API-key/custom endpoint modes remain excluded. The usage docs describe the new readings.

Validation: 78 focused provider tests passed; server typecheck, changed-file lint, and formatting passed after merging current pylon. An adversarial source review found two Grok follow-up fixes and both are included with regression coverage. No live provider account was queried. A failed probe reports unavailable rather than retaining an old quota value; the existing unavailable warning handles that state.

Upstream sources: eff44be433dc9683da7764a20334598e47b127b2 (initial probes), 0cab7d5ab9 (empty Grok usage), and 91e53e501c (Grok account email), adapted to Pylon provider status and usage snapshot helpers.

Implemented with GPT-6 Sol in the Codex harness.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
pylon-marketing Ignored Ignored Preview Sep 26, 2026 6:45am UTC

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 24, 2026
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.9 KiB 14.0 KiB +53 B (+0.4%) 15.1 KiB ✅
Codex Thread snapshot wire 7.2 KiB 7.2 KiB +8 B (+0.1%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.7 KiB 6.8 KiB +45 B (+0.7%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 58.0 KiB 58.0 KiB +44 B (+0.1%) 66.4 KiB ✅
Codex Live turn messages 9 10 +1 (+11.1%) 21 ✅
Claude Total thread wire 14.0 KiB 14.0 KiB +25 B (+0.2%) 15.1 KiB ✅
Claude Thread snapshot wire 7.2 KiB 7.2 KiB +5 B (+0.1%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.8 KiB 6.8 KiB +20 B (+0.3%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 58.9 KiB 58.9 KiB 0 B (0.0%) 66.4 KiB ✅
Claude Live turn messages 10 10 0 (0.0%) 21 ✅

Baseline: afd6c11 · PR result: a435270 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 115.6 KiB
  • Claude decoded thread snapshot: 116.3 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@rynfar
rynfar merged commit ef36af3 into pylon Sep 26, 2026
20 checks passed
@rynfar
rynfar deleted the feat/provider-subscription-limit-probes-20260924 branch September 26, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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.

1 participant