Repository navigation
Conversation
…无审批联网) #212 的 workspace-write + network_access 在真机仍弹审批弹窗: - Codex 默认 `approval_policy = OnRequest`(`protocol.rs::AskForApproval` 的 `#[default] OnRequest`), sandbox 允许 ≠ 不弹窗 - `is_safe_command()` 把 curl 等判"非 safe" 仍 escalate user 审批 - macOS seatbelt #10390 + Windows AppContainer 双重 sandbox 实现差异让 workspace-write + network_access 路径不彻底 改用 Codex 官方推荐的 **"Full access" 配对**(Codex docs 原话: "Full access means `sandbox_mode = danger-full-access` together with `approval_policy = never`"): - toggle on:写 sandbox_mode=danger-full-access + approval_policy=never 到 root level; strip 之前 #212 可能写过的 [sandbox_workspace_write] network_access(避免 stale entry 误导) - toggle off:strip 全部三条,让 Codex 回 default(read-only + on-request) Trade-off: full-access + never 模型可读写任何文件 + 所有命令无审批 = **完全信任模型**。toggle 默认 on 接受 prompt-injection 风险换"小白开箱 用",专业用户 toggle off 自己回 Codex default。 UI hint / README 都更新成 "全权限模式" 文案明示安全权衡。 followup #38 (macOS seatbelt bug) 状态 → resolved by PR #215:本项目 不再依赖 [sandbox_workspace_write].network_access, 上游 issue 仍 Open 但我们绕过了。tracker 索引行移到 Resolved 段。 测试: 72 个 codex-integration test 全 pass, 含: - 主路径写 danger-full-access + never + strip workspace_write - toggle off strip 全部三条 - restore round-trip 恢复用户原 network_access (dotted form / section form) - toml crate parse 验证不产 duplicate table Refs #212, Closes #215
用户报告 Windows 上反馈功能炸:`error sending request for url (https://codex-app-transfer-feedback.alysechencn.workers.dev/)`。verify 后定位国内 ISP / DNS 污染 `*.workers.dev` 域名,用户必须走代理才能反馈, 但代理同时把 127.0.0.1:18080 协议转发抢走 → 反馈跟主功能二选一。 修法: Cloudflare Worker 加 custom domain `codex-app-transfer-feedback.mochance.xyz`, 域名 anycast 走 Cloudflare 主 IP 池, 国内可达性显著提升, 默认 DNS 不依赖代理就能解到。 verify: - curl -I https://codex-app-transfer-feedback.mochance.xyz/ → HTTP 405 (Worker alive, GET 不接但 endpoint reachable) - TLS 1.3 cert chain 正常 代码改动: FEEDBACK_WORKER_URL const 一行替换 + 加注释解释为什么切。 搭车 #215 PR commit (memory rule 同对话内未 merge PR 默认搭车减 CI)。
Cmochance
added a commit
that referenced
this pull request
May 19, 2026
#218) * feat(#215): toggle on 改 danger-full-access + approval_policy=never(真正无审批联网) #212 的 workspace-write + network_access 在真机仍弹审批弹窗: - Codex 默认 `approval_policy = OnRequest`(`protocol.rs::AskForApproval` 的 `#[default] OnRequest`), sandbox 允许 ≠ 不弹窗 - `is_safe_command()` 把 curl 等判"非 safe" 仍 escalate user 审批 - macOS seatbelt #10390 + Windows AppContainer 双重 sandbox 实现差异让 workspace-write + network_access 路径不彻底 改用 Codex 官方推荐的 **"Full access" 配对**(Codex docs 原话: "Full access means `sandbox_mode = danger-full-access` together with `approval_policy = never`"): - toggle on:写 sandbox_mode=danger-full-access + approval_policy=never 到 root level; strip 之前 #212 可能写过的 [sandbox_workspace_write] network_access(避免 stale entry 误导) - toggle off:strip 全部三条,让 Codex 回 default(read-only + on-request) Trade-off: full-access + never 模型可读写任何文件 + 所有命令无审批 = **完全信任模型**。toggle 默认 on 接受 prompt-injection 风险换"小白开箱 用",专业用户 toggle off 自己回 Codex default。 UI hint / README 都更新成 "全权限模式" 文案明示安全权衡。 followup #38 (macOS seatbelt bug) 状态 → resolved by PR #215:本项目 不再依赖 [sandbox_workspace_write].network_access, 上游 issue 仍 Open 但我们绕过了。tracker 索引行移到 Resolved 段。 测试: 72 个 codex-integration test 全 pass, 含: - 主路径写 danger-full-access + never + strip workspace_write - toggle off strip 全部三条 - restore round-trip 恢复用户原 network_access (dotted form / section form) - toml crate parse 验证不产 duplicate table Refs #212, Closes #215 * feat(feedback): 切自定义域名解决国内 workers.dev DNS 污染 用户报告 Windows 上反馈功能炸:`error sending request for url (https://codex-app-transfer-feedback.alysechencn.workers.dev/)`。verify 后定位国内 ISP / DNS 污染 `*.workers.dev` 域名,用户必须走代理才能反馈, 但代理同时把 127.0.0.1:18080 协议转发抢走 → 反馈跟主功能二选一。 修法: Cloudflare Worker 加 custom domain `codex-app-transfer-feedback.mochance.xyz`, 域名 anycast 走 Cloudflare 主 IP 池, 国内可达性显著提升, 默认 DNS 不依赖代理就能解到。 verify: - curl -I https://codex-app-transfer-feedback.mochance.xyz/ → HTTP 405 (Worker alive, GET 不接但 endpoint reachable) - TLS 1.3 cert chain 正常 代码改动: FEEDBACK_WORKER_URL const 一行替换 + 加注释解释为什么切。 搭车 #215 PR commit (memory rule 同对话内未 merge PR 默认搭车减 CI)。 * docs(#215): 删 README v2.1.13+ 版本前缀防版本号漂移 Devin review 抓到 README 写 v2.1.13+ 但 code Cargo.toml 仍 2.1.12, 不一致。release pipeline 后续 bump 时再加版本号反而易遗漏,直接去掉 版本号前缀让文案描述当前/未来所有 build 都对。
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.
Closes #215, Refs #212
背景
#212 (PR #213) 用
workspace-write + network_access真机仍弹审批弹窗:approval_policy = OnRequest,sandbox 允许 ≠ 不弹窗is_safe_command()把 curl 等判"非 safe" 仍 escalate 审批方案
改用 Codex 官方推荐的 "Full access" 配对:
sandbox_mode = "danger-full-access"+approval_policy = "never"写 root level;strip [sandbox_workspace_write].network_access(避免 stale entry)Trade-off
full-access + never 模型可读写任何文件 + 所有命令无审批 = 完全信任模型。toggle 默认 on 接受 prompt-injection 风险换"小白开箱用",专业用户 toggle off 自己回 Codex default 沙箱。
测试
Followup #38 转 resolved
PR #213 时担心 macOS seatbelt bug 让 #212 失效,加 followup #38 active。本 PR 绕过整个 workspace_write.network_access 字段路径,本项目不再受上游 issue 影响(虽然 #10390 还 Open)。tracker 索引移到 Resolved 段。
Test plan
~/.codex/config.toml含sandbox_mode = "danger-full-access"+approval_policy = "never",Codex 重启后 curl 无审批联网