Commit Graph
149 Commits
Author SHA1 Message Date
musistudio 19e5d4909e Release 3.0.22 2026-08-24 20:16:17 +08:00
musistudio f2360ac046 Merge branch 'main' into dev/3.1 2026-08-24 20:02:57 +08:00
musistudio 9e7d4f782c Implement router enhancements 2026-08-24 19:02:41 +08:00
musistudio ccd00632ac Update project files 2026-08-22 16:12:46 +08:00
Diogo Macedo 186541d0fd fix: preserve provider account meters during import 2026-08-20 16:43:13 -03:00
musistudio 3ba195f893 Improve Claude Code router configuration and provider support 2026-08-19 17:19:07 +08:00
Burlesque1 cfb6aae248 fix(ui): truncate over-large JSON bodies in preview to avoid formatter worker crash
Large (>=256KB) JSON request bodies were fully JSON.parse'd and pretty-printed
in the body formatter Web Worker, which then crashed (memory/CPU) on huge object
graphs - surfacing "Body formatter worker failed." and sticking at
"Loading body...". Preview truncation only applied to non-JSON bodies.

Now, in preview mode, an over-length text body is truncated to a plain-text
preview (createLogBodyPreviewText) instead of being parsed/pretty-printed, so the
worker never chokes. Full formatting still runs in "full" mode.

The judge is the real body.text length, not sizeBytes (which may be inflated
metadata and should still render its JSON tree when lightweight).

Fixes #1694
2026-08-19 08:55:14 +00:00
musistudio 4344a2d6a7 Refactor routing configuration and improve provider support 2026-08-18 11:45:39 +08:00
musistudio f2860e165a Release 3.0.21 2026-08-14 17:51:29 +08:00
musistudio 0fd9ea8f8b Add provider model refresh control 2026-08-14 16:24:25 +08:00
musistudio 9607c5f0a3 Improve provider account card layouts and meter visibility 2026-08-14 14:19:33 +08:00
musistudio 0104474e95 Merge branch 'main' into dev/3.1
# Conflicts:
#	packages/core/test/integration/observability/request-log-store.test.mjs
2026-08-14 11:17:06 +08:00
jesieleo 16f0868f40 fix(ui): 修复紧凑账户余额卡片裁切 2026-08-13 19:32:03 +08:00
musistudio 2a7aa9286b Update router configuration and provider handling 2026-08-11 16:15:53 +08:00
musistudio 3cb188c064 Report bounded agent analysis and handle missing session details 2026-08-11 15:00:59 +08:00
musi 56d7b37c64 Support multiple WorkBuddy models and generic app paths 2026-08-11 12:36:44 +08:00
musistudio 8fb38278f5 Merge branch 'main' of github.com:musistudio/claude-code-router into dev/3.1 2026-08-11 10:56:16 +08:00
musistudio e38f9bc2dd Refactor router configuration and request handling 2026-08-11 10:53:45 +08:00
musistudio 28f0a2f2b9 Merge remote-tracking branch 'origin/dev/3.1' into dev/3.1
# Conflicts:
#	packages/core/src/profiles/service.ts
#	packages/ui/src/pages/home/components/profiles.tsx
#	packages/ui/src/pages/home/shared/profiles.ts
2026-08-11 10:05:44 +08:00
musi c8e5e2b53d Add WorkBuddy app integration 2026-08-11 09:25:53 +08:00
musistudio e8db9406a7 Add automatic provider model refresh and dialog Escape handling 2026-08-10 15:40:48 +08:00
musistudio 6e34da7fca Enforce profile model allowlists across agent catalogs 2026-08-10 12:55:54 +08:00
jesieleo f39ab4d5c4 feat(providers): 增加小米 MiMo 及 Token Plan 预设 2026-08-08 19:08:47 +08:00
musistudio 065be3bf99 chore: release v3.0.20 2026-08-07 15:49:19 +08:00
musistudio c8825cf5cd Rename browser usage mode to Browser request 2026-08-07 15:04:43 +08:00
musistudio 83a7979c0b Implement routing updates 2026-08-07 14:57:45 +08:00
musistudio 860f41b187 Add provider logos to account balance widgets 2026-08-06 17:51:51 +08:00
musistudio 4097bbe5e7 Improve router configuration and request handling 2026-08-06 17:41:41 +08:00
musistudio 240cd73c1c Merge branch 'dev/3.1' into dev/docs
# Conflicts:
#	docs/src/content/docs/en/configuration/profiles.md
#	docs/src/content/docs/zh/configuration/profiles.md
2026-08-06 14:16:12 +08:00
musistudio 94674ba2e6 Add web content JSON provider account connectors 2026-08-06 11:36:11 +08:00
musistudio b4e6185172 Separate enhanced route from profile routing settings 2026-08-05 20:23:08 +08:00
musistudio b41890610c chore: release v3.0.19 2026-08-05 18:58:13 +08:00
musistudio 0fd7bf755f Merge dev/3.1 into main for v3.0.19
# Conflicts:
#	packages/ui/src/pages/home/components/network-logs.tsx
2026-08-05 18:56:16 +08:00
musistudio b4afa55c49 Offload large network log body formatting to a web worker 2026-08-05 15:49:18 +08:00
musi bc8a8e6205 Merge pull request #1618 from NDViet/main
fix(ui): repair provider setup flow in Get Started onboarding
2026-08-03 13:20:37 +08:00
musi 454daec31c Improve documentation navigation and extension guidance 2026-08-03 08:40:36 +08:00
musi bd9ffd385c Merge pull request #1623 from jesieleo/fix/ui-responsive-overflow
fix(ui): 修复窄窗口下侧栏和账户卡片内容被遮挡的问题
2026-08-02 17:09:36 +08:00
jesieleo 440241faa0 fix(ui): prevent responsive panels from clipping content 2026-08-02 12:46:10 +08:00
willyang 9331c9cbef fix: show routed model in request logs 2026-08-01 16:22:06 +08:00
Viet Nguyen Duc ba80cc81eb fix(ui): repair provider setup flow in Get Started onboarding
The onboarding wizard and the Add/Edit Provider dialog render the same
AddProviderForm, but the wizard is wired up differently, and several
defects lived in those differences.

Model probe never fired during onboarding. The model-probe useEffect in
App.tsx guarded on `providerAddOpen` only, which is set true solely when
opening the manual Add/Edit Provider dialog. It is never set during the
onboarding wizard, so after entering an endpoint + API key on the Get
Started flow and reaching the "Pick models" step,
probeProviderCandidates() never fired and the model list stayed empty
with no loading state. Regressed in 9f704fc ("Guide onboarding through
granular provider setup steps"), which narrowed the guard from
`providerAddOpen || (activeView === "onboarding" && onboardingStep === "provider")`
down to `providerAddOpen`. Restore the broader guard so the probe runs
both when the dialog is open and when onboarding is on the provider step.

A rejected API key produced an empty model list with no feedback. Typing
an API key switches the probe from mode "protocols" to mode "models",
but the error-reporting branch was guarded on `probeMode !== "models"`,
so it never ran in exactly that mode. The backend still runs full
protocol probing in models mode, so a 401 came back as `supported: false`
with a real message that was then discarded. Report the failure, while
staying quiet when models were discovered, since a provider can expose a
working catalog while a protocol probe endpoint 404s.

"Added models" faked a loading state for data it already had. The panel
renders local draft state, yet showed a skeleton and hid its whole
toolbar whenever the catalog probe re-ran, leaving the header badge
reading a real count above shimmer rows and removing the "Custom model"
button, the only way to add models on a provider with no catalog. Keep
both panels' controls mounted, disabling the catalog search while
loading, which also removes a layout shift and mid-typing focus loss.

An empty catalog gave no way forward, so point at "Custom model" (en+zh).

Onboarding's "Check Connection" spent real credits with no confirmation.
The dialog wraps onCheck in a confirm step that warns about account
balance, lets the user pick models, and shows per-model results;
onboarding passed onCheckProvider straight through, so one click fired a
billable request against every configured model and discarded the
report. Extract that step as ProviderConnectivityCheckDialog and use it
from both surfaces.

ProviderConnectionStatusRow hardcoded bg-emerald-50 / border-emerald-200
/ bg-amber-50 with no dark variant, so the "Verify connection" status
chips rendered as bright light blobs on the dark card. Use alpha fills,
matching the pattern used elsewhere in the file.

The provider error banner was not announced; add role="alert".

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
2026-08-01 06:47:14 +07:00
musistudio 4a152d959c feat: update ai-gateway version 2026-07-31 15:39:56 +08:00
musistudio 3f566d991a Preserve API keys across provider probes 2026-07-31 14:50:19 +08:00
musistudio 43f99b2de8 Use Token consistently in Chinese UI labels 2026-07-30 18:44:03 +08:00
musistudio 571aa63602 Show request and trace costs in agent observability 2026-07-30 17:32:34 +08:00
musistudio e778687774 Show partial agent session failures in observability UI 2026-07-30 15:25:50 +08:00
musi 8f0b2d91e5 Refactor routing architecture and update project structure 2026-07-29 09:30:04 +08:00
musi 3b99fa239b Release v3.0.17 2026-07-28 20:46:45 +08:00
musi b13232f68b Release v3.1.0 2026-07-28 20:36:40 +08:00
musistudio 6cfd3f226f Expand core functionality and update related components 2026-07-28 17:44:49 +08:00
musistudio 2c89b212ef Merge branch 'main' into dev/3.1
# Conflicts:
#	packages/core/test/unit/gateway/upstream-header-sanitizer.test.mjs
2026-07-28 09:54:13 +08:00