Skip to content

fix: WorkBuddy Global catalogs, first-token logs, and account cards - #18

Merged
caigee-cmd merged 2 commits into
mainfrom
fix/workbuddy-intl-models-20260828-224823
Aug 28, 2026
Merged

caigee-cmd merged 2 commits into
mainfrom
fix/workbuddy-intl-models-20260828-224823

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Fetch WorkBuddy Global model catalogs from /v2/enterprises/personal/models instead of the console OIDC page, and return catalog failures as 503 JSON.
  • After dropping caller system prompts, still send WorkBuddy an empty leading system message so Global does not reject with 11128.
  • Show first-token time on Logs, label token counts as input/output, add account edit, and keep cards mounted on refresh so quota/runtime meters can animate.

Test plan

  • go test ./internal/providers/workbuddy ./internal/api ./internal/executor ./internal/translate
  • frontend typecheck + npm run sync
  • Open a WorkBuddy Global account catalog in the console
  • Stream a chat and confirm Logs shows first-token time plus in/out token labels
  • Refresh Accounts and confirm quota/runtime meters tween without swapping to skeletons

Global model listing was hitting the console OIDC page and leaking 502 HTML through Cloudflare. Fetch the plugin JSON catalog, return catalog failures as 503, and after dropping caller system prompts still send an empty leading system message so Global does not reject with 11128. The add-account dialog waits for /api/providers behind type skeletons instead of flashing Qoder Global.
Record the first SSE token as ttfb_ms, label token counts as input/output, drop auth-type from account cards, and keep cards mounted on refresh so quota and runtime meters can tween.
@caigee-cmd
caigee-cmd merged commit d7c05b2 into main Aug 28, 2026
6 checks passed
@caigee-cmd
caigee-cmd deleted the fix/workbuddy-intl-models-20260828-224823 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