Repository navigation
fix(runtime): normalize unsupported OpenAI uniqueItems schemas - #2214
Linuxdazhao wants to merge 34 commits into
Conversation
系统通知属于当前运行回合,重建时不应作为新提示截断运行子代理选择。与回合状态选择保持相同边界,避免导航后错误显示已停止,普通新提示仍隔离历史工作。 Refs vastsa#1990
普通系统通知不会关闭运行回合,真实重启后 running 为 false 才隔离历史工作。补齐旧回归对该边界的覆盖,避免与生产回合状态规则冲突。
文件管理器修复已由维护者合入主线。使用非破坏性合并保留双方规格和回归场景,使本 PR 包含最新基线并消除文档冲突,不改写已共享提交。
保留原分支历史并整合已合入的 macOS 发布修复,为继续同步最新主线建立完整合并记录。
主线已合入截图粘贴及 steering 修复,保留双方新增规格和测试场景,清除独立子代理修复 PR 的文档冲突,不改写共享分支历史。
保留主线新增的 Goal 能力与本 PR 子代理状态修复,采用普通合并保证已共享历史不变。
Scheduled tools forward uniqueItems into current and historical Responses function declarations, where schema compilation can reject the entire turn. Normalize at the outbound payload boundary so saved declarations recover too, without changing local validation or stored history. The regression uses synthetic fixtures and the real adapters with an HTTP stub. Native and live-provider acceptance remain pending. Fixes vastsa#2213
There was a problem hiding this comment.
AIUO CodePilot · Preliminary review
Diff-only preliminary review of PR #2214 (normalize unsupported OpenAI `uniqueItems` schemas). The normalization pass, provider-binding wrapper, regression test, and docs are present. No evidenced functional defects found in the cited added lines. Verification limits: no tools, execution, typecheck, tests, or repository access were used; live-provider/native E2E remains unrun per the PR body, so runtime/provider behavior is not confirmed here.
No evidenced findings in the supplied diff.
Head: 9dde2ac
Base: 3169c21
CI: pending; mergeable: true.
Validation: code/tests NOT EXECUTED. Diff-only preliminary analysis; not approval. Human review and repository gates remain required.
…-rows-1990 fix(chat): 防止系统通知后子代理被错误显示为已停止
app.getFileIcon() returns the same generic bundle placeholder for every .app on macOS, so every installed application in the launcher rendered as an identical blank square. Prefer the Quick Look thumbnail of the bundle (96px, well inside the 32 KiB icon budget) and fall back to the small native file icon; other platforms keep the existing lookup. Native application icons now fill the tile instead of sitting inside a second rounded square, and the active tile is a filled cell rather than an outlined one.
Users asked to jump from a file named in the conversation straight to its location on disk. The right-click menu only offered copy actions since the HTML open-with change, so the reference had to be copied and located by hand. Every local reference now offers Show in folder. It resolves through the same completion a click uses and reveals that exact absolute path through the contained fs/reveal IPC; a missing reference or a refused reveal reports itself, and remote workspaces keep the copy actions only.
…older feat(chat): show a transcript file reference in its folder
fix(launcher): show real macOS application icons
扩展桥接只修改运行时公开值,Pi Agent 仍携带旧档位。同步更新请求状态,保留模型能力校验,避免 getter 和实际 reasoning 参数不一致。 Refs vastsa#1974
历史动作的慢读取可能在新流式消息之后返回,原逻辑无条件替换缓存。仅缓存读取期间未改变的快照,调用方仍得到完整历史用于独立校验。 Refs vastsa#2086
远端连接失败并不能确认会话已停止,原 finally 无条件清除运行状态会隐藏仍运行的会话。请求成功后才更新停止状态,错误继续交给调用方处理并允许重试。 Refs vastsa#1990
fix(sessions): 停止请求失败时保留运行状态
主线已合入停止失败时保留运行状态的修复。保留独立问题的行为说明和新增停止场景,使共享分支继续包含当前主线且不改写历史。
主线已合入停止失败时保留运行状态的修复。保留独立问题的行为说明和新增停止场景,使共享分支继续包含当前主线且不改写历史。
…in-process hang The Windows paste-image path used spawnSync to probe the clipboard, which blocks the main process. On machines where PowerShell startup exceeds the 2s timeout, this manifests as a hard freeze on paste. Switch to async execFile with a Promise wrapper so the probe no longer holds up the main process, regardless of paste type. nativeClipboardPaths and readComposerClipboardDirectories are now async, so their existing callers and tests await the result. Two regression tests cover a probe slower than the former 2s bound and a failing probe, and both assert the event loop keeps running. closes vastsa#2220
…retention fix(chat): 防止旧历史读取覆盖新的流式缓存
Exercise the production async child-process boundary with controlled output and failure events. This guards the Windows clipboard probe against blocking the main process while preserving its process timeout and output bounds.
Write the Finder property list to plutil through the child stdin stream. The asynchronous execFile API does not support the synchronous input option, so keep the macOS paste path functional without blocking the main process.
…rshell-timeout-regression
A never-shown window throttles animation frames to roughly 1 Hz and then stops them, so the probe helpers wait on requestAnimationFrame forever and the suite is killed after 45 s with no output. Show the window, as the other frame-dependent suites already do.
fix(runtime): 扩展思考强度调整同步到实际请求
execFile decodes stdout to utf8 strings by default, so Buffer.concat threw ERR_INVALID_ARG_TYPE from inside the data handler and escaped as an uncaught Main-process error. Pin the buffer encoding, accept string chunks defensively, and reject on stream errors. The mocked child processes emitted Buffers, which is why the macOS run failed while the suite passed. A regression now reads a real child process so the default-encoding boundary is exercised.
…oard-powershell-timeout fix(composer): replace execFileSync with async execFile to prevent main-process hang
Preserve the existing wire-schema fix on current main and exercise both provider stream entry points against a real loopback HTTP endpoint. Keep live-account acceptance separate and synchronize the spec mirrors.
|
Fixes #2213. Normalize unsupported Refreshed candidate Validation:
This remains Draft pending real-account OpenAI acceptance. Loopback transport success does not establish live service compatibility. No paid model call, installed-app acceptance or release is claimed. All six fresh-head CI checks passed. |
|
Holding this until the failure is confirmed against a real provider. #2213's reproduction is a local server written to reject |
|
I checked this against the real Codex service on current main On macOS arm64 / Node 26.13.0,
The normalized control also returned HTTP 200. All prompts and schemas were synthetic; no scheduled tool was executed. The transport callback did not expose an The public OpenAI Responses endpoint is still untested because no public API credential is configured in this verification environment. These Codex successes do not prove public API/Azure acceptance. The official function-calling guide explicitly documents You are right that the serializer assertion and schema-rejecting loopback establish keyword forwarding and the wrapper's behavior, not a real-provider defect. I am keeping this on hold, correcting that distinction, and not expanding the wrapper into Azure/extension paths without a confirmed failure. |
|
Public OpenAI API follow-up: I have now tested Environment: main
All six completed normally. Earlier real Codex tests also accepted the original schemas. The only initial public-API errors concerned an unsupported reasoning value in the harness; correcting it made both original and control succeed, so those were not schema evidence. This confirms your concern about the original reproduction: forwarding the keyword and passing a purpose-built local rejecting server do not prove a defect in the application's non-strict request path. I am withdrawing the claim of a confirmed real-provider rejection and keeping the proposed normalization unqualified rather than expanding it. This does not establish acceptance for every model, Azure endpoint, or strict-enabled extension. |
|
Closing based on your own verification, thanks for doing it thoroughly: the reported |
Draft: the claimed real-provider rejection remains unconfirmed. Related investigation: #2213.
Public OpenAI Responses with
gpt-6.1-sol, the pinned patched pi-ai 1.5.0 transport and the actual ScheduledTaskCreate/Update schemas accepted unchangeduniqueItems: truewithstrict: false. Current tools,additional_toolsandtool_search_outputeach completed normally with HTTP 200, as did normalized controls. Real request IDs and conditions are in the verification comments. Real ChatGPT/Codex requests also accepted the original schemas with defaultstrict: null.The original serializer assertion established keyword forwarding. The purpose-built schema-rejecting loopback established normalization behavior; neither proves a real service defect. The necessary production-fix claim is withdrawn. Azure, strict-enabled extensions and acceptance for every model remain untested.
The proposed code normalizes
uniqueItemsat the OpenAI Responses/Codex Responses payload boundary after existing hooks, including current and historical declarations. Canonical schemas, stored transcripts, local duplicate-weekday validation, strict flags, hosted tools and other transports retain their behavior. The current wrapper does not cover Azure or extension-owned agent construction; it has not been expanded without a confirmed need.Previously published candidate
41ef493cdcontains main4ad0094e87b3and preserves its original history. Its 65 targeted provider/schema tests, six loopback HTTP cases, agent-runtime TypeScript build, Pi patch audits, documentation checks/build and six GitHub checks passed. These results qualify the proposed transformation only. No new production code is added by this verification; installed-app acceptance is unclaimed.