Codex routine preflight ignores project-level Inbox MCP registration

未关闭 适合新手
#4,000 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@zhangkom 已经在做这个了。

开始于 2026年11月25日。

  • #4028 来自 @zhangkom —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
backend

调研方向

从 packages/server/inbox-launch-codex.ts 中第 661-695 行附近的 Codex preflight 开始,其中 available() 只读取选定的 CODEX_HOME/config.toml,并将其与已经传入起始目录的 availableIn(host, [startsIn]) 调用进行比较。跟踪仓库中其他代码如何为起始目录解析受信任的项目配置,以便复用该逻辑而不是再次解析。完成的样子是:一个以某项目为根、而 plannotator-inbox 仅存在于该项目 .codex/config.toml 中的例程通过 preflight,而一个在两个配置中都没有注册的目录仍然失败;在现有 launch-codex 测试旁边用测试覆盖这两种情况。

由索引模型根据 Issue 内容生成。

描述

Scheduled routines with agent codex fail before launch when the Inbox MCP server is registered only in the project's .codex/config.toml (trusted project), not in ~/.codex/config.toml.

Error in the routine thread:

Codex can't be started here: Plannotator's Inbox is not connected to Codex (Settings → Agents).

Codex itself loads mcp_servers from trusted project config, so the session would have the Inbox tools. The preflight in v0.29.3 only reads the selected CODEX_HOME/config.toml: availableIn(host, [startsIn]) passes the start directory, but the Codex available() ignores it.
https://github.com/backnotprop/plannotator/blob/v0.29.3/packages/server/inbox-launch-codex.ts#L661-L695

We keep the registration project-scoped on purpose so ordinary Codex sessions sharing the same home do not get Inbox tools. Registering it globally via Settings → Agents would break that.

Ask: when a routine has a start directory, let the Codex preflight also accept a plannotator-inbox entry in that directory's trusted project .codex/config.toml.

Env: Plannotator 0.29.3, Codex CLI 0.171.0, macOS arm64.

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
14 小时 26 分钟
30 天内合并 PR
772

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。