Commit Graph

59 Commits

Author SHA1 Message Date
Amp
a20deca7aa Merge main into chore/pi-1.5.2
Signed-off-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a1c9de-354c-775c-8d8d-e3c2a99c3f5b
Co-authored-by: Chris Zhang <chris@xd.com>
2026-11-11 15:31:00 +00:00
Amp
1719a20e8c chore(pi): upgrade official runtime to 1.5.2
Signed-off-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a1c9de-354c-775c-8d8d-e3c2a99c3f5b
Co-authored-by: xdanger <xdanger@gmail.com>
Co-authored-by: Chris Zhang <chris@xd.com>
2026-11-11 15:05:59 +00:00
Lizi
c25f9874f5 Merge pull request #9873 from makecindy/cindy/steady-darwin
fix(model-providers): 修正 Copilot Astra 的 Responses 接口
2026-11-11 18:21:54 +08:00
DavidShen
2c6e8c5c23 fix(model-providers): complete Copilot Astra Responses metadata
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-11 16:45:03 +08:00
Amp
7731226eb4 fix(pi): support official Pi 1.5.0 effort semantics
Signed-off-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a1c97a-06d4-7213-a74e-2ff55ae13a03
Co-authored-by: 一孟 黄 <dash@xd.com>
2026-11-11 07:44:12 +00:00
DavidShen
22fa241300 fix(model-providers): route Copilot Astra through Responses
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-11 10:56:42 +08:00
Dash
7bcdfb1c7a fix(models): discover Fable 5.2 from the bundled Claude runtime
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 09:38:44 +13:00
Lizi
e9c29a8deb Merge pull request #7937 from zqchris/deepseek-pi-optimize
fix(pi): send DeepSeek V4.1 Flash requests in DeepSeek's format
2026-10-30 15:00:45 +08:00
Lizi
384db2112c update codex / claude code
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-30 08:53:53 +08:00
Lizi
83503e30f9 update pi
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-10-30 08:53:52 +08:00
Chris
1ce502f4d7 fix(pi): send DeepSeek V4.1 Flash requests in DeepSeek's format
Cindy AI Gateway IDs deepseek/deepseek-v4.1-flash and deepseek/deepseek-flash had no
DeepSeek compat row, and the loopback URL defeats Pi's deepseek.com detection. Pi therefore
sent `developer`, `max_completion_tokens`, `store` and no `thinking` toggle, so turning
thinking off left it on. Map every Flash alias to Pi 1.4's `deepseek-flash` row and keep V4 Pro
on its own row.

Teach the bundled-catalog reader Pi 1.x's lazy shard layout (chat rows only) and merge the
Pi 1.4.0 DeepSeek rows into provider-models.json, so DeepSeek direct, OpenRouter, Bailian
Token Plan and the other relays get current compat, efforts, image input and prices. Rows whose
endpoint moved (OpenCode Zen/Go) are left for the Pi pin bump.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-30 01:03:07 +08:00
fmfsaisai
12641d4709 fix(codex): use bundled CLI inside task shells
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>
2026-10-25 23:29:57 +08:00
Chris
6563d0616d feat(models): deliver versioned multi-interface catalogs across harnesses
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-24 03:27:54 +08:00
Lizi
aebeaffb9b update claude bin 2026-10-13 00:26:43 +08:00
Lizi
aa700a210c update pi to 1.0.2 2026-10-04 19:30:12 +08:00
Lizi
7a2ab1e1b6 update codex 2026-09-30 11:35:32 +08:00
Lizi
add4cd2b2e update codex
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-30 10:52:38 +08:00
Chris Zhang
543bb528e0 fix(models): support GPT-6.1 Sol with complete metadata and Codex 0.159 (#5254)
* fix(codex): update runtime to 0.159 for GPT-6.1 Sol discovery

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

* feat(models): complete Sol 6.1 API metadata and reference prices

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

* test(models): recognize Sol 6.1 API reference price bands

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 03:14:00 +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
2770145bab fix(models): 同步 xAI 真实资料并接通 Grok 4.7 Fast (#5060)
* fix(models): sync xAI metadata and route Grok 4.7 Fast across harnesses

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

* fix(models): clear xAI Fast tier when target is unavailable

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

* fix(models): preserve cache prices during sparse xAI sync

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

* fix(models): keep sparse xAI tariffs stable across JSON sync

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

* fix(models): retain bundled Fast visibility with older catalogs

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

* fix(models): price xAI fallback usage by actual execution

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

* fix(models): reject xAI Fast flags without an execution mapping

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

* fix(models): negotiate uncompressed xAI usage responses

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

---------

Signed-off-by: zqchris <chrisz83@gmail.com>
2026-09-25 01:17:59 +08:00
unclecloudtxy
714ec5b1f7 fix(claude-code): update runtime minimum (#4958)
Signed-off-by: unclecloudtxy <301994121+unclecloudtxy@users.noreply.github.com>
Co-authored-by: unclecloudtxy <301994121+unclecloudtxy@users.noreply.github.com>
2026-09-23 20:52:43 +08:00
Lizi
73ae8eaf37 update codex version 2026-09-23 09:19:39 +08:00
Dash
c5ce78fa8b fix(model-providers): 修正 Gemini 3.8 Flash 思考档位 (#4852)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-22 18:31:12 +07:00
Dash
b95e506a2a feat(models): 补齐 Grok 4.7 与 Pi 配置支持 (#4839)
* feat(models): 补齐 Grok 4.7 与 Pi 配置支持

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

* fix(models): 保留上游 Grok 4.7 的默认思考档位

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-22 11:16:22 +07:00
JiangJiahao
d135e78310 fix: protect borrowed worktrees from legacy recyclers
Publish safely owned keep sentinels for old owner profiles, retain them until every shared borrower has drained source I/O, and retry terminal cleanup through existing release intents. Retry transient ripgrep release asset failures before falling back to CDN.

Signed-off-by: JiangJiahao <jiangjiahao@xd.com>
2026-09-17 10:20:07 +08:00
Alan Z
24659a7290 fix(desktop): 修复 Windows 快捷键设备检测与原生输入 (#4208)
* fix(desktop): restore Windows input device detection

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): address native input review feedback

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): preserve live controllers during discovery

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): preserve legacy Micro protocol compatibility

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* test(desktop): lock cross-layer Windows input lifecycle contract

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): coalesce Micro requests during native preparation

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): bound Micro output per NDJSON line

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): read Windows Xbox controllers through XInput

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(desktop): exclude XInput HID products from WGI discovery

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(pi): preserve first entry when extracting Windows zip

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

* fix(windows): widen packaged barrier probe timeout

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>

---------

Signed-off-by: Alan Z <3347202+A1aZ@users.noreply.github.com>
2026-09-16 11:54:18 +07:00
Chris Zhang
81643467c0 feat(providers): unify model imports and native harness defaults (#4402)
* feat(providers): unify imports and native harness defaults

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

* fix(providers): preserve OAuth pricing and account-specific routing

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

* fix(providers): pair native APIs with endpoints and preserve import defaults

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

* fix(providers): retain native auth and SDK connection probes

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

* fix(providers): preserve template routes when editing connections

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

* fix(providers): lock fixed template connection endpoints

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

* fix(providers): drop duplicate model-compat lockfile importer

Merging main duplicated the packages/model-compat importer and broke
pnpm frozen installs in CI.

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

* fix(providers): keep OAuth save and reasoning state per connection

Closing the wizard while finish is in flight no longer deletes the
account being saved. Claude Code reasoning blobs are namespaced by
connection id, not only the shared upstream URL.

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

* fix(providers): keep OAuth quotes and drop stale request paths

Generic OAuth discovery prices now publish under the connection for
usage estimates. Changing a model protocol no longer reuses the
previous exact request path.

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

* fix(providers): skip Google embed models and retired siblings

Google discovery now requires generateContent, so embedding-only
models stay out of chat runtimes. Catalog native API lookup no longer
lets a retired variant suppress the active identity.

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

* fix(providers): allow empty OAuth scopes and static Pi adapters

Preset OAuth connections can keep an empty scope string so provider
defaults still apply. Desktop Main now loads Pi native adapters with
top-level imports instead of runtime import().

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

* fix(providers): register proxy OAuth adapters for Pi

Copilot OAuth connections already declare a native adapter identity, but
the Pi spawn list required an API key env. Register those aliases even
when credentials stay on the local proxy.

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

* test(providers): type Copilot OAuth fixture API for desktop typecheck

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

* fix(providers): keep OAuth recommendations and copy account slots

OAuth login now treats omitted defaultEnabled as selected, matching the
API key picker. Editing one templated endpoint fills the other engines
instead of leaving leftover placeholders.

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

* fix(providers): persist checked models and Google import/copy

Wizard saves explicit defaultEnabled for checked models so compat
slots stay on. Deep-link import and runtime copy accept Google and
the other Claude Code wires.

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

* fix(providers): keep explicit defaultEnabled on imported models

Deep-link import now stores defaultEnabled true as well as false, so a
compatibility runtime enabled by the sender stays enabled after import.

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

* fix(providers): do not let adhoc Vertex probes inherit host ADC

Renderer-chosen google-vertex and Bedrock probes cannot use Desktop
environment credentials against an unrelated host. Saved connections and
user-supplied keys still work.

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

* fix(providers): dispatch implicit Claude Google routes

The implicit resolver already returned google-generative-ai connections,
but dispatch still dropped that wire during the session-binding race.

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

* fix(providers): skip Vercel image rows and bound native error bodies

Chat import cannot execute Vercel type=image models, so they no longer
appear then vanish. Native adapter error clones now read a prefix only.

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

* fix(providers): drop OAuth tokens when runtime endpoints change

A renderer that can edit a saved OAuth connection must not keep the
logged-in token after baseUrl or modelsUrl moves to another host.

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

* fix(providers): keep checked models, remote Claude wires, and OAuth headers

Persist explicit defaultEnabled, refuse non-Messages remote Claude routes,
forward saved OAuth headers on refresh, and stop saved Vertex probes from
inheriting Desktop ADC against unapproved hosts.

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

* fix(providers): keep Bedrock probes on approved hosts

Dummy API keys must not let Bedrock inherit Desktop IAM against an
untrusted URL. Mobile session controls now import identity without the
Desktop provider catalog.

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

* fix(providers): keep Cloudflare header-only credentials

Do not overwrite a saved cf-aig-authorization header with an empty
Bearer token during probes, Claude/Codex bridges, or Pi adapters.

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

* fix(providers): bind Bedrock execution to approved endpoints

Connection probes already refused host IAM against untrusted URLs.
Claude/Codex turns now use the same Main-approved endpoint check
before the native SDK can sign with Desktop credentials.

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

* fix(providers): keep Cloudflare headers and skip remote OAuth Pi

Native Claude/Codex bridges no longer invent a fake API key that
overwrites header-only Cloudflare credentials. Remote Pi also no
longer rewrites OAuth connections onto the Desktop loopback proxy.

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

* fix(providers): keep checked models and Pi host-credential guards

Connection edits now persist explicit defaultEnabled. Pi skips Bedrock
destinations that are not Main-approved, and placeholder keys no longer
overwrite Cloudflare header-only credentials.

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-14 04:36:31 +07:00
Lizi
a7798117e2 update codex version 2026-09-07 13:38:09 +08:00
Chris
d92674f759 fix(models): unify model defaults, availability and localized descriptions
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-09-05 23:32:30 +08:00
Dash
2fd803a3fd feat(models): 支持 GPT-6 Astra 并修正推理与缓存计量 (#3938)
* feat(models): 支持 GPT-6 Astra 并修正推理与缓存计量

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

* fix(usage): 接通 Fast 参考估值与 Codex 缓存写入计量

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

* fix(usage): 保留标准价格覆盖后的独立 Fast 参考价

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

* fix(pi): 同步 OpenAI 公共目录并保留上游 Astra 元数据

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

* test(pi): 修复 Windows 同步夹具的 ESM 加载路径

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

* fix(context): 校正历史任务窗口并明确模型目录维护归属

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

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-05 11:39:48 +08:00
Chris Zhang
50a6e913b4 fix(pi): 使用独立原生模型目录 (#3895)
* fix(pi): 使用独立原生模型目录

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

* fix(pi): 保留原生 effort 映射

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

* fix(pi): 保留自定义模型路由

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-04 16:26:40 +08:00
Lizi
ec4bd8633b claude code 升级 最新版本 2026-09-03 14:36:11 +08:00
Lizi
a92d606b79 update codex-package 2026-09-03 12:24:45 +08:00
Lizi
635977dd9c feat(desktop): use Codex package in development
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-09-03 00:11:05 +08:00
Lizi
05a8860fea chore(claude): 回退 Claude Code 至 2.1.219
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-08-30 22:16:58 +08:00
DavidShenXD
fd99c1ba73 fix(proxy): compact oversized vision history before forwarding (#3606)
* fix(proxy): compact oversized vision history before forwarding

Signed-off-by: david <david@xd.com>

* fix(proxy): compact oversized local requests safely

Signed-off-by: david <david@xd.com>

* docs(proxy): clarify vision compaction order

Signed-off-by: david <david@xd.com>

* fix(proxy): compact OpenAI Chat image history

Signed-off-by: david <david@xd.com>

---------

Signed-off-by: david <david@xd.com>
2026-08-29 20:21:28 +08:00
Lizi
05bd3811b1 回滚codex 版本 2026-08-28 00:35:40 +08:00
Lizi
793016ba0c update pi 2026-08-27 23:17:08 +08:00
Lizi
4eb670dc7b 升级 cc codex 二进制 2026-08-27 22:59:01 +08:00
Chris Zhang
ec41931fc0 fix(model-routing): 修复 Grok 4.6 协议与凭证路由 (#3182)
* fix(pi): align Grok 4.6 routing with Responses catalog

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

* fix(model-catalog): reject mismatched Pi access backfills

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

* fix(pi): preserve bare xAI wire model ids

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

* fix: close Grok 4.6 routing review findings

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

* fix(model-routing): clarify Pi catalog protocol assumption

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

* fix(pi): surface proxy readiness failures

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

* test(pi): align bundled glm protocol assertion

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-08-22 04:31:49 +08:00
Dash
cbaf296ee3 fix(pi): SuperGrok Grok 4.6 可热切,并收紧 live catalog 刷新 (#2818)
* fix(pi): 让 SuperGrok Grok 4.6 能热切,并收紧 live catalog 刷新

Pi 0.83 自带 xAI 目录没有 grok-4.6。订阅 inheritModels 块此前既没有
占位 apiKey,也不会把缺失模型写成 catalog addition,set_model 会报
Model not found。补上 apiKey、xai/ 别名,并把未探测到的 grok-4.6
写成 openai-responses catalog addition。

热刷新只允许 SuperGrok 在占位 env / endpoint / header 未变时补模型;
switch_session 失败会回滚 maps 与 models.json。ChatGPT 别名改回指向
chatgpt/gpt-* spec id,避免回落到 cindy 网关。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): switch_session 未确认时终止会话

success:false 仍回滚 models.json。reject/超时无法判断 Pi 是否已加载新目录,
回滚和放行都会分叉,按未确认 set_model 一样关掉进程,要求用户重开任务。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): inheritModels 捆绑模型不算缺失,远端未预置代理不热加 xAI

inheritModels 里没有 api/catalogAddition 的行是 Pi 自带目录,热切不应
走 live refresh。远端会话启动时若没有 session token / 代理登记,登录后
新出现的 hostProxyForward 会建隧道但鉴权失败,改为拒绝并要求重开任务。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): give SuperGrok Grok 4.6 the official xhigh effort ladder

Pi and SuperGrok still advertised only low/medium/high because the bundled
Pi snapshot and inheritModels overlay never published xhigh. Keep Claude/Codex
static catalog out of this change so it does not collide with #2601.

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 探针失败时不要把全部 xAI 模型写成 catalog addition

readPiBundledModels 超时返回 null 时,不能把 grok-4.3 / grok-build-0.1
默认改成 openai-responses。只在探针成功且明确缺 grok-4.6 时合成
addition,保留 xhigh 那条 official thinking overlay。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 不要给 Grok 4.6 合成用不了的 minimal 档

官方梯子是 low/medium/high/xhigh。toDescriptor 给 Pi 自动前置 minimal,
但 thinkingLevelMap.minimal 是 null,setEffort 会失败。xAI grok-4.6
保留目录里的显式档位,不合成 minimal。inheritModels overlay 不动。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): rebase main 后收口目录热切错误码与 corrections 类型

与 origin/main 的 listed-models 缺席证明对齐,不再用 bundled 表推断
xAI addition。未确认 switch_session 抛 [PI_CATALOG_RELOAD_UNCONFIRMED],
用户文案改用「任务」。给 xai-catalog-corrections.mjs 补声明,消除
model-providers 新增的 TS7016。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 官方 xhigh 梯子只合并到 Grok 4.6

SuperGrok discovery 给 4.5 等其它模型报出的缩水档位不再被静态目录并回
low/medium/high/xhigh。4.6 仍用已知官方梯子补 xhigh。inheritModels overlay
不动。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 非 Grok 4.6 保留 SuperGrok 报告的默认档位

官方 high / xhigh 只作用于 Grok 4.6。其它模型若 discovery 给出且落在
其档位列表里的 defaultEffort,不再被 registry / 静态目录盖掉。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 只给缺席的 Grok 4.6 加 catalog addition,回滚写盘失败则终止

listedIds 证明缺席时不再给任意 xAI 行打 catalogAddition。目录回滚先写盘再
改内存;写失败与未确认 switch_session 一样终止任务,避免磁盘/内存分叉。

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 历史分支上拒绝目录热切,不复水会话树

switch_session 只带 sessionPath,会丢 navigateTree 的非最新叶。本 PR
不引入分支/plan mode 复水;当前叶不是 JSONL 重载默认叶时回滚目录并
拒绝热切,要求重开任务。

Signed-off-by: Dash <dashhuang@gmail.com>

* Revert "fix(pi): 历史分支上拒绝目录热切,不复水会话树"

This reverts commit fa5cd15d65410933b4d02a63eb4f002c65085397.

Signed-off-by: Dash <dashhuang@gmail.com>

* fix(pi): 钉回网关时不要按 xai/ 前缀热刷目录

switchModel 用 ?? 取 sourceHint,providerId=null(钉回 Cindy 网关)会落到模型名前缀回退,误进 SuperGrok live catalog 刷新;刷新失败还可能终止任务。只在未传 providerId 时才按 xai/ 推断。

Signed-off-by: Dash <dashhuang@gmail.com>

---------

Signed-off-by: Dash <dashhuang@gmail.com>
2026-08-19 00:39:29 +08:00
Chris Zhang
9c212821bd fix(pi): 补齐国产模型官方元数据 (#2572)
* fix(pi): add verified Chinese model metadata

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

* fix(pi): guard legacy preset metadata backfill

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

* fix(pi): sync official model catalog metadata

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

* fix(model-providers): inherit custom model efforts

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

* fix(pi): preserve catalog routes and xai lifecycle

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

* fix(pi): preserve preset runtime protocols

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

* fix(pi): preserve catalog model overrides

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

* fix(pi): 模型列表编辑时清除目录标记

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

* fix(pi): discover xAI account models

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

* fix(pi): preserve catalog marker for default protocol

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

* fix(pi): preserve catalog model headers

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

* fix(xai): invalidate stale discovery flight on account switch

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

* fix(pi): evaluate catalog marker at save time

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

* fix(pi): stabilize remote xAI proxy token

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

* fix(pi): defer remote xAI forward until selected

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

* fix(pi): scope xAI cache deletion

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

* fix(pi): 稳定远程代理会话令牌

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

* fix(pi): 保留远程 xAI 会话网关凭证

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

* fix(providers): 隔离旧 xAI 自定义连接

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

* fix(xai): refresh rejected bridge credentials

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

* fix(pi): 恢复旧自定义 xAI 会话路由

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

* fix(pi): isolate remote reattach leases

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

* fix(pi): persist xAI provider provenance

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

* fix(pi): avoid ambiguous xAI provenance migration

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

* fix(desktop): remove migration history comments

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-08-15 06:05:28 +08:00
天魔
aaa4ed5ad6 fix(tools): extract Pi tarballs with GNU tar (#1712)
Signed-off-by: tiammomo <pearfl@qq.com>
2026-08-06 01:50:11 +08:00
Lizi
6ef0db1d0b fix(desktop): Pi 不再进正式安装包,公证失败直接暴露 Apple 原因
Pi 此前既走 CDN 运行时下载,又在安装包内保留 resources/pi 作为兜底。
这份包内兜底与 Claude Code / Codex 的分发方式不一致,并且让未签名的
Pi 目录进入 Cindy.app 参加 Apple 公证,是本次 macOS 公证失败的根因。

Pi 分发对齐 CC/CX:
- 移除 forge 的 stagePi() 与 resources/pi 的 extraResource 装包配置,
  以及针对 resources/pi 的 Windows 签名遍历。
- pi-host 只认本次启动已成功准备好的二进制,不再回落到包内路径,也不
  复用上一次的旧缓存;CDN 不可用时 Pi 本次不可用,但不影响 Cindy 启动。
- 补齐发布包不含 Pi 的校验与相关单测,同步法律声明中"随包分发"的表述。

macOS 公证:
- notarytool submit 改 --output-format json 并显式判定 status,不再把
  Invalid 当成功继续 staple。
- 非 Accepted 时保留 zip 供诊断,并拉取 Apple notarization log 打印真实
  失败原因;notarytool 自身非 0 退出时同样从 stdout 救回 submission id
  去拉日志(Invalid 的 exit code 随 Xcode 版本变化)。
- 所有回显与日志对 App 专用密码打码。

验证:pnpm test:unit 全绿(341 tests / 340 pass / 1 skip / 0 fail,
apps/desktop 与 apps/mobile 均 PASS);pnpm --filter desktop typecheck 通过;
git diff --check 通过。Apple 真实公证需下一次 macOS CI 连 Apple 服务验证。

Signed-off-by: Lizi <jiali@magiclizi.com>
2026-08-02 19:38:58 +08:00
Chris
48e3421286 fix(dir-dist): reject files outside the manifest (exact-set match), not just verify listed ones
P1 follow-up to the per-file-hash change on PR #1265. verifyDirDistManifest only iterated
manifest.files, so extra files/symlinks in the dist dir (stale build residue, local pollution)
were never compared against the actual directory contents — verify still returned true,
ensure-agent-binaries skipped the refresh, and stagePi copied the whole directory (including
unverified extra bytes) into the installer. verify now recursively enumerates the directory and
requires the actual set to match the manifest exactly: an extra regular file, a count mismatch,
or any symlink/non-regular entry (a pollution vector writeDirDistManifest never records) fails
verification.

Adds coverage: stray top-level file, stray nested file, and recovery after removal. Full
pnpm test:unit green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 21:24:42 +08:00
Chris
637d657b3d fix(pi): hash-verify dir-dist assets; keep Pi out of the task-summary one-shot fallback
Two more review follow-ups on PR #1265:

- tools/shared/dir-dist-manifest.mjs: the dir-dist manifest recorded and compared only
  file sizes, so a corrupted or replaced Pi executable/sibling asset of the same byte
  length passed the cache/package gate used by both tools/pi/update.mjs and
  scripts/ensure-agent-binaries.mjs. writeDirDistManifest now records a sha256 per file
  and verifyDirDistManifest re-hashes and compares them (fail-closed: a size-only legacy
  manifest is treated as untrusted and forces a re-download). Complements the archive
  digest pin from the earlier fix.
- sessionTaskSummary.ts: the task-summary one-shot fallback called
  getMaker().oneShot(session.agentKind, ...) directly, so a pinned Pi session threw
  (PiAgent has no oneShot) and the summary was silently left unset. It now skips the
  fallback for agents that can't one-shot. Extracted a shared agentSupportsOneShot()
  predicate in oneShotCandidates.ts and reused it in help.ts (replacing its local set)
  so both one-shot fallbacks share one source of truth.

Adds coverage: same-length tamper and size-only manifests are rejected. Full
`pnpm test:unit` green; desktop typecheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 19:50:39 +08:00
Chris
08be0a20ce fix(pi): digest-pin Pi runtime cache, skip Pi in help oneShot / usage analyzer, fix Pi model fallback
Four review follow-ups on PR #1265:

- tools/pi/update.mjs: bind the verified archive digest to each platform cache
  (.asset-digest.bin) and re-verify it against the current upstream asset digest
  on both the same-version fast path and downloadAsset's skip branch. Previously a
  same-tag asset swap (digest changes, version unchanged) would promote the stale
  cache while saveCache wrote the new pin, shipping a runtime inconsistent with the
  committed digest pin. Missing marker (pre-existing cache) => re-download once.
- help.ts: exclude agents without oneShot from the help fallback. PiAgent inherits
  BaseAgent's not-implemented oneShot, so selecting Pi (most-recent / only-available)
  made HELP_ASK and the pinned-task summary return no-answer even when Claude/Codex
  fallback was usable. Gated in pickHelpAgent (covers both call paths).
- usageAnalyzer.ts: route explicitly by agentKind instead of sending every
  non-Claude record to handleCodexRecord. Pi's native transcript (type:'message' +
  message.role) differs from Codex's event_msg/payload, so mis-routing produced
  wrongly-attributed exposures. Pi is now explicitly skipped (native Pi usage
  discovery/parsing is a separate follow-up) rather than silently mis-parsed.
- CCAgentSessionView.tsx: use the tri-valued agent mapping when repairing a stale
  vendor model, so a Pi session falls back to the Pi catalog default instead of
  being rewritten to the CC top model (potentially the pricier Opus).

Adds unit coverage for each: digest-pin re-verification, Pi help skip, Pi usage
skip, and the Pi fallback path. Full `pnpm test:unit` green; desktop typecheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 17:31:38 +08:00
Chris
30139c2ed6 fix(pi): verify dir-dist manifest on the up-to-date promote shortcut too
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 15:05:18 +08:00
Chris
879ec48ea8 fix(pi): validate cached dir-dist assets against an extraction-time manifest before promoting
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 14:47:50 +08:00
Chris
dfa470610b fix(pi): verify dir-dist assets on install and keep Pi labels in shared mobile views
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-08-01 13:26:08 +08:00