Skip to content

Releases

v0.5.6 — security and build fixes

Choose a tag to compare

@wowayou wowayou released this 10 Oct 10:35
f5d2f4c

v0.5.6

  • 修复 Ubuntu/WSL 登录 shell 启动横幅中的系统版本被误识别为 Pi/Codex 版本的问题。
  • 应用 PR #164:将构建依赖 source-map-js 从 1.2.1 更新到 1.2.2,修复高危拒绝服务漏洞;它不是安装包服务端的运行依赖。
  • 拆分 Vite 图标库和目标页面分块,入口压缩后约 309 KB,构建不再出现大 JavaScript 分块警告。
  • 精简并统一双语 README,明确本项目、CC Switch 与 Octopus 的边界。

验证:完整 npm test 为 320 项,318 通过、0 失败、2 项 Windows 专用跳过;Codex、Pi、Claude Code 真实套件分别为 5/5、3/3、10/10。构建和 release artifact 检查通过。

v0.5.5: safe default switching and pending-write protection

Choose a tag to compare

@wowayou wowayou released this 10 Oct 05:41
400536f

Changes

  • Switch a saved Pi default without rewriting its provider. The sidebar asks which model to use; the clean step-3 action and the post-save success action use the same revision-checked POST /api/providers/set-default. Only settings.json.defaultProvider and defaultModel change. models.json, handwritten model fields and auth.json remain byte-for-byte intact.
  • All three Pi wizard steps agree about Save Changes. A radio-only edit on a non-default provider cannot trigger a no-op provider save that re-normalizes its models. The footer points to Set as default, while unsaved-change protection remains active. Changing only the current default's model works from any step through the settings-only path.
  • Saved-provider switching in each sidebar uses the dedicated selection path. Codex's clean step-3 switch now uses /api/codex/activate; Claude's row action uses /api/claude/activate. Claude's step-3 save semantics are unchanged. Pi's success and Settings screens explain project/session overrides of a global default.
  • Pending saves/switches cannot discard a later draft. A shared synchronous guard rejects competing writes even before buttons re-render. Editing, navigation and toast actions are briefly disabled until the request settles; success, validation refusal, 400/409 and network failure release the guard without replaying blocked actions. Pending writes also arm the leave prompt. Locked dialogs keep keyboard focus inside and restore the surviving menu trigger on close.
  • Codex activation errors stay visible on its success page. Failed switching keeps the last real result and shows the persistent error banner; a 409 retains Reload after the toast expires, and subsequent non-conflict errors do not inherit it.
  • Codex demo switching keeps Settings consistent. The active provider, default model, reasoning effort, owned table and presence markers move together; unrelated settings/runtime state remain intact, with no real configuration POST.
  • Saving a bridged Codex provider preserves omitted upstream-ID mappings. The form has no bridge.models control, so omission keeps the saved mapping; an explicit {} still clears it.

Verification and compatibility

Validated against Pi 1.1.0; declared compatibility baselines unchanged.

  • Fresh locked install and full local npm test: 317 tests, 315 passed, 0 failed, 2 Windows-only Claude launcher skips.
  • Production browser: 45/45. Real Codex 0.160.0: 5/5, including LiteLLM; real Pi 1.1.0: 3/3; real Claude Code 2.1.285: 10/10, including interactive terminal cases. No real-binary skips locally.
  • PR #165 passed the required ci-passed aggregate: Node 18/20/22, production-browser UI and Windows launcher jobs. Both locally skipped Windows launcher cases passed there; real Windows Claude passed its seven supported cases (the three POSIX-pty cases are Linux-only).
  • An extracted Linux/WSL package passed 12/12 production-page, default-switch, credential-safety, config-preservation, Codex/Claude adapter and offline Pi checks without node_modules.
  • Negative regressions, held real requests/responses, synchronous re-entry, 400/409/network failures, toast expiry and keyboard focus were exercised. Production preview checked at 1440px and 390px in both themes. No normal user configuration or live inference gateway was used.

Linux/WSL and Windows archives contain the built UI, dependency-free server and Claude launcher. Node.js 18+ is required; the Windows launcher uses PowerShell 7. Each archive has a SHA-256 sidecar. No agent upgrade or configuration migration is performed by this release.

The independent development-only source-map-js security update in PR #164 is not part of this release; it is not a dependency shipped in the runtime archives.

Published package verification

Both platform packages and both SHA-256 sidecars were downloaded after the release workflow completed successfully. Digests, versioned paths, package version and exclusion of local configuration were verified; the published Linux/WSL package again passed the same 12 isolated checks above, including opening its actual production UI in Chrome.

Documentation clarification after checking CC Switch v4.0.6: it reads Pi's global default fields for warnings, but does not write those defaults or read/write auth.json. The paired README wording and published-verification record are corrected in #166; the v0.5.5 tag and package bytes are unchanged.

Full changelog

v0.5.4: runnable Pi version detection, Pi 1.1.0 validated

Choose a tag to compare

@wowayou wowayou released this 08 Oct 11:17
110b1ac
  • Validated release candidate: full npm test passed 302 of 304, with 0 failures and 2 Windows-only Claude launcher skips covered by the required CI Windows job. That includes 36 production-browser tests, 5 real-Codex tests on 0.160.0 (LiteLLM bridge included), 3 real-Pi tests on 1.1.0, and 10 real-Claude tests on 2.1.285 (interactive pty cases included). An extracted Linux/WSL archive passed 13 production-page, configuration-preservation, credential-safety and offline Pi checks without node_modules.
  • Validated against Pi 1.1.0 (previously 1.0.2). Real Pi 1.0.4 and 1.1.0 each passed all three loopback tests, including mixed-protocol model addresses, stored credentials, per-thinking-level sampling and beta-header replacement. Production-browser and offline model-listing checks passed; unmanaged settings and OAuth entries survive both provider and Settings saves. The four managed gateway protocols and file schemas are unchanged. Pi 1.0.3 did rename the built-in Azure provider to azure; the compatibility guide records the conditional migration without changing custom gateways automatically.
  • Pi version detection follows the runnable command, not old nvm installs. After moving to the official installer, leftover npm manifests could shadow the actual Pi version in Settings; choosing the highest installed version could also report an inactive install. The detector now uses the existing fresh-login-shell / bare-command path, retains background refresh, and reports unknown if neither command works. Regression tests cover stale installs, a selected older version, command failures and Windows command selection.
  • Installation troubleshooting distinguishes warnings from failures. The usage guide explains Bash's per-terminal command hash, npm 11.16's advisory esbuild script-review warning, the non-fatal Vite chunk-size warning, and gateway budget-exhaustion HTTP 402. No script permissions, build warning limits or model configuration were changed to hide these messages.

Linux/WSL and Windows archives include the built UI, the dependency-free server and the Claude launcher; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. No configuration migration or Pi upgrade is performed by this release.

v0.5.3: per-model protocol and address overrides, Pi 1.0.2 validated

Choose a tag to compare

@wowayou wowayou released this 05 Oct 03:07
8d120d2
  • Validated release candidate: full npm test passed 300 of 302, with 0 failures and 2 Windows-only skips that the CI Windows job runs. That includes 36 production-browser tests, 5 real-Codex tests on 0.160.0, 3 real-Pi tests on 1.0.2 (mixed-protocol wire paths included), and 10 real-Claude tests on 2.1.285 (interactive pty cases included). The Pi baseline moved to 1.0.2; Codex and Claude baselines are unchanged.
  • Validated against Pi 1.0.2 (previously 1.0.0). Pi 1.0.1/1.0.2 change none of the managed auth/default-setting contracts. The new samplingParamsByThinkingLevel field survives a provider save, including per-level modelOverrides; real Pi applies the preserved parameters on the wire. No new settings controls or Pi runtime dependency are needed.
  • Pi models can override their address together with their protocol. 模型接口与地址 sits beside the catalogue, separate from compatibility flags. A gateway can share one credential while OpenAI models use /v1 and Anthropic models use the root or a custom prefix. The editor previews the appended request URL without automatically changing /v1, saves native model baseUrl, and supports restoring inheritance with undo. Explicit protocols remain pinned even when equal to the provider default. Omitted addresses preserve existing values; private or invalid stored addresses stay hidden and untouched until explicitly replaced or cleared.
  • The LiteLLM loopback test no longer reads the stand-in's key file half-written (test-only). The fake litellm wrote key.txt with a shell redirect, which creates the file empty before printf fills it. The test waits for the file to exist, so a slow runner could read it in that gap: this failed once on Node 18 in #159's CI with actual: ''. The stand-in now writes a temporary file and renames it to key.txt, so the file appears with its full content. With a 0.5-second gap forced between creating and filling the file, the old stand-in failed every time and the new one passed. The real file passed 30 of 30 runs, and the assertions are unchanged.

Linux/WSL and Windows archives include the built UI, the dependency-free server and the Claude launcher; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. Existing Pi, Codex and Claude Code files are preserved.

v0.5.2: Pi 1.0.0 validated, symlinked prompt files kept

Choose a tag to compare

@wowayou wowayou released this 02 Oct 10:59
ce3677b
  • Validated against Pi 1.0.0 (baseline raised from 0.99.2) and Codex 0.154.0 (unchanged). Pi 1.0.0 changed none of the three managed files' structures, API identifiers, thinking levels or managed settings keys, so no code changed for it. What it does change:

    • Image models in codemode and extensions;
    • Radius and copy-code Anthropic sign-in, and MCP OAuth hardening;
    • fullscreen as the default tuiMode, and a new quietStartup: "header" value;
    • --provider without --model is now an error. The command the manager hands out is pi --model provider/model[:level], which does not use --provider.

    Both new settings values survive a provider save and a Settings save untouched, as does an OAuth auth.json entry. Pi 1.0.0 lists the saved models offline, runs the handed-out pi --model …:level command against a loopback gateway, and passes the real-Pi header tests.

  • Validated release candidate: full npm test passed 294 of 297, with 0 failures and 3 Windows-only skips that the CI Windows job runs. That includes 36 production-browser tests, 5 real-Codex tests on 0.149.0, 2 real-Pi tests on 1.0.0, and 10 real-Claude tests on 2.1.287 (interactive pty cases included). The Linux/WSL archive also passed an isolated startup/save check without node_modules, and Pi 1.0.0 listed the provider it saved.

  • A symlinked prompt file is no longer replaced. Linking $CODEX_HOME/AGENTS.md or CLAUDE.md to a shared guidance file is a common way to keep one source. The prompt screen used to save over such a link with an atomic rename, which silently turned it into a private copy that stopped following the source. Now the screen shows where the link points, and the server refuses any save, activation or deletion that would write that file; a dangling link is reported too. Separately, a failed group write now rolls back only the files it changed, so a rollback can no longer replace an untouched symlink either.

  • Checked against Claude Code 2.1.287. When a gateway answers with a non-standard 400, Claude Code now repeats the request once without its new thinking.display field before failing. The real-binary resume case accepts that single repeat, and docs/claude-code.md describes it. Resuming across gateways behaves as before for users.

  • Project status: a frozen personal tool. The README and AGENTS.md now say what the project has been in practice: it is maintained for its owner's own setup, has no roadmap, and points most people to CC Switch. Work is limited to defects met in real use, security fixes, and Pi, Codex or Claude Code compatibility. Nothing in the product changes.

Linux/WSL and Windows archives include the built UI, the dependency-free server and the Claude launcher; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. Existing Pi, Codex and Claude Code files are preserved.

v0.5.1: UI consistency, save from any step, Pi 0.99.2 validated

Choose a tag to compare

@wowayou wowayou released this 01 Oct 11:00
2a4e7ce
  • Validated against Pi 0.99.2 (baseline raised from 0.99.1) and Codex 0.154.0 (unchanged). Pi 0.99.2 changed none of the three managed files' structures, API identifiers, thinking levels or managed settings keys, so no code changed for it. Its changes are:

    • MCP and codemode behaviour;
    • Anthropic workload identity federation from environment variables;
    • /reload enabling newly added defaultTools.

    defaultTools and codemode settings and an OAuth auth.json entry survive a save untouched. Pi 0.99.2 lists the saved models offline, and the real-Pi header tests pass against it.

  • Validated release candidate: full npm test passed 290 of 293, with 0 failures and 3 Windows-only skips that the CI Windows job runs. That includes 35 production-browser tests, 5 real-Codex tests on 0.149.0, 2 real-Pi tests on 0.99.2, and 10 real-Claude tests on 2.1.286 (interactive pty cases included). The Linux/WSL archive also passed an isolated startup/save check without node_modules, and Pi 0.99.2 listed the provider it saved.

  • A saved provider can be saved from any wizard step. Editing a saved provider in Pi, Codex or Claude Code now offers 保存更改 on steps 1 and 2 as well, next to 下一步 and disabled until something changes, so changing a Base URL no longer needs a trip to step 3.

    • It is the same save as step 3's: every step's checks still run. A refusal that belongs to step 3, such as an over-long User-Agent, moves there and focuses the field.
    • A 409 is reported on the step you saved from, with its 重新读取 action.
    • New and duplicated drafts keep the three-step flow.
    • The wizard's scroll-to-top on a step change now runs before, not after, the scroll that brings a refused field or the error banner into view; before, that scroll could be undone.
  • Claude Code's step 3 and settings match Pi and Codex. The provider summary, wizard footer and settings key–value rows are now shared components that all three targets use.

    • Claude's summary gains the provider icon, the auth type as a badge that returns to step 1, the API address as a link to step 2, and the credential status. Its solid red 删除供应商 becomes the outlined button Pi and Codex use.
    • The footer note is the small grey text beside the actions, not an unstyled 16px line in the middle. It reads 没有改动 or 有未保存的修改 on a saved provider, like Pi, and the disabled 上一步 on step 1 is gone.
    • Claude settings show 配置范围 as key–value rows (配置目录, 路径来源, 全局默认) with the save button in the settings footer.
    • 复制供应商 and 删除供应商 move onto the button scale in all three targets: 40px at 14px, and 32px at 13px at 600px and below. They were 36px at 16px/700, and only 删除供应商 shrank, to 34px, on narrow screens.
    • Pi and Codex screens were pixel-compared before and after the extraction.
  • Sidebar rows show a dot only when a provider needs a credential. A green dot used to sit on every configured row, explained only to screen readers, and it shared the right side with the badge, which cut subtitles to "Anthro…".

    • Now only a row missing its credential shows the amber dot. Its meaning is in the dot's and the row's tooltip as well as its aria-label.
    • 默认 / 生效中 / 全局默认 sit beside the name, and subtitles show in full.
    • Row height is unchanged: measured 62px at 1440px and 51px at 390px, with and without a badge.
  • Model-table toolbar and dialog buttons follow a new type and button scale. The stylesheet gains six type tokens (--text-xs to --text-2xl, 12–24px), three button heights (--button-sm/md/lg, 32/40/44px) and the .button-sm (32px, 13px) and .button-md (40px, 14px) size classes, both at weight 600. The model-table toolbar in Pi and Codex moved first: 40px buttons at 14px/600 with 16px icons, replacing 44px at 16px/700, which was heavier than the 18px 模型列表 heading above them. Every dialog's action row followed, from 44px at 16px/700 to .button-md. In the 获取模型 dialog, the path retry moved from 36px at 12px to .button-md, and 全选/清空 from 32px at 12px to .button-sm. The remaining action buttons followed. Wizard, success and settings footers keep 44px at 16px and drop from weight 700 to 600. The manager card, the prompt editor's actions, the JSON and config.toml editors' 取消/应用, and the bridge start/stop pair use .button-md. The step-3 User-Agent and Beta helpers, 编辑原始配置, the editors' 校验/自动格式化, the sidebar bulk-action bar and the command copy button use .button-sm. Before this, the same kind of button ranged from 34 to 44px and from 12 to 16px depending on where it sat.

  • Every font size comes from the six-step type scale. The stylesheet had 13 distinct sizes. Those already on the scale became --text-* tokens with no visual change, and the rest moved to the nearest step. Most visible: the success-page title went from 28px to 24px, dialog titles and the sidebar app name from 21px to 18px, and sidebar provider names from 15px to 14px. Sidebar navigation and prompt names went from 13.5px to 14px, the bridge notes from 13.5px to 13px, notes and editors from 12.5px to 13px, and monospace hints and kbd from 11px to 12px. tests/style-tokens.test.mjs now fails on any px font size outside the scale.

  • The sidebar's selection bar no longer crushes its labels. Its four items need about 296px on one row. The sidebar leaves 295px at 1440px, which folded 取消全选 onto two lines, and 215px at 1024px, where 已选 N 个 shrank to one character per line and the bar grew to 87px. It is now two rows at every width (selection and count, then 取消 and 删除 (N)), 77px tall, with labels that never wrap. The bulk-delete browser case runs at 1024px and checks that every label stays on one line; it failed against the old bar.

  • 添加供应商 keeps its height when the provider list is long. The sidebar is a flex column, and the button shrank to about 30px once the list overflowed, while it stayed 48px with a short list. It no longer shrinks; a production-browser check measures it with the list overflowing.

  • Claude Code copy matches per-terminal providers. The sidebar tip no longer says Claude Code uses a single user-level gateway: the global default serves plain claude, and a provider's dedicated command pins one terminal to it. The settings screen shows 路径来源 as 自动识别 · 用户主目录 instead of the internal value default-home, matching Pi and Codex.

  • The model filter field gets its intended background. .model-filter read an undefined --surface token, so the declaration was dropped and the field was transparent instead of using --field like every other input. A new stylesheet check (tests/style-tokens.test.mjs, part of test:server) fails on literal hex or named colours in rules, undefined tokens, and dark-only tokens.

  • The bridge start/stop buttons use the 16px icon of the other .button-md buttons. Measured in the real bridged-provider flow (?demo=1 does not render them): 40px at 14px/600, as intended, with an 18px icon.

  • Demo data: the Anthropic provider's base URL stops before /v1. Pi appends /v1/messages and discovery /v1/models to an Anthropic base URL, so the demo's https://api.any-claude.com/v1 showed …/v1/v1/models in the 获取模型 dialog, the page screenshots come from. Demo only; real derivation is unchanged.

  • A deletion browser case no longer races the step's scroll reset (test-only). At 420px the case scrolled the model table into view right after step 3 rendered, and the app's own scroll-to-top could land a frame later and undo it. That left the delete control off-screen in 2 of 8 runs on main. The case now lets that frame pass and checks the scroll held; 8 of 8 runs passed. The assertion is unchanged.

Linux/WSL and Windows archives include the built UI, the dependency-free server and the Claude launcher; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. Existing Pi, Codex and Claude Code files are preserved.

v0.5.0: Claude Code target, Pi 0.99.1 validated

Choose a tag to compare

@wowayou wowayou released this 30 Sep 15:12
1b7666f
  • Validated against Pi 0.99.1 (baseline raised from 0.87.1) and Codex 0.154.0 (unchanged). Pi 0.99 changed none of the three managed files' structures, API identifiers, thinking levels or managed settings keys, so no code changed for it. New settings keys (theme: "system", fullscreenWheelScrollLines, defaultTools +name/-name entries, extensions -builtin: entries, codemode, and deviceId from Sign in with ChatGPT) are preserved like any unknown key, and an OAuth auth.json entry stays untouched and never reaches the browser.

  • Validated release candidate: full npm test passed 285 of 288, with 0 failures and 3 Windows-only skips that the CI Windows job runs. That includes 34 production-browser tests, 5 real-Codex tests on 0.149.0, 2 real-Pi tests on 0.99.1, and 10 real-Claude tests on 2.1.285 (interactive pty cases included). The Linux/WSL archive also passed an isolated startup/save check without node_modules.

  • Interactive-terminal tests no longer fail when the machine is busy (test-only). The pty driver checked whether Claude had exited after a fixed five-second sleep, and reported a clean exit as a hung session when the machine was loaded. It now polls for up to 20 seconds. Under full CPU load, the old driver failed 2 of 3 cases and the new one passed all 3; the assertion that Claude exits is unchanged.

  • Claude Code is a third target. The shared wizard manages static Anthropic Messages gateways, both credential modes, default models and alias mappings, renaming, duplication, guarded deletion, reply settings and global CLAUDE.md. Native settings win on read without writing; the provider store has a separate revision, atomic writes and rollback, and existing credentials never return to the browser.

  • A dedicated Claude command for each terminal. Save a provider without changing the global default, then launch it using a private per-run --settings snapshot. Multiple terminals retain their own gateways, credentials and models when the global default changes. The launcher carries no model traffic, preserves Claude's normal policy/permission system, and cleans up its snapshot on exit, on handled signals and when the terminal window closes. A forced kill leaves the snapshot until the next launch or manager start proves both recorded processes gone. On Windows the npm package's native bin/claude.exe entry is run directly. Scope and tradeoffs explain cleanup and revocation.

  • Pinned or follow-the-default, chosen per copy. The command card offers 固定此供应商 (the launcher) or 跟随全局默认 (plain claude, which Claude Code itself hot-reloads from user settings). No setting is stored.

  • Cross-gateway resume is documented as best effort. Measured behavior, including the one failure mode (a relay's non-standard signature error), is in the Claude guide.

  • Verification and packaging cover Claude. Storage/API/launcher tests, production-browser flows, and real Claude against offline fake gateways cover the new target. The release includes the dependency-free launcher and guide; all test servers isolate the new configuration directory.

Linux/WSL and Windows archives include the built UI, the dependency-free server and the Claude launcher; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. Existing Pi, Codex and Claude Code files are preserved.

v0.4.9: model capacity suggestions and learned limits

Choose a tag to compare

@wowayou wowayou released this 28 Sep 14:18
607b1a3
  • Pi model capacity suggestions, with unchanged compatibility baselines. Pi 0.87.1 and Codex 0.154.0 remain the declared baselines. This release changes initial capacity suggestions and adds a manager-private cache; it does not migrate existing Pi or Codex configuration.

  • Validated release candidate: full npm test passed 243/243 with 0 failures and 0 skips, including 33 production-browser tests, 5 real-Codex tests on 0.157.1, and 2 real-Pi tests on 0.87.1. The Linux/WSL archive also passed an isolated startup/save check without node_modules.

  • Adding a model now fills its context/output capacities by generation instead of a flat 128000 / 16384. In particular, GPT-4.1 uses 1047576 / 32768, separately from GPT-5's 400000 / 128000; capacity sources and policy record the verification. Manual entry, bulk paste, and discovery share one rule: the last values saved for that gateway+model, then gateway-reported capacities, then the generation defaults. Imported rows remain automatic until either capacity is manually edited; changing their ID then re-seeds for the new model. Partial or conflicting discovery metadata keeps the reported context and reduces an oversized output to the smaller of 16384 and half that context, so the generated pair can be saved. The "安全值" controls remain the conservative dial-down (128000 / 16384).

  • 获取模型 reads capacities where a gateway reports them, within the same request. parseModelList now also extracts context_length / max_completion_tokens (and the flatter context_window / max_output_tokens) as bounded integers only — a string, float, or out-of-range value is dropped, never relayed. No new network request, host, or credential path: it parses fields already present in the listing this manager already fetches. Standard /v1/models carries none of these; OpenRouter-class gateways do.

  • Per-gateway learned capacities. A successful provider save records each model's context/output under (provider id, model id) in a manager-private pi-provider-manager-model-hints.json (0600), so re-adding a model on the same gateway — after a delete, or while rebuilding a list — pre-fills the numbers last chosen for it. Keyed by gateway and ID so the same ID behind two relays never shares a value. It is outside the config revision, like the bridge runtime record, and a failure to write it can never fail the save that already landed.

  • Acceptance boundaries covered. Prototype-named cache IDs are stored as ordinary data, corrupt timestamps cannot break a state read, and the cache is bounded to 1000 entries. An unchanged advanced JSON round trip preserves automatic capacities; editing either number stops them. The capacity source document ships in both release archives.

Linux/WSL and Windows archives include the built UI and dependency-free server; Node.js 18 or newer is required. Each archive has a SHA-256 sidecar. Existing Pi/Codex files are preserved; capacity hints are stored separately.

v0.4.8: provider rename and sidebar alignment

Choose a tag to compare

@wowayou wowayou released this 28 Sep 04:01
842c086
  • Validated against Pi 0.87.1 and Codex 0.154.0 (unchanged baselines). A feature release for provider renaming and a sidebar alignment fix. Full npm test on the release candidate passed 224/224 with 0 skips, including 29 production-browser cases, 5 real-Codex cases, and 2 real-Pi cases. No configuration format, provider/credential schema, API identifier, thinking-level, or compatibility baseline change.

  • Provider rename with credential preservation. Editing a saved provider's ID now moves its configuration and credential, including Pi's default-provider and provider-qualified settings references and Codex's active selection. An occupied target is refused in the wizard and on the server; Pi also protects retained credential IDs. Keeping the existing key works throughout ID edits, Pi model discovery, and Codex bridge saves. Pi and Codex retain separate revision checks. A running bridge's provider label is updated separately after the configuration commits, without restarting or signalling the process. New and duplicated drafts retain their existing overwrite warning and save behavior.

  • Sidebar utility alignment. The support link now shares the appearance control's 36px height and 18px icon size, with its icon centre and text aligned to the navigation above.

Full changelog: see CHANGELOG.md.

v0.4.7: prompt, focus, and startup fixes

Choose a tag to compare

@wowayou wowayou released this 24 Sep 13:18
5c54f85
  • Validated against Pi 0.87.1 (unchanged baseline). A patch release for prompt-file adoption, keyboard-reload focus, and initial configuration loading. Full npm test on the release candidate passed 214/214 with 0 skips, including 26 production-browser cases, 5 real-Codex cases, and 2 real-Pi cases. No configuration format or compatibility baseline changes.

  • Empty pre-existing prompt files no longer appear as adopted documents. An unmatched, zero-byte AGENTS.md, SYSTEM.md, or APPEND_SYSTEM.md starts with no active document instead of creating a misleading 现有内容 entry. Whitespace-only files still count as content, and a saved empty document can still match its active file. Reading the library never writes to disk.

  • Keyboard reload no longer draws a focus box around the view heading. Programmatic heading focus still announces the screen to assistive technology; interactive controls keep their keyboard focus indicators.

  • Initial navigation waits for configuration. Pi/Codex switching, adding a provider, Settings, and Prompts stay unavailable until the first configuration read succeeds. Clicking before that read used to initialise an empty Codex draft or let the response overwrite a new Pi draft. A failed read keeps the retry action available. Browser tests now wait for usable navigation and cover a deliberately held request, failure, and retry; DOM timeouts include the current page state without increasing the wait budget.

  • test:codex-real adapts to Codex 0.156's stricter doctor (test-only). Codex 0.156.1 now flags a deprecated setting in the user's own config (disable_response_storage) as an ignored setting, which turns codex doctor --json's config.load status from ok to warning even though the config parses and loads. The real-binary test read that warning as a fixture failure. The assertion now checks what this file exists to answer — that Codex could load the config, i.e. the status is not fail — and adds a stronger check that the manager's own output introduces no new startup warning by comparing the notice before and after the save. No product code changed; the manager still preserves the user's deprecated key byte for byte. Verified against Codex 0.156.1 with test:codex-real 5/5 and full npm test green, 0 skips.

Full changelog: see CHANGELOG.md.