黄奕彬

外部精选

omp · v18.12.5

本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。

阅读原文(github.com)
来源
oh-my-pi (omp) releases ↗
作者 / 署名
github-actions[bot]
来源更新时间
本站收录时间
原文域名
github.com

以上时间均为北京时间;来源更新时间由来源提供,不代表首次发布时间。

结构化摘要 AI 生成

背景与问题

背景与问题:这是 oh-my-pi(omp)v18.12.5 的发布说明,面向该 AI 编程工具链的使用者。

要解决的问题包括:

  • OpenAI 长时 prompt 缓存参数无效
  • Codex 请求持续 404
  • Moonshot kimi-k3 缓存写入计价为 $0
  • 子代理 effort 失控、omp update --check 失败等多项缺陷

方法或内容

方法或内容:按 4 个子包分列变更,并附 PR 记录与完整变更链接。

  • @oh-my-pi/pi-ai:新增 1 项、修复 1 项
  • @oh-my-pi/pi-catalog:修复 1 项
  • @oh-my-pi/pi-coding-agent:新增 1 项、修复 5 项
  • @oh-my-pi/pi-natives:修复 1 项
  • 另附 4 条 PR 记录与 Full Changelog:v18.12.4...v18.12.5

关键发现 / 结果

关键发现或结果:共 10 项变更(2 新增、8 修复)。

  • 新增:OpenAI 12 小时 prompt 缓存——cacheRetention: "long" 对 GPT-5.6+(Responses API)请求 prompt_cache_options.ttl: "12h",替代被忽略的旧参数 prompt_cache_retention: "24h";promptCache.ttl 接受 "12h";缓存写入成本为输入的 2.5 倍(此前 1.25 倍)
  • 修复:Codex 个人 ChatGPT 账户(token 非区域固定)请求 HTTP 404 {"detail":"Not Found"}(#16493)
  • 修复:Moonshot kimi-k3 缓存写入按 $3/M 5 分钟费率计入成本(#16508)
  • 修复:task.enableEffort 关闭时子代理仍按调用方 effort 启动,现忽略该字段(#16402)
  • 修复:omp update --check 在 JFrog Artifactory 空 dist-tags 下失败,改用 registry 的 curated latest version(#16375)
  • 修复:<path>:conflicts 超 10 MiB 扫描上限时无提示,现报告停止行号(#16269)
  • 修复:ts-set-map 在长单行 Map 字面量上卡顿流式数秒、漏写 Map 条目(#16242)
  • 修复:ts-import-type 漏检非 ASCII 成员名的内联类型导入,如 import("./units").温度(#16242)
  • 修复:macOS 后台动作在点击耗时超过点击本身时使目标窗口留在前台(#16217)

结论与意义

结论与意义:本版本为缺陷修复型小版本发布,主要收益是 OpenAI 12 小时 prompt 缓存落地与 Codex 可用性恢复。

适用边界限于原文列出的包与场景;正文未提供测试数据或整体性能结论。

AI 解读 AI 生成

方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。

时间:何时发生,现在是否仍成立

时间:发布时间为北京时间 2026-10-21 10:31:29(来源日期换算),变更范围覆盖 v18.12.4...v18.12.5。

  • 各修复的具体合入时间原文未说明
  • 内容属版本快照,依赖上游 OpenAI/Moonshot/Artifactory 行为,后续版本可能再变,现在是否仍成立原文未说明

空间:谁的环境 / 场景

空间:适用于 oh-my-pi(omp)v18.12.5 及其 4 个子包(@oh-my-pi/pi-ai、pi-catalog、pi-coding-agent、pi-natives)。

具体场景:

  • OpenAI Responses API + GPT-5.6+ 模型
  • OpenAI Codex 个人 ChatGPT 账户(token 非区域固定)
  • Moonshot kimi-k3 计费
  • JFrog Artifactory 私有 registry
  • 超过 10 MiB 的文件冲突扫描、TypeScript 规则、macOS 桌面环境

变量:实际改变了什么

变量:相对 v18.12.4 的实际改变。

  • 行为:cacheRetention: "long" 从无效(旧参数被忽略)变为实际请求 12h TTL;Codex 从 404 变为正常;子代理的调用方 effort 字段被忽略;omp update --check 改用 curated latest version
  • 成本:OpenAI GPT-5.6+ 缓存写入从 1.25× 输入价变为 2.5×;Moonshot kimi-k3 缓存写入从 $0 变为按 $3/M 计
  • 输出:<path>:conflicts 新增停止行号提示;ts-set-map 补写 Map 条目并消除卡顿;ts-import-type 可识别非 ASCII 成员名
  • 交互:macOS 后台动作不再使目标窗口错误置前

区分:包含 ≠ 相关 ≠ 因果

区分:

  • 明确因果(原文陈述的修复性诊断):token 非区域固定导致 Codex 404;空 dist-tags 导致 update 检查失败;10 MiB 扫描上限导致冲突无提示;长单行 Map 字面量导致流式卡顿;点击耗时导致 macOS 窗口置前。这些因果是开发者的修复说明,正文未附验证证据
  • 相关而非因果:12h 缓存与 2.5× 写入成本同时出现,但原文未说明 2.5× 是否为本版引入的新价格还是 OpenAI 既有定价;#16242 中两条修复同属一个 PR,彼此无因果说明
  • 包含关系:4 个子包是 omp 的组成部分,非外部关联

对象:作者/署名与关键技术原理

对象:

  • 署名(仅依结构化作者字段):github-actions[bot],即 GitHub 自动化发布账号;本页人类作者/维护者原文未说明。变更记录中列出的 PR 由 @roboomp 提交(#16379、#16406、#16501、#16529),这是正文记载的提交者,非本页署名作者
  • 关键技术及原文描述的原理:
  • OpenAI prompt caching:通过 cacheRetention: "long" 在 Responses API 请求 prompt_cache_options.ttl: "12h" 实现 12 小时长缓存
  • 计费目录:Moonshot 缓存写入按 $3/M 5 分钟费率计入 usage cost
  • 冲突扫描:存在 10 MiB 单文件扫描上限,超限时以停止行号提示
  • ts-set-map、ts-import-type:代码规则,具体实现原理原文未说明
  • 其余修复(如 Codex 404)的具体机制原文未说明

元反空综合结论

元反空综合:

  • 元:这是 omp v18.12.5 的缺陷修复型发布说明,本质在回答"自 v18.12.4 以来各子包改了什么",核心亮点是 OpenAI 12 小时 prompt 缓存落地与 Codex 404 修复
  • 反:最可能失效或有边界的部分——(1)2.5× 缓存写入成本与 12h TTL 均依赖 OpenAI 上游定价与服务行为,omp 侧无法单方保证;(2)Codex 404 修复仅针对 token 非区域固定的个人 ChatGPT 账户,其他场景未覆盖;(3)各修复绑定特定版本、registry 类型(Artifactory)与文件规模(10 MiB),环境变化即可能失效。正文未提供任何测试数据,修复效果无法独立验证
  • 空:去掉叙事后剩的事实——4 个子包共 10 项变更(2 新增、8 修复),附 4 条 PR 编号、4 个 issue 编号与完整变更链接
  • 综合:这是一份由自动化账号生成的常规版本记录,事实密度高但无独立验证;对命中受影响场景(OpenAI 长缓存、Codex 个人账户、Moonshot 计费、Artifactory、大文件扫描)的用户有直接操作价值,其余用户影响有限

中文译文 AI 生成

@oh-my-pi/pi-ai

新增

  • 为 Responses API 上的 GPT-5.6+ 新增 OpenAI 12 小时 prompt caching:cacheRetention: "long" 现在会请求 prompt_cache_options.ttl: "12h"(而不是被忽略的旧版 prompt_cache_retention: "24h"),并且 promptCache.ttl 接受 "12h"

修复

  • 修复了在 token 未按区域固定的个人 ChatGPT 账户上,每个 OpenAI Codex 请求都以 HTTP 404 {"detail":"Not Found"} 失败的问题 (#16493)

@oh-my-pi/pi-catalog

修复

  • 修复了 Moonshot kimi-k3 定价中 cache writes 被计为 $0 的问题;usage cost 现在按 Moonshot 的 $3/M 5 分钟费率计入 cache writes (#16508)

@oh-my-pi/pi-coding-agent

新增

  • providers.cacheRetention: long 现在会将 OpenAI GPT-5.6+ 的 prompt caches 保留 12 小时(Responses API;cache writes 成本为 2.5× input 而非 1.25×)

修复

  • 修复了在 task.enableEffort 关闭时,subagents 仍按调用方提供的 effort(例如 hi → max)启动的问题;该字段现在会被忽略,并应用 agent 所配置的 thinking level(包括 :auto)(#16402)
  • 修复了 omp update --check 在会向已打标签的 manifest 添加空 dist-tags 的 JFrog Artifactory registry 上失败的问题;更新检查现在使用该 registry 精选的最新版本 (#16375)
  • 修复了 <path>:conflicts 在超出 10 MiB 扫描上限的文件上报告无冲突且无任何提示的问题:现在会指出扫描停止所在的行号,以及登记该行之后各块的 ranged read (#16269)
  • 修复了 ts-set-map 规则在较长单行 Map 字面量上使 tool-call streaming 卡顿数秒的问题,以及漏掉以 ["key", value] as const 形式写入的 Map 条目的问题 (#16242)
  • 修复了 ts-import-type 规则漏掉成员名为非 ASCII 的 inline type imports 的问题,例如 import("./units").温度 (#16242)

@oh-my-pi/pi-natives

修复

  • 修复了 macOS 上的一个 background action 问题:当你点击了自己应用的另一个窗口后,若放置该点击所需的时间超过点击本身,其目标会停留在你的应用前面 (#16217)

更新内容

  • fix(update): 处理已打标签 manifest 上的空 Artifactory dist-tags,由 @roboomp 在 #16379 中提交
  • fix(task): 在 task.enableEffort 关闭时忽略调用方的 effort,由 @roboomp 在 #16406 中提交
  • fix(catalog): 停止为 codex 声明 no_constraint residency,由 @roboomp 在 #16501 中提交
  • fix(catalog): 将 moonshot kimi-k3 的 cache writes 按 5 分钟费率定价,由 @roboomp 在 #16529 中提交

完整变更日志:v18.12.4...v18.12.5

展开原文提取正文(采集端自动提取,可能有缺失)

@oh-my-pi/pi-ai

Added

Added OpenAI 12-hour prompt caching for GPT-5.6+ on the Responses API: cacheRetention: "long" now requests prompt_cache_options.ttl: "12h" (instead of the ignored legacy prompt_cache_retention: "24h"), and promptCache.ttl accepts "12h"

Fixed

Fixed every OpenAI Codex request failing with HTTP 404 {"detail":"Not Found"} on personal ChatGPT accounts whose token is not region-pinned (#16493)

@oh-my-pi/pi-catalog

Fixed

Fixed Moonshot kimi-k3 pricing cache writes at $0; usage cost now includes cache writes at Moonshot's $3/M 5-minute rate (#16508)

@oh-my-pi/pi-coding-agent

Added

providers.cacheRetention: long now keeps OpenAI GPT-5.6+ prompt caches for 12 hours (Responses API; cache writes cost 2.5× input instead of 1.25×)

Fixed

Fixed subagents spawning at a caller-supplied effort (e.g. hi → max) while task.enableEffort is off; the field is now ignored and the agent's configured thinking level (including :auto) applies (#16402) Fixed omp update --check failing against JFrog Artifactory registries that add empty dist-tags to a tagged manifest; the update check now uses the registry's curated latest version (#16375) Fixed <path>:conflicts on a file past the 10 MiB scan cap reporting no conflicts with no hint: it now names the line the scan stopped at and the ranged read that registers the blocks after it (#16269) Fixed the ts-set-map rule stalling tool-call streaming for seconds on a long single-line Map literal, and missing Map entries written ["key", value] as const (#16242) Fixed the ts-import-type rule missing inline type imports whose member name is non-ASCII, such as import("./units").温度 (#16242)

@oh-my-pi/pi-natives

Fixed

Fixed a macOS background action leaving its target in front of your app after you clicked another of your windows, when placing the click took longer than the click itself (#16217)

What's Changed

  • fix(update): handled empty Artifactory dist-tags on tagged manifests by @roboomp in #16379
  • fix(task): ignored caller effort while task.enableEffort is off by @roboomp in #16406
  • fix(catalog): stopped declaring no_constraint codex residency by @roboomp in #16501
  • fix(catalog): priced moonshot kimi-k3 cache writes at the 5min rate by @roboomp in #16529

Full Changelog: v18.12.4...v18.12.5

原文入口

阅读原文(github.com)

原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。

作者/署名来自原文结构化字段(Atom/RSS/HTML meta/JSON-LD;GitHub release 显示的是发布者账号),未经模型补充。

了解来源批准与收录规则