Commit Graph

27 Commits

Author SHA1 Message Date
zhaohan
0f9648f7ab merge: sync main for gateway compatibility
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: zhaohan <zhaohan@xd.com>
2026-11-10 22:03:37 +08:00
DavidShen
bb6e1bb6b9 fix(mobile): apply source context budgets to controlled-host picker
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 23:47:38 +08:00
DavidShen
81bdf8d400 fix(models): isolate remote model flyout context from local settings
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 23:18:35 +08:00
DavidShen
211e257d97 fix(models): preserve source context budgets in remote catalogs
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-09 23:18:34 +08:00
zhaohan
7cc3536965 fix(codex): adapt Grok and DeepSeek gateway tools
Scope Responses tool compatibility to the resolved Cindy AI gateway and recognize the Grok wire model used by that route.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: zhaohan <zhaohan@xd.com>
2026-11-09 22:22:47 +08:00
han
16261c247f fix(models): discover Codex Ultra and Fast for OpenAI API connections
Read API-mode model/list capabilities into the discovery layer without borrowing OAuth membership or changing explicit overrides.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: han <zhaohan@xd.com>
2026-11-06 14:48:32 +08:00
xuzini-xzn
aa6fbe5a6d feat(models): 在既有模型第二行显示 Magpie 供应商 (#8485)
* feat(models): show Magpie suppliers in existing model row subtitles

Preserve the existing second-line visibility and row layout while carrying supplier provenance through discovery, persistence and catalog projection. Keep gateway wire IDs distinct and invalidate stale source snapshots across configuration changes and process restarts.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: xuzini-xzn <323002959+xuzini-xzn@users.noreply.github.com>

* fix(models): preserve Magpie sources through provider setup

Carry discovery receipts and opaque wire IDs through connection forms and preset setup. Discover generic OAuth models after committed credential source cleanup.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: xuzini-xzn <323002959+xuzini-xzn@users.noreply.github.com>

* fix(models): preserve exact shortcuts and refreshed suppliers

Restore gateway shortcuts only with proven route identity across Desktop and Mobile. Accept fresh discovery receipts against replacement credentials while retaining stale-context guards.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: xuzini-xzn <323002959+xuzini-xzn@users.noreply.github.com>

---------

Signed-off-by: xuzini-xzn <323002959+xuzini-xzn@users.noreply.github.com>
Co-authored-by: xuzini-xzn <323002959+xuzini-xzn@users.noreply.github.com>
2026-11-03 20:57:37 +08:00
Chris
fc254bb084 fix(codex): align process provider with task routing
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-31 11:13:06 +08:00
Dash
025d1a0ab4 test(codex): 验证跨供应商与逐线程预算的原生压缩
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-23 10:26:46 +13:00
Dash
a44334f8d8 fix(codex): 优先使用原生压缩并保留切模历史
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-23 10:00:19 +13:00
Chris Zhang
6efabf5397 fix(models): honor subscription context defaults for GPT-6.1 Sol (#6558)
* fix(models): honor subscription context defaults for GPT-6.1 Sol

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(models): align catalog contracts with published defaults

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(models): keep Claude placeholder checks scoped to model identity

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): describe the bundled Auto route in all locales

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-10-20 23:06:14 +08:00
Dash
81dc080f31 fix: 按暂存目标路由校验思考强度和 Fast
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 17:51:05 +13:00
Dash
02f9aa8fe2 fix: honor cancellation before archived task restoration writes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 17:28:12 +13:00
Dash
6bd71790e7 fix: coordinate archived runtime settings under the send lease
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 17:08:22 +13:00
Dash
c8ea78a94a fix: keep runtime axes with pending user model selections
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 16:42:24 +13:00
Dash
3e3fb4c2c7 fix: restore archived model selection before direct send
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 16:03:41 +13:00
Dash
568b388220 fix: allow model settings on archived tasks
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-19 13:42:35 +13:00
ficowang
667ebe3ee0 fix(desktop): 收藏/全部里分享来的 Cindy AI 显示来源
模型选择器「收藏」「全部」第二行原先凭 providerId === 'xd' 一律改成模型简介,
分享来的、同账号其他电脑上的 Cindy AI 因此丢了「Cindy AI · 来自 X 的分享」
或「Cindy AI · 电脑名」来源。

- UnifiedModelRow 收到 sourceLabel 即显示来源,不再按供应商 id 拒绝。
- UnifiedModelPanel 按目录归属决定:只有任务所在电脑自己目录里的 Cindy AI
  不传来源、保留简介;分享目录、正在浏览的其他电脑目录照常传来源。可见行与
  定宽测量行共用同一判断,外来收藏行不变。
- 单供应商分栏、远程控制被控电脑时那台自己的 Cindy AI 保持原有简介。
- 同步澄清 model-catalog-runtime 与 provider-sharing §5.1 的展示口径。

Refs #6110

Signed-off-by: ficowang <fico@xd.com>
2026-10-15 16:21:30 +08:00
Chris Zhang
d54db7c247 fix(models): 统一所有来源 OpenAI 模型的 272K 默认上下文 (#5293)
* fix(models): apply OpenAI context defaults across all connections

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(models): fix context default fixture types

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): prioritize resolved vendor identity for context defaults

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-09-30 22:38:50 +08:00
Dash
6bff4d622c feat(model-picker): 远程连接时显示被控端订阅剩余额度,与用量 chip 共用镜像 (#5122)
* feat(model-picker): 远程目录显示被控端订阅剩余额度并与用量 chip 共用镜像

远程连接下模型选择器左侧供应商额度条与模型来源行此前一律隐藏。改为按目录归属读取:
本机目录读本机账号,远程目录读被控端用量镜像(与会话用量 chip 共用同一缓存条目与推送),
外部注入目录仍不显示。Codex 本机/远程数据归一为同一视图,选桶口径与 chip 一致。

镜像挂载时若同一账号已有其它消费者在线、或 60 秒内刚拿到快照,则复用而不再发起设备读取;
显式刷新仍照常读取。

Signed-off-by: Dash <dash@DashdeMac-Studio.local>

* docs(model-selector): 远程目录额度改读被控端镜像的说明

Signed-off-by: Dash <dash@DashdeMac-Studio.local>

* fix(model-picker): 远程镜像仅在有在线消费者且快照新鲜时复用

无监听者时被控端的登出/换号清空推送可能已错过,断线期间推送也会丢失;挂载复用改为
同时要求已有在线消费者且快照在 60 秒内,否则重新读取被控端。

Signed-off-by: Dash <dash@DashdeMac-Studio.local>

---------

Signed-off-by: Dash <dash@DashdeMac-Studio.local>
Co-authored-by: Dash <dash@DashdeMac-Studio.local>
2026-09-26 22:54:17 +08:00
Chris Zhang
061568865f fix(models): 补全模型导入同步并按原生协议启用新型号 (#5063)
* fix(models): preserve import metadata and enable new native models

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): preserve inherited window provenance and isolate model sizes

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): preserve sparse sync data and authoritative snapshots

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(pi): hide Fast preference paths from shell environments

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): scope sync metadata retention to the same connection

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): preserve failed catalogs and accept sparse native models

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(models): align refresh and native defaults with import behavior

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(models): align gateway defaults and await durable runner state

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): reconcile refreshed windows and preserve server native identity

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(pi): read Fast preferences from host memory over RPC

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): retain generation adapters and filter imported efforts

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(models): adapt reasoning metadata when filling runtimes

Signed-off-by: zqchris <chrisz83@gmail.com>

* docs(models): align Fast runtime guidance with host RPC

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-25 03:51:19 +08:00
Chris Zhang
d6cd6f3d11 feat(providers): 完善 Sub2API 接入与新模型代际继承 (#5050)
* fix(providers): complete Sub2API discovery and runtime capabilities

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* feat(providers): inherit defaults for new model generations

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(providers): normalize endpoint slashes in linear time

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(providers): reject connection capacity in registry metadata

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(providers): preserve working windows across discovery and Pi launch

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* docs(models): align generation inheritance contract with approved behavior

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): preserve inherited window provenance

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): exclude mode from generation inheritance

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(pi): preserve durable Fast preferences and hide control paths

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): use max-only windows and exact relay adapters

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): preserve exact metadata and discard stale inherited capacity

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): clear inherited image input on explicit denial

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(models): honor reduced capacity and current resume Fast capabilities

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-09-25 02:31:03 +08:00
Lizi
11a380099a fix(desktop): 恢复模型列表初始化失败后的重试与错误提示 (#4589)
* fix(desktop): recover failed model catalog initialization

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): keep catalog recovery visible over empty source state

Classic local pickers hid the reload action when a later catalog refresh
failed while the snapshot still had no connected source for the current
engine. Surface the recovery notice first and keep the connect CTA.

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): latch corrupt model visibility initialization

JSON parse failures used to become an empty initialization state, so a
later catalog could overwrite the original bytes. Keep the damaged
record, surface preferences-corrupt, and only replace it on an explicit
restore-defaults action.

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* chore(design): refresh inventory after catalog recovery merge

LocalModelCatalogNotice is now reachable from chat surfaces; regenerate
the design inventory so the related unit gate matches current styles.

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): clear initialization corruption after a valid reload

A successful read of repaired or deleted initialization JSON now drops
the owner-generation latch so the same renderer can recover the catalog
without restore-defaults. Windows descendant cleanup now uses EncodedCommand
and continues after CIM lookup failures.

Signed-off-by: MagicLizi <jiali@magiclizi.com>

* fix(desktop): clear map corruption after a deleted preference key

A successful read of a missing owner-scoped visibility map now drops
mapCorrupt, so deleting damaged bytes lets the same renderer reload
the catalog without switching accounts.

Signed-off-by: MagicLizi <jiali@magiclizi.com>

---------

Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-09-24 03:19:25 +08:00
Dash
a3956517d3 fix(models): 统一思考强度默认并保留 Harness 例外 (#4858)
* fix(models): 统一思考强度默认并保留 Harness 例外

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(models): 保留 Pi 显式默认强度例外

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-22 19:55:04 +07:00
Dash
87367262b9 feat(desktop): 模型列表显示账号来源与订阅余量 (#4364)
* feat(desktop): 模型列表显示账号来源与订阅余量

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): 费用改用中性色并限定耗量预警范围

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): 隔离订阅套餐来源并限制重置等待

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(desktop): 限制长额度提示宽度以保留账号来源

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-15 15:03:57 +07:00
Chris Zhang
e384c8eb85 fix(context): 修复小预算空回复与上下文圆环回退 (#4233)
* fix(context): 修复小预算空回复与上下文圆环回退

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(context): preserve snapshot provenance and adapt editor minimums

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(context): use 100K editor floor without restricting local runtimes

Signed-off-by: zqchris <chrisz83@gmail.com>

* test(context): align session fixtures with runtime provenance column

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(context): preserve runtime window provenance in session forks

Signed-off-by: zqchris <chrisz83@gmail.com>

* fix(context): validate fork route before inheriting runtime provenance

Signed-off-by: zqchris <chrisz83@gmail.com>

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-10 21:50:15 +08:00
Dash
79d748a88d docs(models): 精简模型配置架构入口并统一下发规则文档 (#4240)
* docs(models): 精简模型配置架构入口并统一下发规则文档

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* test(models): 将文档示例校验纳入标准单测套件

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-10 19:51:23 +08:00