Skip to content

chore: merge upstream QuantumNous/new-api eb99ab1b (48 commits) - #5

Merged
lonely-4 merged 44 commits into
mainfrom
sync/upstream-20260906
Sep 5, 2026
Merged

chore: merge upstream QuantumNous/new-api eb99ab1b (48 commits)#5
lonely-4 merged 44 commits into
mainfrom
sync/upstream-20260906

Conversation

@lonely-4

@lonely-4 lonely-4 commented Sep 5, 2026

Copy link
Copy Markdown

⚠️ 提交说明 / PR Notice

Important

  • 描述可用 AI 辅助。提交前请审阅全文,并声明对其负责,避免未经核对的直接粘贴。
  • 请按本模板填写后再提交。

AI 声明:本 PR 的合并、冲突解决与验证由 AI 编码代理(opencode,模型 z-ai/glm-5.3-flash)协助完成,本人已审阅合并策略、冲突取舍与验证结果,并对其准确性与完整性负责。

🔗 关联任务 / Related Issue

  • 无关联 Issue:本 PR 为常规上游同步合并(fork 跟进上游 QuantumNous/new-api 的 48 个新提交),不引入 fork 自有新功能,无对应功能 Issue;上游侧变更均已在各自上游 Issue/PR 中讨论并合入。
  • Closes #

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 其他:⬆️ 上游同步合并 (Upstream sync merge) — 通过 merge commit 引入上游 2d8e50bf3..eb99ab1b4 的 48 个提交,不 rebase、不 force-push、不覆写 fork 历史

📝 变更描述 / Description

做了什么

以 merge commit(5170564ac)将上游 QuantumNous/new-api main 分支自 2d8e50bf3 以来的 48 个提交合入本仓库,保留完整 upstream 提交历史与 fork 自有提交历史,保证可追溯。

上游主要变更(48 提交)

冲突解决策略(8 个文件)

文件 处理
controller/option.go 保留 fork 决策:维持 2eb3c7c5(移除付费功能合规确认门槛)的删除——不恢复合规确认检查与 isPositiveOptionValue/isPaymentComplianceOptionKey 助手;采纳上游新增TaskPublicAddress 校验、计费表达式选项冒烟测试、GetOptions 计费模式/表达式展示、slices/sort 导入;移除随之无用的 strconv 导入
web/src/i18n/locales/*.json(7 个) 按键级并集合并:保留上游 223 个新增键与上游对 Overnight range 的删除;保留 fork 新增的 47–48 个 benchmark/落地页键;保留 fork 对合规相关 32 个键的删除(与 2eb3c7c5 的合规回退一致,合并后全库无残留引用,已用 grep 验证 Go 与前端均无引用);保留 fork 对 zh 落地页两处文案的修改;上游仅在 en/zh 有的 Serving 键经 bun run i18n:sync 回填至其余语言

为什么生效

  • 采用 merge 而非 rebase/force-push:上游与 fork 双方的提交历史完整保留,后续同类型同步可基于 merge base 继续进行
  • fork 的合规回退策略在后端(controller/middleware/model/router/setting)与前端(合规弹窗、钱包、订阅、系统设置相关文件)已整体删除,合并后经全库 grep 确认无任何残留引用(MsgPaymentComplianceRequiredIsPaymentComplianceConfirmedrisk-acknowledgement、合规相关 i18n 键均无引用),因此保留删除不会造成悬挂引用或未翻译键
  • i18n 七个语言文件均经统一脚本按键级并集重写并执行 bun run i18n:sync 规范化,7 个语言键集完全一致(en 5555 键,其余语言经回填后同为 5555 键,extras 均为 0)

📸 运行证明 / Proof of Work

后端(Go 1.22+)

  • go build ./... ✅ 通过;go vet ./... ✅ 通过
  • go test ./...:common/constant/controller/dto/e2e/middleware/model/oauth/billingexpr/jsplugin/plugins/relay/helper/router/setting 等全部包 ✅ 通过;relay/channelservice 两个包存在上游既有的顺序依赖型 flaky 测试(HTTP2 GOAWAY 重试用例依赖本机网络栈、channel-affinity 缓存用例存在跨用例状态污染):在纯 upstream/main(eb99ab1b4,临时 worktree)上全包运行出现同类失败(且每次失败用例名不同、单用例运行均通过),与合并无关,非本 PR 引入
  • relaykit 独立模块:GOWORK=off go build ./... ✅、GOWORK=off go test ./... ✅ 全部通过(满足 relaykit 模块独立可构建要求)

前端(web/,Bun)

  • bun install(同步 node-forge 依赖)后 bun run typecheck(tsgo)✅ 通过
  • bun run i18n:sync ✅ 执行完成,_sync-report.json:7 语言 missing/extras 均为 0(ja/ru 报告的 1 条 untranslated 为上游既有短词 Serving,上游 en/zh 同样保留英文)

冲突文件最终状态

  • git diff --check 无冲突标记;8 个冲突文件全部解决并并入 merge commit 5170564ac

✅ 提交前检查项 / Checklist

  • 人工确认: 描述由 AI 协助生成,本人已审阅全文、合并策略与冲突取舍,声明对其准确性与完整性负责。
  • 非重复提交: 本 PR 为 fork 内常规上游同步,仓库中无进行中的同类同步 PR。
  • 新功能关联 Issue: 本 PR 不引入新功能(上游变更各自已在上游关联 Issue/PR)。
  • 事前沟通: fork 内部同步合并,无需额外沟通;上游变更均经上游仓库评审合入。
  • 功能范围: 本 PR 不是 Coding Plan、逆向渠道、第三方封装接口,也不是对 Codex 渠道类型的改动。
  • 范围聚焦: 单一目的:同步上游;冲突解决仅为保持 fork 既有策略(合规回退、i18n 键集)与新上游变更并存。
  • 本地验证: 构建、vet、测试、typecheck、i18n sync 结果如上,可据此复核。
  • 安全合规: 无敏感凭据;仅合并上游代码与既有 fork 策略,未引入新的密钥或配置。

zcxads666 and others added 30 commits August 29, 2026 13:34
…#6987)

* fix(web): align admin binding types

Refs QuantumNous#6985

* test(web): restore animation mock
* fix(relay): return 400 for invalid request parameters
…in models

Channel model_mapping keys exposed in a channel's model list now act as
first-class aliases for task-plugin models across the whole line:

- Derived alias view (model/task_model_alias.go): built from enabled
  channels' model_mapping, chain-following with cycle detection, declared
  names always win, cross-plugin conflicts dropped. Rebuilt on channel
  cache refresh, registry generation change, and a 60s TTL.
- Request path: PinTaskPluginEndpoint resolves declared-name case folds
  and mapping aliases before endpoint lookup (never rewriting the body
  until the endpoint is claimed), pins with MappedModel, and the decode
  contract accepts alias echoes without loosening model ownership for
  normal pins. Legacy /v1/tasks submit folds case variants the same way.
  Fixes aliases on POST /v1/responses silently falling through to the
  main relay against task channels.
- Mapping order: ModelMappedHelper now runs before the plugin submit
  hook builds and caches the upstream body, so channel model_mapping
  actually reaches the upstream request. Plugins receive the mapped
  name as ctx.upstreamModel in both decode and submit contexts.
- Billing: identity stays the origin name; when the alias has no tiered
  expression, the selected channel's mapping tail expression applies.
  Pricing page and billing-expr smoke tests resolve aliases to the
  owning plugin's usage schema.
- Case folding: ASCII-only fold with exact-match priority; same-plugin
  and cross-plugin fold collisions rejected at registration.
- Plugins: model-keyed rate tables, req_key derivation, and combo
  validation in doubao/kling/jimeng/hailuo/vidu/sunoapi now key on
  ctx.upstreamModel || ctx.model; render/echo paths keep ctx.model.
…bility

GORM v1.25.2 closes cached prepared statements asynchronously on any SQL
error and immediately re-Parses the same deterministic name (pgx's
stmt_<sha256>) on the same client connection. Transaction-pooling proxies
(PgBouncer >=1.21 with max_prepared_statements, Neon, Supabase) respond
with FATAL "prepared statement name is already in use" (SQLSTATE 08P01)
and drop the connection. PreferSimpleProtocol only disables pgx's
implicit prepare and never covered GORM's explicit PrepareStmt cache.

- PostgreSQL now runs with PrepareStmt disabled entirely; named prepared
  statements are fundamentally session state and cannot be made safe
  under transaction pooling. Parse/plan cost is noise for this workload.
- Upgrade gorm to v1.25.12 so MySQL/SQLite statement caches (still
  enabled) no longer churn close/re-prepare on ordinary SQL errors;
  v1.25.9+ restricts eviction to driver.ErrBadConn. Deliberately not
  v1.26+, whose LRU eviction has an open use-after-close race (#7831).
- sanitizeDBError now attaches a remediation hint on 08P01/42P05 so
  affected deployments can self-diagnose from the log line.
Marketplace install/upgrade on a factory-served plugin actually created
a permanent override shadowing every future built-in release. The card
now shows an informational "Updates with the system" badge instead of
the action, while keeping the built-in vs marketplace version line and
the upgradable state badge visible. Deliberate overrides are untouched:
upload and marketplace actions on overridden or third-party plugins
behave as before, and the plugins table now hints when an override
lags behind the shipped built-in version so operators know deleting it
restores the newer factory plugin.
… stop concurrent write lockouts (QuantumNous#7030)

* fix(sqlite): enable WAL + working busy timeout + _txlock=immediate to stop concurrent write lockouts
…ocol

With PrepareStmt disabled, PostgreSQL queries run over pgx's simple
protocol, which encodes every []byte parameter as a bytea hex literal
('\x...'). driver.Valuer implementations returning []byte from
json.Marshal therefore fail json-column writes with SQLSTATE 22P02
(reported on the channels UPDATE path via ChannelInfo).

Reproduced against a live PostgreSQL 16: []byte Valuer into a json
column fails under simple protocol, string succeeds; []byte into a
text column silently stores the hex literal (no such path exists in
the repo today — audited all Valuers, json.RawMessage fields, and raw
SQL call sites).

- ChannelInfo, Properties, TaskPrivateData, JSONValue Value() now
  return string; zero-value nil semantics unchanged. Task.Data
  (bare json.RawMessage) is unaffected — database/sql's default
  converter already passes it as expected.
- Their Scan() counterparts now accept both []byte and string via a
  shared jsonScanBytes helper: SQLite returns string for these columns
  once Value() emits string, and the old []byte-only assertions
  silently zeroed the field (caught by the model test suite).
- Add regression tests locking both contracts: json-column Valuers
  must return string (or nil for zero values), Scanners must accept
  []byte and string.

Verified end-to-end against PostgreSQL 16 with the real model types:
Channel create/update/read-back, Task json fields, PrefillGroup items.
…nded heap growth → OOM) (QuantumNous#6949)

* fix(relay): bound the wait for upstream response headers (fixes unbounded heap growth)

The relay transport sets a dial timeout, a TLS handshake timeout and an expect-continue
timeout, but nothing bounds how long it waits for the upstream *response headers* after
the request has been written. An upstream that accepts the connection and then never
answers -- without sending FIN/RST, which is what happens when a NAT/firewall silently
drops the flow or the provider hangs -- parks the goroutine in
net/http.(*persistConn).roundTrip forever.

That goroutine keeps the whole request alive, which in practice means three copies of the
request body stay reachable for the lifetime of the process: the raw bytes from
io.ReadAll in CreateBodyStorageFromReader, the decoded messages held as json.RawMessage,
and the re-marshalled upstream body from common.Marshal. BodyStorageCleanup cannot help
here: it runs after c.Next() returns, and for these requests c.Next() never returns.

Measured on v1.0.0-rc.23 in production (see QuantumNous#6947 for the full evidence):

  - 23 goroutines stuck in persistConn.roundTrip on a single 40h-old instance,
    blocked between 353 and 1894 minutes (5.9h to 31.5h)
  - 96.9% of the live heap, sampled after a forced GC, attributable to those three
    body copies (HeapAlloc 892 MiB surviving three GC cycles; HeapObjects dropping
    30x while bytes dropped only 25%)
  - the live floor grows with uptime: 33.7 MiB at 0.1h, 89.2 at 13.8h, 510.0 at 40.1h,
    955.2 at 146.8h, OOMKilled at 172.9h -- same image, same config, same load

Doubling the memory limit and adding GOMEMLIMIT only moved the OOM from 132h to 172.9h.

RELAY_TIMEOUT (http.Client.Timeout) cannot be used for this: it covers the whole response
read and would cut legitimate long streaming calls, which is why it defaults to 0.
ResponseHeaderTimeout only bounds the wait for the headers; streaming after they arrive is
unaffected.

The default is deliberately generous. Non-streaming upstreams usually send the response
headers only once generation has finished, so the value has to leave room for a long
completion. 1800s is 12x shorter than the shortest hang observed here while leaving
several times the headroom a normal non-streaming request needs; 0 restores the previous
unbounded behaviour.

The assignment goes next to the other transport.* lines rather than inside the else
branch: newRelayHTTPTransport() normally takes the http.DefaultTransport.Clone() path,
and DefaultTransport does not set ResponseHeaderTimeout either.

This repo already sets ResponseHeaderTimeout on its other outbound transports
(controller/model_sync.go, controller/ratio_sync.go); the relay path appears to have
been missed.

Refs QuantumNous#6947. Likely also the root cause of QuantumNous#6731, which reported the same symptom
(production OOM on /v1/responses after ~64h) but was closed for template reasons.

* review: clamp overflowing timeout values and switch the test to testify

Addresses the two CodeRabbit findings on this PR.

Overflow (common/init.go:113): a RELAY_RESPONSE_HEADER_TIMEOUT beyond ~9.2e9 seconds
overflows time.Duration and can wrap into a *tiny positive* timeout, which would cut
every relay request instead of only the stuck ones. The value is now clamped before the
conversion, with regression tests for both the negative and the overflowing input.

I did not add fail-on-startup validation for negative values, for two reasons: the
existing `if seconds > 0` guard already treats them as "disabled", and the neighbouring
env-driven timeouts in this file are less strict still -- RelayIdleConnTimeout is
converted with no guard at all. Failing startup on a bad value would be a behaviour
change out of step with the rest of the file; happy to add it if you'd prefer that
direction repo-wide.

Test style: switched to testify (require.Equal / require.Zero / require.Positive), which
is what every other test under service/ uses.

go build, go vet and go test ./common/... ./service/... pass.
(`go build ./...` fails on the `web/dist` embed both with and without this change -- the
frontend bundle is not checked in.)
* fix(log): preserve quota in usage statistics
…, and billing usage integrity (QuantumNous#7137)

* feat(relaykit): preserve hosted tools across conversions

- add protocol-neutral hosted-tool DTOs, conversion metadata, and loss policies
- bridge citations, grounding metadata, and hosted-tool stream lifecycles
- document the public conversion behavior and channel policy controls

* refactor(relaykit): normalize reasoning and thinking intent

- centralize provider-neutral reasoning intent, effort, and budget mappings
- parse model suffixes at the host entry boundary while preserving provider-owned tails
- keep adaptive Claude thinking and explicit zero-token compatibility consistent

* fix(billing): preserve authoritative usage across relay hops

- carry native BillingUsage sidecars through direct and streamed protocol bridges
- merge partial and terminal usage monotonically with safe fallback settlement
- retain cache metadata, penultimate usage, and per-call Gemini tool surcharges

* feat(relay): bridge Responses with Claude and Gemini protocols

- add direct request, response, and stream converters across supported relay formats
- expose Claude count_tokens and Chat-to-Responses compatibility endpoints
- carry conversion diagnostics through the host while retaining the curated public goldens

* fix(relay): wire relaykit conversions into host channels

- connect handlers, adaptors, and channel settings to the standalone conversion layer
- keep model mapping, pricing identity, retries, and provider-specific suffix behavior aligned
- ignore local audit artifacts and retain focused public regression coverage
…uantumNous#7170)

Deferred follow-ups from the relaykit-tools review cycle, verified by
live end-to-end billing tests:

- billing: normalize Gemini modality keys consistently between stream
  merge and settlement (case/whitespace variants no longer drop
  independent audio/image pricing) and sum duplicate modality entries
  on both paths
- billing: sync legacy flat Claude cache-creation fields from the
  CacheCreation sub-object (including zeroing) and fall back to flat
  fields only when the snapshot never carried a sub-object, closing a
  stale 1h-cache overcharge path in cascaded deployments
- relay: move Chat-to-Claude and Chat-to-Gemini stream conversion state
  from gin.Context onto RelayInfo and reset it with SendResponseCount in
  InitChannelMeta, so channel retries start clean while per-request
  state (stream error collection, conversion diagnostics, channel
  chain, billing accumulators) survives
- relay: Claude channel now serves Gemini-format clients (request via
  registry conversion, response and stream composed through the Chat
  pivot), removing the last unimplemented conversion direction
- relaykit: recognize legacy pseudo tool names (googleSearch,
  codeExecution, urlContext) in the toolconv decode stage and drop the
  string-matching bypass in the Chat-to-Gemini converter; native Gemini
  tool output is restored and non-Gemini targets follow standard loss
  diagnostics
- relaykit: attach upstream Gemini usage (with billing_usage sidecar)
  to intermediate stream chunks so converted Claude streams report
  upstream truth from message_start, and preserve the sidecar through
  Claude stream usage merges; billing settlement unchanged
- billing: clamp negative Total-Prompt completion derivation, OR the
  Estimated flag across cross-dialect snapshot replacement, and fill
  canonical OpenAI prompt details via field-wise merge
QuantumNous#7168)

* feat(plugin): add MiniMax-H3 /v2 video generation to the hailuo task plugin

MiniMax-H3 speaks a different contract from the other Hailuo models, so the
hailuo task plugin now branches on the upstream model instead of adding a Go
adaptor:

- submit builds /v2/video_generation with a multimodal `content` array
  (text, first/last frame images, reference video/audio, or a full
  `metadata.content` passthrough), an explicit `ratio`, and 768P/2K
  resolutions; `metadata.callback_url` and `metadata.aigc_watermark` pass
  through
- query uses /v2/query/video_generation/{task_id} and parses the
  `{"task": {...}}` envelope, falling back to the /v1 shapes for every other
  model
- the /v2 result is a public CDN URL, so its artifact is proxied
  credentialless instead of through /v1/files/download
- request bounds (duration 4-15, resolution 768P/2K, ratio whitelist, at most
  2 frame images and 9/3/3 reference images/videos/audios) are enforced while
  the request body is built, which the host runs during validation, so an
  out-of-range duration is rejected with a 400 before it can become a billing
  multiplier
- duration and resolution are reported as usage facts only. Like the rest of
  this plugin, extractUsage returns no billing ratios, so per-call pricing is
  flat and 2K/duration pricing is expressed through the model's tiered billing
  expression over those facts.

Query hooks are driver hooks and are documented to receive `ctx.model` and
`ctx.upstreamModel`, but polling has no relay info and never populated them.
The polling and realtime-fetch call sites now carry the persisted task model
properties and the plugin adaptor maps them onto the query context, with
`upstreamModel` falling back to the origin name for tasks submitted without a
channel mapping.

* fix(plugin): validate Hailuo H3 requests and errors
Calcium-Ion and others added 13 commits September 3, 2026 11:28
* fix: reduce public bootstrap requests and revalidate content

* fix(controller): use a weak ETag for revalidated public JSON

/api is gzip-compressed by middleware that runs after the handler returns,
and the validator is computed over the uncompressed body. The compressed and
identity forms of one payload therefore share a validator, which a strong ETag
must not do -- it asserts byte-for-byte equality across representations
(RFC 9110 8.8.1). Serve W/ instead.

Weak comparison ignores W/ on both operands, so etagMatches now strips it from
the served validator as well as from each candidate. Stripping only the
candidate would make a weak served validator match nothing and silently
disable every 304.

Vary: Accept-Encoding stays. Weakening the validator makes revalidation
correct, but it does not separate the two encodings in a shared cache.

* fix(test): align response cookie helper name

* fix(auth): revalidate stale route sessions

* Update web/src/features/about/api.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* test: remove newly added PR tests

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Drop the unreachable user-visibility branch in LogOther.toMap and the
  receiver-mutating normalizeLegacyAdminFields; JSONString/Snapshot/
  MarshalJSON now share one full serialization
- Define legacySensitiveLogOtherKeys once and reference it from both
  SetPublic rejection and the user read-side projection
- Return the original JSON for every role when formatLogOtherJSON
  removed nothing, avoiding a re-marshal on the user log list path
- Log rejected OtherRatios keys in taskBillingOther instead of dropping
  them silently
- Use Snapshot() with typed assertions in service tests
…fication, and bounded poll failures

Plugin polling hooks previously ran against a hollow context: parseTaskResult
and parseBatchResult received {} / nil, buildQueryRequest received a
{task_id, action} map under the misleading name requestBody, and batch hooks
saw only bare task ids. The per-task poller also never looked at the upstream
HTTP status, and every built-in plugin papered over unrecognized bodies with
`|| "IN_PROGRESS"`, so a 404, a revoked key, or a shape the plugin did not
know would sit in IN_PROGRESS for the full 24h TASK_TIMEOUT_MINUTES while
holding the user's pre-charged quota.

Contract (docs/plugin-api v1.d.ts, v1.md, v1.schema.json):
- TaskQueryContext is declared separately from DriverContext and rebuilt from
  the persisted Task row: taskId, publicTaskId, action, model, upstreamModel,
  baseUrl, apiKey, authHeader, auth, data, state. Query-side requestBody is
  removed; the original request is not persisted and hooks that need a
  request-derived value must save it into state at submit time.
- parseTaskResult / parseBatchResult receive a third {status, headers}
  argument. Batch hooks receive tasks[] with one TaskQueryContext per task.
- NormalizedTaskResult accepts status "UNKNOWN" meaning "I do not recognize
  this body". Falling back to IN_PROGRESS for unknown shapes is forbidden;
  `plugin lint` warns on the literal.
- parseSubmitResponse / parseTaskResult / parseBatchResult may return `state`.
  Task.Data remains a per-round snapshot overwritten on every valid parse;
  state is plugin-owned, persisted in TaskPrivateData.PluginState, preserved
  when a hook omits it, byte-capped like taskData, and never exposed through
  presenter views.

Host (service/task_polling.go, relay/channel/task/jsplugin/adaptor.go):
- TaskPollingAdaptor / BatchTaskPollingAdaptor take *model.Task and the
  *http.Response so the adaptor can build the full context; jsplugin is the
  only implementation.
- HTTP classification before the plugin sees the body: 2xx -> plugin;
  404/410 -> FAILURE and refund; 401/403 -> poll failure plus a channel-scoped
  warning, no auto-disable; 429/5xx/transport -> poll failure; other 4xx ->
  plugin with the status visible, counted as unrecognized if the plugin still
  reports a non-terminal state.
- TaskPrivateData.PollFailures counts consecutive poll failures (transient
  HTTP, auth, transport, hook error, UNKNOWN). It is persisted through the
  existing UpdateWithStatus CAS so a concurrent terminal transition on another
  instance is never clobbered, and reset on any valid 2xx non-terminal parse.
  Reaching TASK_POLL_MAX_FAILURES (default 20, <= 0 disables) fails the task
  with the last classification and HTTP code in fail_reason and runs the
  existing settle/refund chain exactly once. sweepTimedOutTasks and its
  1440-minute default are unchanged as the outer backstop.
- Unrecognized bodies are logged at WARN with a bounded redacted copy since
  Task.Data is intentionally not overwritten on that path.

Plugins (all ten bumped one patch version):
- jimeng persists the outbound req_key in state and reads it back in
  buildQueryRequest, replacing dead reads of ctx.data / ctx.requestBody that
  never resolved.
- sunoapi batch hooks read tasks[] instead of the removed requestBody.
- hailuo treats base_resp.status_code != 0 as FAILURE before the status table.
- kling, vidu, sora, alibaba, doubao, hailuo, jimeng return UNKNOWN with the
  raw upstream status in reason on table miss.
- google and vertex-ai treat a missing `done` as in-progress: Google
  long-running operations omit proto3 default fields, so a running Veo
  operation has no `done` key at all. Only a body without an operation name is
  UNKNOWN. plugins/veo_poll_test.go locks this so the poll-failure cutoff can
  never fail a rendering Veo task.

Tests cover the classification table end to end against a real DB (404
immediate refund, 429xN refund, 401 increments without status change, 2xx
reset, UNKNOWN increments, state preserved vs replaced, PollFailures survives
the CAS write), the query-context shape, UNKNOWN on unrecognized bodies, and
the absence of PluginState/PollFailures from TaskView. Controller tests derive
the kling factory version from the embedded manifest instead of hardcoding it.
A model declared by a task plugin is served only by that plugin's channels.
When the claiming plugin has no enabled channel in the request group, the
distributor answered with the generic "no available channel" text, which hides
the actual cause and led operators to expect channel model_mapping on another
plugin's channel to take over (QuantumNous#7185). That expectation is not supported:
plugin declarations own model names statically, and channel availability must
not silently reassign ownership at request time. The supported fixes are the
existing operator tools, disabling the factory plugin per key or overriding it.

Both no-channel 503 sites in the distributor now route through
noAvailableChannelMessage. When the request is pinned to a task plugin, the
message names the claiming plugin and points to disabling or overriding it;
non-plugin requests keep the generic message. Added in en, zh-CN, zh-TW.
Model-name post-processing is rebuilt around an explicit trailing
@key:value modifier syntax (thinking/effort/temperature/topp) that
overrides request fields, survives model mapping, and records
conversion diagnostics on the consume log.

- Legacy naked aliases (-thinking, -nothinking, -thinking-<budget>,
  effort tails) now parse only for positively matched families
  (gpt-*/o-series, claude-*, gemini-*, incl. vendor/ namespaces);
  names like qwen-max stay opaque. EffortTailModelIDs remains the
  escape hatch for real in-family IDs such as gpt-5.1-codex-max.
- Billing identity resolves once in ModelPriceHelper via a ladder:
  configured request name first (legacy wildcard entries intact), then
  canonical billing names rebuilt from parsed intent
  (base@effort:E@thinking:S, then base@thinking:S; order, duplicates,
  and budget values are irrelevant; temperature/topp never priced),
  then base. Routing and token limits fall back through
  RoutingMatchModelName; pricing lookups stay wildcard-only.
- Pass-through stays byte-identical: modifiers and aliases are neither
  parsed nor validated there and forward verbatim for the upstream
  (or a chained gateway) to interpret.
- Unknown modifier keys and invalid known-key values are rejected with
  400; models whose real names contain @tag:value are exempted via the
  thinking-suffix blacklist, which now supports re:-prefixed Go regex
  entries.
- Claude reasoning render coerces unsupported combinations (disable,
  adaptive, budgets) with warning diagnostics instead of erroring;
  native-protocol requests without host syntax pass through untouched.

BREAKING(openrouter): drop the host-invented "-thinking" model-name
alias (added in 4f6d16e) that trimmed any *-thinking model on
OpenRouter channels and injected reasoning.enabled. It matched too
broadly and mangled real model IDs such as kimi-k2-thinking.
Migration: use some-model@thinking:on, or keep the old public name via
a channel model mapping {"some-model-thinking": "some-model@thinking:on"}.
Claude/Gemini family aliases (incl. anthropic/claude-*-thinking) keep
working via the family whitelist.
Merge upstream main (2d8e50b..eb99ab1) into CuzTeam main:
- Sandboxed JS task plugin system, hosted-tool conversion, reasoning normalization
- Billing expression pricing for tasks, gpt-6-astra built-in pricing
- Password transport encryption (opt-in), task artifact store, ETag revalidation
- SQLite WAL/busy-timeout, PostgreSQL pooler compatibility, legacy token key migration

Conflict resolutions keep fork policy:
- controller/option.go: keep the fork's removal of the payment-compliance
  gate (revert 2eb3c7c); adopt upstream TaskPublicAddress validation and
  billing-expression option handling; drop now-unused strconv import.
- web/src/i18n/locales/*.json: union of keys per locale. Upstream additions
  kept; fork's benchmark/landing keys kept; fork's compliance-key removals
  kept; zh landing copy kept; upstream's 'Overnight range' removal adopted;
  upstream's en/zh-only 'Serving' key backfilled to the other locales via
  i18n:sync.
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 560 files, which is 460 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 62ee95e4-7a0f-4775-9e71-f465887209de

📥 Commits

Reviewing files that changed from the base of the PR and between 9a40715 and 7fc07dd.

⛔ Files ignored due to path filters (2)
  • go.sum is excluded by !**/*.sum
  • web/bun.lock is excluded by !**/*.lock
📒 Files selected for processing (560)
  • .env.example
  • .github/workflows/release.yml
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • Dockerfile.dev
  • README.en.md
  • README.fr.md
  • README.ja.md
  • README.md
  • README.zh_CN.md
  • README.zh_TW.md
  • THIRD-PARTY-LICENSES.md
  • common/api_type.go
  • common/api_type_task_plugin_test.go
  • common/constants.go
  • common/database.go
  • common/etag.go
  • common/init.go
  • common/password_crypto.go
  • common/trusted_proxies.go
  • constant/channel.go
  • constant/channel_test.go
  • constant/context_key.go
  • constant/env.go
  • constant/task.go
  • constant/task_test.go
  • controller/billing_option_test.go
  • controller/channel-billing.go
  • controller/channel-test.go
  • controller/channel.go
  • controller/channel_pin_retry_test.go
  • controller/channel_task_plugin_bind_test.go
  • controller/channel_task_plugin_validation_test.go
  • controller/channel_test_internal_test.go
  • controller/channel_upstream_update.go
  • controller/log.go
  • controller/misc.go
  • controller/model.go
  • controller/option.go
  • controller/plugin_endpoint_test.go
  • controller/plugin_native_e2e_test.go
  • controller/plugin_protocol.go
  • controller/plugin_protocol_limiter.go
  • controller/plugin_protocol_limiter_test.go
  • controller/plugin_protocol_sdk_test.go
  • controller/plugin_protocol_test.go
  • controller/relay.go
  • controller/relay_count_tokens_test.go
  • controller/relay_error_log_test.go
  • controller/relay_task_plugin_test.go
  • controller/revalidated_response.go
  • controller/task.go
  • controller/task_generic_test.go
  • controller/task_log_view_test.go
  • controller/task_plugin.go
  • controller/task_plugin_debug.go
  • controller/task_plugin_debug_test.go
  • controller/task_plugin_test.go
  • controller/user.go
  • controller/video_proxy.go
  • controller/video_proxy_gemini.go
  • docs/authentication.md
  • docs/plugin-api/README.md
  • docs/plugin-api/v1.d.ts
  • docs/plugin-api/v1.md
  • docs/plugin-api/v1.schema.json
  • dto/channel_constraints.go
  • dto/channel_constraints_test.go
  • dto/plugin_protocol.go
  • dto/task.go
  • dto/task_plugin.go
  • e2e/doc_parse_test.go
  • go.mod
  • i18n/keys.go
  • i18n/locales/en.yaml
  • i18n/locales/zh-CN.yaml
  • i18n/locales/zh-TW.yaml
  • logger/logger.go
  • main.go
  • middleware/auth.go
  • middleware/body_cleanup.go
  • middleware/distributor.go
  • middleware/distributor_test.go
  • middleware/jimeng_adapter.go
  • middleware/kling_adapter.go
  • middleware/logger.go
  • middleware/task_artifact_access.go
  • middleware/task_artifact_access_test.go
  • middleware/task_plugin.go
  • middleware/task_plugin_model.go
  • middleware/task_plugin_origin_task_test.go
  • middleware/task_plugin_test.go
  • middleware/trusted_proxies.go
  • middleware/utils.go
  • model/ability.go
  • model/channel.go
  • model/channel_cache.go
  • model/channel_constraint.go
  • model/channel_constraint_test.go
  • model/channel_satisfy.go
  • model/gorm_logger.go
  • model/gorm_logger_test.go
  • model/json_column_test.go
  • model/log.go
  • model/log_format_test.go
  • model/log_other.go
  • model/log_other_test.go
  • model/main.go
  • model/option.go
  • model/option_task_plugin_test.go
  • model/password_crypto.go
  • model/prefill_group.go
  • model/prefill_group_migration.go
  • model/prefill_group_migration_test.go
  • model/pricing.go
  • model/pricing_usage_schema_test.go
  • model/system_task.go
  • model/system_task_test.go
  • model/task.go
  • model/task_cas_test.go
  • model/task_model_alias.go
  • model/task_openai_video_test.go
  • model/task_plugin.go
  • model/task_plugin_channel_select_test.go
  • model/task_plugin_test.go
  • model/token_migration.go
  • model/token_migration_test.go
  • pkg/billingexpr/compile.go
  • pkg/billingexpr/compile_usage_test.go
  • pkg/billingexpr/expr.md
  • pkg/billingexpr/run.go
  • pkg/billingexpr/settle.go
  • pkg/billingexpr/task_usage_test.go
  • pkg/billingexpr/types.go
  • pkg/jsplugin/cli.go
  • pkg/jsplugin/cli_test.go
  • pkg/jsplugin/engine.go
  • pkg/jsplugin/engine_test.go
  • pkg/jsplugin/fixture.go
  • pkg/jsplugin/fixture_test.go
  • pkg/jsplugin/model_fold.go
  • pkg/jsplugin/protocol_supports_test.go
  • pkg/jsplugin/registry.go
  • pkg/jsplugin/registry_disabled_factory_test.go
  • pkg/jsplugin/registry_master_enabled_test.go
  • pkg/jsplugin/registry_test.go
  • pkg/jsplugin/request.go
  • pkg/jsplugin/routing.go
  • pkg/jsplugin/routing_test.go
  • pkg/jsplugin/utils.go
  • plugins/.oxfmtrc.json
  • plugins/.oxlintrc.json
  • plugins/alibaba_responses_test.go
  • plugins/builtin_plugins_test.go
  • plugins/doubao_responses_test.go
  • plugins/embed.go
  • plugins/google_responses_test.go
  • plugins/hailuo_responses_test.go
  • plugins/jimeng_responses_test.go
  • plugins/kling_responses_test.go
  • plugins/sora_responses_test.go
  • plugins/sunoapi_responses_test.go
  • plugins/tasks/alibaba/plugin.js
  • plugins/tasks/doubao/plugin.js
  • plugins/tasks/google/plugin.js
  • plugins/tasks/hailuo/plugin.js
  • plugins/tasks/jimeng/plugin.js
  • plugins/tasks/kling/plugin.js
  • plugins/tasks/sora/plugin.js
  • plugins/tasks/sunoapi/plugin.js
  • plugins/tasks/vertex-ai/plugin.js
  • plugins/tasks/vidu/plugin.js
  • plugins/veo_poll_test.go
  • plugins/vertex_ai_responses_test.go
  • plugins/video_responses_test_helpers_test.go
  • plugins/vidu_responses_test.go
  • relay/channel/adapter.go
  • relay/channel/ali/adaptor_test.go
  • relay/channel/ali/image.go
  • relay/channel/api_request.go
  • relay/channel/api_request_test.go
  • relay/channel/aws/adaptor.go
  • relay/channel/aws/relay_aws_test.go
  • relay/channel/claude/adaptor.go
  • relay/channel/claude/adaptor_test.go
  • relay/channel/claude/relay-claude.go
  • relay/channel/claude/relay_claude_test.go
  • relay/channel/claude/relay_responses.go
  • relay/channel/deepseek/adaptor.go
  • relay/channel/gemini/adaptor.go
  • relay/channel/gemini/relay-gemini-native.go
  • relay/channel/gemini/relay-gemini.go
  • relay/channel/gemini/relay_gemini_usage_test.go
  • relay/channel/gemini/relay_responses.go
  • relay/channel/minimax/relay-minimax.go
  • relay/channel/newapi/adaptor.go
  • relay/channel/openai/adaptor.go
  • relay/channel/openai/chat_via_responses.go
  • relay/channel/openai/chat_via_responses_test.go
  • relay/channel/openai/constant.go
  • relay/channel/openai/helper.go
  • relay/channel/openai/relay-openai.go
  • relay/channel/openai/relay_responses.go
  • relay/channel/openai/responses_via_chat.go
  • relay/channel/replicate/adaptor.go
  • relay/channel/sub2api/adaptor_test.go
  • relay/channel/task/ali/adaptor.go
  • relay/channel/task/ali/adaptor_test.go
  • relay/channel/task/ali/constants.go
  • relay/channel/task/doubao/adaptor.go
  • relay/channel/task/doubao/constants.go
  • relay/channel/task/gemini/adaptor.go
  • relay/channel/task/gemini/billing.go
  • relay/channel/task/gemini/dto.go
  • relay/channel/task/gemini/image.go
  • relay/channel/task/hailuo/adaptor.go
  • relay/channel/task/hailuo/constants.go
  • relay/channel/task/hailuo/models.go
  • relay/channel/task/jimeng/adaptor.go
  • relay/channel/task/jsplugin/adaptor.go
  • relay/channel/task/jsplugin/adaptor_test.go
  • relay/channel/task/jsplugin/auth.go
  • relay/channel/task/jsplugin/auth_test.go
  • relay/channel/task/kling/adaptor.go
  • relay/channel/task/sora/adaptor.go
  • relay/channel/task/sora/adaptor_test.go
  • relay/channel/task/sora/constants.go
  • relay/channel/task/suno/adaptor.go
  • relay/channel/task/suno/models.go
  • relay/channel/task/vertex/adaptor.go
  • relay/channel/task/vidu/adaptor.go
  • relay/channel/vertex/adaptor.go
  • relay/channel/volcengine/adaptor.go
  • relay/channel/xai/adaptor.go
  • relay/channel/zhipu_4v/adaptor.go
  • relay/chat_completions_via_responses.go
  • relay/chat_completions_via_responses_test.go
  • relay/claude_handler.go
  • relay/common/conversion_diagnostics.go
  • relay/common/override.go
  • relay/common/relay_info.go
  • relay/common/relay_info_test.go
  • relay/common/relay_utils.go
  • relay/common/relay_utils_test.go
  • relay/common/tool_usage.go
  • relay/compatible_handler.go
  • relay/constant/relay_mode.go
  • relay/convert_request_error.go
  • relay/convert_request_error_test.go
  • relay/gemini_handler.go
  • relay/helper/model_mapped.go
  • relay/helper/model_modifier.go
  • relay/helper/price.go
  • relay/helper/price_test.go
  • relay/helper/reasoning_suffix.go
  • relay/helper/reasoning_suffix_test.go
  • relay/plugin_protocol.go
  • relay/plugin_protocol_test.go
  • relay/relay_adaptor.go
  • relay/relay_adaptor_jsplugin_test.go
  • relay/relay_task.go
  • relay/relay_task_test.go
  • relay/responses_handler.go
  • relay/task_platform_error_test.go
  • relay/task_platform_test.go
  • relaykit/README.md
  • relaykit/dto/billing_usage.go
  • relaykit/dto/billing_usage_test.go
  • relaykit/dto/channel_settings.go
  • relaykit/dto/channel_settings_test.go
  • relaykit/dto/claude.go
  • relaykit/dto/gemini.go
  • relaykit/dto/openai_request.go
  • relaykit/dto/openai_response.go
  • relaykit/dto/reasoning_state.go
  • relaykit/dto/usage_merge.go
  • relaykit/dto/usage_merge_test.go
  • relaykit/reasonmap/reasonmap.go
  • relaykit/relayconvert/claude_default_max_tokens_test.go
  • relaykit/relayconvert/convmeta/meta.go
  • relaykit/relayconvert/convmeta/meta_test.go
  • relaykit/relayconvert/convmeta/options.go
  • relaykit/relayconvert/golden_test.go
  • relaykit/relayconvert/internal/claude_messages/citations.go
  • relaykit/relayconvert/internal/claude_messages/stream_billing_usage_test.go
  • relaykit/relayconvert/internal/claude_messages/to_oai_chat_req.go
  • relaykit/relayconvert/internal/claude_messages/to_oai_chat_resp.go
  • relaykit/relayconvert/internal/claude_messages/to_oai_responses_hosted_stream.go
  • relaykit/relayconvert/internal/claude_messages/to_oai_responses_req.go
  • relaykit/relayconvert/internal/convdiag/collector.go
  • relaykit/relayconvert/internal/gemini_chat/grounding.go
  • relaykit/relayconvert/internal/gemini_chat/to_oai_chat_req.go
  • relaykit/relayconvert/internal/gemini_chat/to_oai_chat_resp.go
  • relaykit/relayconvert/internal/gemini_chat/to_oai_responses_hosted_stream.go
  • relaykit/relayconvert/internal/oai_chat/citations.go
  • relaykit/relayconvert/internal/oai_chat/to_claude_messages_req.go
  • relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp.go
  • relaykit/relayconvert/internal/oai_chat/to_claude_messages_resp_test.go
  • relaykit/relayconvert/internal/oai_chat/to_gemini_chat_req.go
  • relaykit/relayconvert/internal/oai_chat/to_gemini_chat_resp.go
  • relaykit/relayconvert/internal/oai_chat/to_oai_responses_req.go
  • relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp.go
  • relaykit/relayconvert/internal/oai_chat/to_oai_responses_resp_test.go
  • relaykit/relayconvert/internal/oai_chat/to_oai_responses_stream_resp.go
  • relaykit/relayconvert/internal/oai_responses/to_claude_messages_req.go
  • relaykit/relayconvert/internal/oai_responses/to_claude_messages_resp.go
  • relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp.go
  • relaykit/relayconvert/internal/oai_responses/to_claude_messages_stream_resp_test.go
  • relaykit/relayconvert/internal/oai_responses/to_gemini_chat_req.go
  • relaykit/relayconvert/internal/oai_responses/to_oai_chat_req.go
  • relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp.go
  • relaykit/relayconvert/internal/oai_responses/to_oai_chat_resp_test.go
  • relaykit/relayconvert/internal/oai_responses/to_oai_chat_stream_resp.go
  • relaykit/relayconvert/internal/shared/claude/reasoning.go
  • relaykit/relayconvert/internal/shared/claude/usage.go
  • relaykit/relayconvert/internal/shared/gemini/request.go
  • relaykit/relayconvert/internal/toolconv/decode.go
  • relaykit/relayconvert/internal/toolconv/encode.go
  • relaykit/relayconvert/internal/toolconv/hosted_values.go
  • relaykit/relayconvert/internal/toolconv/model.go
  • relaykit/relayconvert/internal/toolconv/policy_test.go
  • relaykit/relayconvert/internal/toolconv/response.go
  • relaykit/relayconvert/internal/toolconv/response_artifacts.go
  • relaykit/relayconvert/reasoning/claude.go
  • relaykit/relayconvert/reasoning/gemini.go
  • relaykit/relayconvert/reasoning/intent.go
  • relaykit/relayconvert/reasoning/intent_test.go
  • relaykit/relayconvert/reasoning/suffix.go
  • relaykit/relayconvert/reasoning/suffix_test.go
  • relaykit/relayconvert/request_compat.go
  • relaykit/relayconvert/request_registry.go
  • relaykit/relayconvert/request_registry_test.go
  • relaykit/relayconvert/response_compat.go
  • relaykit/relayconvert/response_registry.go
  • relaykit/relayconvert/response_registry_test.go
  • relaykit/relayconvert/terminal_stream_test.go
  • relaykit/relayconvert/testdata/golden/request/claude_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/request/claude_to_openai.golden.json
  • relaykit/relayconvert/testdata/golden/request/claude_to_openai_responses.golden.json
  • relaykit/relayconvert/testdata/golden/request/gemini_to_claude.golden.json
  • relaykit/relayconvert/testdata/golden/request/gemini_to_openai.golden.json
  • relaykit/relayconvert/testdata/golden/request/gemini_to_openai_responses.golden.json
  • relaykit/relayconvert/testdata/golden/request/openai_responses_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/request/openai_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/response/claude_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/response/gemini_to_claude.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_responses_to_claude.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_responses_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_responses_to_openai.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_to_claude.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/response/openai_to_openai_responses.golden.json
  • relaykit/relayconvert/testdata/golden/stream/claude_to_gemini.golden.json
  • relaykit/relayconvert/testdata/golden/stream/gemini_to_claude.golden.json
  • relaykit/relayconvert/text_converter_registry.go
  • relaykit/relayconvert/text_converter_registry_test.go
  • relaykit/relayconvert/tool_loss_policy_test.go
  • relaykit/types/conversion.go
  • router/api-router.go
  • router/main.go
  • router/plugin-router.go
  • router/plugin_router_test.go
  • router/relay-router.go
  • router/retired_frontend_routes_test.go
  • router/task-plugin-protocol-router.go
  • router/task-router.go
  • router/task_plugin_options_router_test.go
  • router/task_plugin_protocol_router_test.go
  • router/task_router_test.go
  • router/video-router.go
  • router/video_router_test.go
  • router/web-router.go
  • service/auth_session.go
  • service/authz/authz_test.go
  • service/authz/resources_task_plugin.go
  • service/billing_session.go
  • service/billing_usage.go
  • service/channel_affinity.go
  • service/channel_select.go
  • service/channel_select_test.go
  • service/codex_channel_models.go
  • service/http_client.go
  • service/log_info_generate.go
  • service/midjourney.go
  • service/quota.go
  • service/quota_saturation_test.go
  • service/request_converter.go
  • service/response_converter.go
  • service/task_artifact_access.go
  • service/task_artifact_access_test.go
  • service/task_artifact_store.go
  • service/task_artifact_store_test.go
  • service/task_billing.go
  • service/task_billing_test.go
  • service/task_plugin_audit.go
  • service/task_plugin_view.go
  • service/task_plugin_view_test.go
  • service/task_polling.go
  • service/task_polling_test.go
  • service/text_quota.go
  • service/text_quota_test.go
  • service/token_counter.go
  • service/violation_fee.go
  • setting/billing_setting/builtin_billing.go
  • setting/billing_setting/builtin_billing_test.go
  • setting/billing_setting/tiered_billing.go
  • setting/billing_setting/tiered_billing_test.go
  • setting/chat.go
  • setting/model_setting/global.go
  • setting/model_setting/global_test.go
  • setting/ratio_setting/matching_test.go
  • setting/ratio_setting/model_ratio.go
  • setting/reasoning/suffix.go
  • setting/reasoning/suffix_test.go
  • setting/system_setting/system_setting_old.go
  • setting/system_setting/task_artifact.go
  • setting/system_setting/task_artifact_store.go
  • setting/system_setting/task_artifact_store_test.go
  • setting/system_setting/task_artifact_test.go
  • setting/task_plugin.go
  • setting/task_plugin_test.go
  • setting/task_pricing_setting/config.go
  • setting/task_pricing_setting/config_test.go
  • types/task_artifact.go
  • web/.gitignore
  • web/package.json
  • web/rsbuild.config.ts
  • web/scripts/sync-i18n.mjs
  • web/src/components/ai-elements/code-block.tsx
  • web/src/features/about/api.ts
  • web/src/features/auth/api.ts
  • web/src/features/auth/lib/password-encryption.ts
  • web/src/features/auth/sign-in/components/user-auth-form.tsx
  • web/src/features/auth/types.ts
  • web/src/features/channels/api.ts
  • web/src/features/channels/components/drawers/channel-mutate-drawer.tsx
  • web/src/features/channels/constants.ts
  • web/src/features/channels/lib/__tests__/channel-type-options.test.ts
  • web/src/features/channels/lib/channel-form.ts
  • web/src/features/chat/lib/chat-links.ts
  • web/src/features/home/api.ts
  • web/src/features/legal/api.ts
  • web/src/features/pricing/__tests__/breakdown-tier-match.test.ts
  • web/src/features/pricing/__tests__/dynamic-price.test.ts
  • web/src/features/pricing/__tests__/task-expr.test.ts
  • web/src/features/pricing/__tests__/task-matrix-display.test.ts
  • web/src/features/pricing/__tests__/task-matrix.test.ts
  • web/src/features/pricing/components/dynamic-pricing-breakdown.tsx
  • web/src/features/pricing/components/model-billing-mode-badge.tsx
  • web/src/features/pricing/components/model-card.tsx
  • web/src/features/pricing/components/model-details.tsx
  • web/src/features/pricing/components/pricing-columns.tsx
  • web/src/features/pricing/components/pricing-sidebar.tsx
  • web/src/features/pricing/constants.ts
  • web/src/features/pricing/hooks/use-pricing-data.ts
  • web/src/features/pricing/lib/__tests__/time-rule-expr.test.ts
  • web/src/features/pricing/lib/billing-expr.ts
  • web/src/features/pricing/lib/billing-mode.ts
  • web/src/features/pricing/lib/breakdown-tier-match.ts
  • web/src/features/pricing/lib/dynamic-price.ts
  • web/src/features/pricing/lib/filters.ts
  • web/src/features/pricing/lib/task-expr.ts
  • web/src/features/pricing/lib/task-matrix-display.ts
  • web/src/features/pricing/types.ts
  • web/src/features/system-settings/__tests__/task-public-address.test.ts
  • web/src/features/system-settings/general/system-info-section.tsx
  • web/src/features/system-settings/general/task-public-address.ts
  • web/src/features/system-settings/models/global-settings-card.tsx
  • web/src/features/system-settings/models/model-pricing-sheet.tsx
  • web/src/features/system-settings/models/model-ratio-table-columns.tsx
  • web/src/features/system-settings/models/model-ratio-visual-editor.tsx
  • web/src/features/system-settings/models/task-pricing-matrix.tsx
  • web/src/features/system-settings/models/task-usage-pricing-editor.tsx
  • web/src/features/system-settings/models/tiered-pricing-editor.tsx
  • web/src/features/system-settings/site/index.tsx
  • web/src/features/system-settings/site/section-registry.tsx
  • web/src/features/system-settings/types.ts
  • web/src/features/task-plugins/__tests__/enabled-option.test.ts
  • web/src/features/task-plugins/__tests__/marketplace-panel.test.tsx
  • web/src/features/task-plugins/__tests__/marketplace.test.ts
  • web/src/features/task-plugins/__tests__/plugin-card.test.tsx
  • web/src/features/task-plugins/__tests__/plugin-detail-sheet.test.tsx
  • web/src/features/task-plugins/__tests__/plugin-icon.test.ts
  • web/src/features/task-plugins/__tests__/plugin-url.test.ts
  • web/src/features/task-plugins/__tests__/upload-dialog.test.tsx
  • web/src/features/task-plugins/__tests__/usage-schema-table.test.tsx
  • web/src/features/task-plugins/api.ts
  • web/src/features/task-plugins/components/javascript-viewer.tsx
  • web/src/features/task-plugins/components/marketplace-capabilities.tsx
  • web/src/features/task-plugins/components/marketplace-install-dialog.tsx
  • web/src/features/task-plugins/components/marketplace-panel.tsx
  • web/src/features/task-plugins/components/marketplace-plugin-card.tsx
  • web/src/features/task-plugins/components/marketplace-sources-dialog.tsx
  • web/src/features/task-plugins/components/plugin-card.tsx
  • web/src/features/task-plugins/components/plugin-detail-sheet.tsx
  • web/src/features/task-plugins/components/plugin-icon.tsx
  • web/src/features/task-plugins/components/plugin-metadata-card.tsx
  • web/src/features/task-plugins/components/plugin-sandbox.tsx
  • web/src/features/task-plugins/components/plugin-source-picker.tsx
  • web/src/features/task-plugins/components/plugin-url-import-field.tsx
  • web/src/features/task-plugins/components/plugins-table.tsx
  • web/src/features/task-plugins/components/source-diff.tsx
  • web/src/features/task-plugins/components/upload-dialog.tsx
  • web/src/features/task-plugins/components/usage-schema-table.tsx
  • web/src/features/task-plugins/index.tsx
  • web/src/features/task-plugins/lib/host-protocols.ts
  • web/src/features/task-plugins/lib/marketplace.ts
  • web/src/features/task-plugins/lib/plugin-icon.ts
  • web/src/features/task-plugins/lib/plugin-url.ts
  • web/src/features/task-plugins/types.ts
  • web/src/features/usage-logs/__tests__/access.test.ts
  • web/src/features/usage-logs/__tests__/artifacts.test.ts
  • web/src/features/usage-logs/__tests__/mobile-layout.test.ts
  • web/src/features/usage-logs/__tests__/task-details.test.ts
  • web/src/features/usage-logs/api.ts
  • web/src/features/usage-logs/components/__tests__/reject-reason.test.tsx
  • web/src/features/usage-logs/components/__tests__/usage-facts.test.tsx
  • web/src/features/usage-logs/components/columns/common-logs-columns.tsx
  • web/src/features/usage-logs/components/columns/task-logs-columns.tsx
  • web/src/features/usage-logs/components/dialogs/details-dialog.tsx
  • web/src/features/usage-logs/components/dialogs/task-details-dialog.tsx
  • web/src/features/usage-logs/components/plugin-author-link.tsx
  • web/src/features/usage-logs/components/task-artifacts.tsx
  • web/src/features/usage-logs/components/timing-metrics-cell.tsx
  • web/src/features/usage-logs/components/usage-logs-mobile-card.tsx
  • web/src/features/usage-logs/components/usage-logs-provider.tsx
  • web/src/features/usage-logs/components/usage-logs-table.tsx
  • web/src/features/usage-logs/constants.ts
  • web/src/features/usage-logs/lib/columns.ts
  • web/src/features/usage-logs/lib/query-params.ts
  • web/src/features/usage-logs/lib/task-artifacts.ts
  • web/src/features/usage-logs/lib/task-details.ts
  • web/src/features/usage-logs/lib/task-mobile-layout.ts
  • web/src/features/usage-logs/lib/utils.ts
  • web/src/features/usage-logs/types.ts
  • web/src/features/users/components/dialogs/__tests__/user-binding-dialog.test.tsx
  • web/src/features/users/components/dialogs/user-binding-dialog.tsx
  • web/src/features/wallet/components/subscription-plans-card.tsx
  • web/src/hooks/use-sidebar-data.ts
  • web/src/i18n/locales/_reports/_sync-report.json
  • web/src/i18n/locales/en.json
  • web/src/i18n/locales/fr.json
  • web/src/i18n/locales/ja.json
  • web/src/i18n/locales/ru.json
  • web/src/i18n/locales/vi.json
  • web/src/i18n/locales/zh-TW.json
  • web/src/i18n/locales/zh.json
  • web/src/i18n/static-keys.ts
  • web/src/lib/__tests__/localized-text.test.ts
  • web/src/lib/admin-permissions.ts
  • web/src/lib/api.ts
  • web/src/lib/auth-session.ts
  • web/src/lib/localized-text.ts
  • web/src/lib/session-hint.ts
  • web/src/routeTree.gen.ts
  • web/src/routes/(auth)/sign-in.tsx
  • web/src/routes/__root.tsx
  • web/src/routes/_authenticated/route.tsx
  • web/src/routes/_authenticated/task-plugins/index.tsx

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lonely-4
lonely-4 merged commit a2eb760 into main Sep 5, 2026
3 checks passed
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.