166 Commits
Author SHA1 Message Date
musistudio 0712db134f chore(release): 3.1.0 2026-09-10 11:53:12 +08:00
musistudio b1fd1e242f fix(gemini): honor selected protocols and API key auth (#1778) 2026-09-09 20:25:09 +08:00
musistudio 9387b5b190 fix(providers): persist deselected protocols (#1765) 2026-09-09 20:13:51 +08:00
musistudio b0d59afe08 Refactor routing configuration and improve provider support 2026-09-09 19:43:16 +08:00
musistudio 2b57c6078f Merge branch 'feat/ai-gateway' into dev/3.1
# Conflicts:
#	packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts
2026-09-02 20:24:42 +08:00
musistudio 61f8d8a60a Merge branch 'main' into dev/3.1 2026-09-02 20:21:32 +08:00
musistudio 923c742103 Add overview statistics reset with persistent reset tracking 2026-09-02 19:40:54 +08:00
musistudio 4bf550824d Disable streaming replies for Weixin iLink 2026-09-02 19:29:25 +08:00
musistudio 4afd350eef Implement comprehensive application updates 2026-09-02 18:37:11 +08:00
PgoooneandClaude Code ca99139285 fix(ui): 修复账户余额网格行数超限导致的卡片裁切
供应商账户较多时,双行卡片会把 dense 排布撑出超出组件高度档位的
行数,auto-rows-fr 将组件高度均分给每一行后行高被压到单行卡片
最小内容高度以下,卡片文字被裁切、网格出现空洞。

## 根因
- providerAccountBentoRowCount 把 height=2 的组件映射为最多 3 行,
  而每档组件高度只够容纳一行 ~120px 的卡片
- providerAccountBentoLayout 只按格子数(列数 x 行数上限)做预算,
  格子预算无法约束实际 dense 排布占用的行数

## 修复
- 行数上限改为跟随组件高度档位(height 即行数)
- 布局新增行数收敛阶段:模拟 CSS dense 排布计算真实占用行数,
  超限时先从尾部降级双行卡片(跳过手动设定尺寸),仍超限再隐藏
  进 "+N" 溢出块;溢出块同样参与占位模拟,不撑出新行

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-08-31 05:22:25 +08:00
musi 51ab4ecafa Merge pull request #1718 from diogomcd/feat/codex-explicit-context-window
feat: allow explicit context window overrides for local Codex providers
2026-08-30 10:45:50 +08:00
Diogo Macedo 92d771feb6 fix: honor pinned context windows through metadata merges and effective percent 2026-08-25 15:20:36 -03:00
Diogo Macedo 7a2b4c3a75 feat: respect explicit user context windows over imported Codex caps 2026-08-25 13:03:59 -03:00
musistudio a8d7038778 Add account filtering and range-aware tray activity widgets 2026-08-25 19:06:24 +08:00
songkuan-zheng 7f2500980d fix(ui): document the raw ai-gateway extraBody shape instead of byModel
Review follow-up: byModel is ai-gateway's normalized internal form
(parseModelScopedBody treats only `default` and actual model names as
scope keys); the raw config saved to disk is `default` plus top-level
model-name keys. The help text, i18n rows and the round-trip test now
use that raw shape.
2026-08-25 06:08:44 +00:00
songkuan-zheng e4ad5db099 feat(ui): edit extraBody and extraHeaders from Advanced settings
The provider dialog had no field for either, so both were config-file
only: invisible in the UI and only editable by hand-writing the config
or writing to the config database directly.

Adds two JSON boxes to the Advanced settings section, next to the usage
connector body that already uses this pattern. They open pre-filled with
whatever the provider carries, and a malformed or non-object value blocks
the save with an inline error instead of writing something the gateway
would ignore.

extraBody and extraHeaders leave providerManualFieldsForSave now that the
draft round-trips them; billing, provider and transformer stay there.
2026-08-25 06:08:22 +00:00
songkuan-zheng 1e696434c8 fix(ui): keep hand-written provider fields when saving from the dialog
Saving a provider from the setup dialog replaced the stored entry with an
object rebuilt from the dialog draft, so every field the form does not
expose was dropped: extraBody, extraHeaders, transformer, billing and the
legacy provider protocol alias.

These only ever come from a hand-written config, and the loss is silent —
the provider keeps working, just without the upstream parameters it was
configured with. Re-typing a base URL on a provider carrying
`extraBody: { default: { reasoning_effort: "high" } }` is enough to turn
reasoning off with no error and no visible change in the UI.

Carry those fields over from the existing provider on edit. The legacy
apiKey/apikey/baseUrl/baseurl aliases are deliberately not carried over:
the form writes the canonical api_key/api_base_url, and a stale alias
would shadow the value the user just typed.
2026-08-25 06:08:13 +00:00
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