Skip to content

feat: classify Trae Solo quota and surface providers in console - #24

Merged
caigee-cmd merged 3 commits into
mainfrom
fix/trae-callback-html-502
Aug 29, 2026
Merged

caigee-cmd merged 3 commits into
mainfrom
fix/trae-callback-html-502

Conversation

@caigee-cmd

@caigee-cmd caigee-cmd commented Aug 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Keep Trae pasted-callback errors as JSON (not Cloudflare HTML) and keep Trae quota on the account card after refresh.
  • Classify Trae Solo 1005 / 4008 as quota, fail stream requests before OpenAI chunks when the first Solo event is an error, and send native catalog model names.
  • Show provider on Logs, Overview account pool, and Accounts totals; add Overview request share by provider family.
  • Replace Overview traffic bars with a GSAP-drawn area/line chart (success/error fill, axes, hover readout).

Test plan

  • go test ./internal/accounts ./internal/api ./internal/executor ./internal/providers/trae
  • cd frontend && npm run sync
  • python3 scripts/release-notes.py validate
  • Trae Doubao-Seed-Evolving quota (1005) should return quota JSON, not a 200 SSE then 502
  • Logs / Overview / Accounts should show Qoder, WorkBuddy, and Trae
  • Overview traffic chart should draw with GSAP and show hover counts

Stop polling before exchanging the pasted URL, treat an already-ready
account as success, and return 400 JSON so Cloudflare does not replace
login failures with a 502 HTML page.
In-process Upsert was wiping the display-only quota snapshot, so Trae
credits never stayed on the account card. Preserve quota and health, and
parse entitlement packs from nested JSON envelopes.
Keep Trae callback errors as JSON, preserve Trae quota after refresh, map
1005/4008 as quota, fail stream errors before OpenAI chunks, and send native
catalog model names. Logs, Overview, and Accounts now show provider family,
and Overview traffic is a GSAP area/line chart.
@caigee-cmd caigee-cmd changed the title fix: keep Trae pasted-callback errors as JSON, not Cloudflare HTML feat: classify Trae Solo quota and surface providers in console Aug 29, 2026
@caigee-cmd
caigee-cmd merged commit 8a5f606 into main Aug 29, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the fix/trae-callback-html-502 branch September 19, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant