fix(worker): 阻止沙盒 Codex 触发启动自更新#433
Open
xiongz-c wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景 / 动机
文件沙盒会把子进程对 HOME 的大部分写入放进会话级临时 overlay。Codex 在启动升级菜单中执行 npm 全局更新时,可能只更新该临时层;会话重启后仍从宿主旧版本启动,升级提示随之重复出现。
同时,Codex 的升级菜单和普通输入框都会使用
›光标。原 readyPattern 匹配任意›,会把› 1. Update now误判为输入框已就绪,并把排队中的首条消息写入升级菜单。改动
disableStartupUpdateCheck能力。check_for_update_on_startup=false,把 CLI 升级留给宿主环境处理。› N.编号菜单项。默认值 / 兼容性依据
测试覆盖
-c参数注入。› 1. Update now与› 2. Skip不再被识别为 ready。验证
pnpm vitest run test/cli-adapters.test.ts test/idle-detector.test.ts:297 passed。pnpm build:通过。git diff --check:通过。test/sandbox.test.ts有 2 个未改动路径上的 macOS 基线失败,分别是 symlink dataDir 清理和 opaque dir 落盘用例。影响范围