Commit Graph

9 Commits

Author SHA1 Message Date
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