feat(trae): PKCE login, scene routing, max-mode tiers; devin quota layout; workbuddy check-in retry - #223
Merged
Conversation
- Trae login moves to the IDE PKCE authorization-code flow (S256 code_challenge, EC P-256 device key, /trae/api/v3/oauth/ExchangeToken); pre-switch accounts keep refreshing via refresh_client_id. - Chat requests route to the catalog scene that serves each model (chat_v3 primary, solo_work_lite fallback), fixing param errors for models solo_work_lite does not carry. - Max mode only surfaces on models with a real second tier; ceilings resolve from *_max at render so toggling off restores defaults. - Trae device identity switches to a 16-digit numeric device_id (no aha- prefix for digits) plus an EC device keypair for the code exchange. - Console copy buttons fall back to a hidden textarea when the async Clipboard API is unavailable (plain-http contexts).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Three independent changes on this branch:
feat(trae): PKCE login, scene routing, and max-mode tiers (
fa2efae)code_challenge, EC P-256 device key,/trae/api/v3/oauth/ExchangeToken); pre-switch accounts keep refreshing viarefresh_client_id.chat_v3primary,solo_work_litefallback), fixing param errors for modelssolo_work_litedoes not carry.*_maxat render so toggling off restores defaults.device_idplus an EC device keypair for the code exchange.feat(console): stretch devin quota windows across account card (
b36f48d)fix(workbuddy): retry daily check-in while upstream reports processing (
519a529)Request-path impact
DailyCheckin(adds a processing-retry delay list); chat/usage/catalog are unaffected.interfaces.goadds optionalModelCapabilitiesfields (Sceneis provider-internal,*_maxare omitempty) — additive only.Verification
go build ./...,go vet ./internal/...,go test ./internal/...all green (incl. new max-tier and PKCE tests).tsc --noEmitclean;npm run build+npm run syncdone,internal/webui/staticconsistent.