Skip to content

fix(java): return correlated errors for control callback failures - #17113

Merged
wenshao merged 5 commits into
QwenLM:mainfrom
Afloat16:fix/java-control-request-errors
Nov 14, 2026
Merged

wenshao merged 5 commits into
QwenLM:mainfrom
Afloat16:fix/java-control-request-errors

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

Sends a correlated error response when a legacy Java SDK control-request callback throws, times out, returns null or an empty envelope, omits or mismatches the incoming request ID, uses an unknown response subtype, or returns success without a response payload. The error carries the incoming request ID, the error subtype and an error value. Valid success responses and valid error responses without a success payload pass through unchanged.

Why it's needed

The original fallback could serialize only {"type":"control_response"}, which the CLI's actual message guard rejects because it lacks response. An initialized but empty inner envelope is a different case: {"type":"control_response","response":{"subtype":"success"}} has a default success subtype but no request ID or payload. Merely checking that the outer response exists leaves that case, mismatched IDs and payload-free success responses unchecked.

A missing ID leaves the original request pending; a wrong ID can settle another pending request; success without a payload can resolve the request without its required result. The fix checks correlation, the closed success / error subtype set and the success payload before writing, and gives malformed callback results a usable error envelope for the original request. The response model also gains the protocol's optional error field.

Unexpected handler failures report the host callback's exception type after removing the asynchronous execution envelope and the SDK's single wrapper. The handler's own exception and cause remain intact; its message and full cause chain stay in SDK logs. This fixed two-layer boundary also avoids traversing a cyclic host cause chain. Outer callback timeouts name the configured budget. Controlled validation errors retain useful diagnostics, including expected and returned request IDs.

The default consumer has two timeout layers. An inner permission callback timeout is logged and returns an ordinary success envelope with the default deny behavior; an inner other-control timeout returns success with an empty, non-null payload. These inner fallbacks do not emit a timeout error. Only expiry of the outer control-request wait produces the correlated timeout error. The default outer limit is 180 seconds and the inner limits are 60 seconds; the Session fallback is 60 seconds when the outer timeout method returns null.

CLI deadlines depend on the request path: leader and workflow tool approvals default to 60 seconds unless configured otherwise; teammate approvals use the generic 30-second deadline. Configure the outer SDK limit below the shortest applicable CLI deadline with time for delivery. Inner limits below the outer limit allow their normal fallback replies to settle first; an outer timeout instead produces an error and can discard a later inner approval. This change preserves existing timeout defaults and fallback policies.

Reviewer Test Plan

How to verify

  1. Feed a control request with a known request ID into a Java Session. Make its callback throw, return null, return an empty envelope, omit the ID, use another request's ID, return an unknown subtype, or return success without a payload. Confirm exactly one correlated error is emitted for the original request.
  2. Feed the emitted JSON into the CLI's actual ControlDispatcher with the original and an unrelated request pending. Confirm malformed callback results reject the original request and leave the unrelated request pending. Valid success and valid error responses must still settle the original request normally.
  3. Hold the callback beyond a deliberately short configured SDK timeout. Confirm the correlated error names that configured timeout budget and the Session continues consuming the turn's result. This checks the configured timeout path, not the ordering of the SDK and CLI defaults.
  4. Run the real ProcessTransport subprocess fixture, close its input writer during a control callback, and confirm the existing read-loop behavior: sendPrompt returns without consuming a result. This characterizes the separately tracked asynchronous-wait limitation, not a write-error propagation guarantee.
  5. Derive a successful reply's ID from the deserialized request. Confirm the wire reply echoes the incoming ID and remains a success. Removing the request_id annotation must turn this test red.
  6. Exercise the shipped simple consumer without overriding its control-request handler. Confirm permission and other-control replies retain the incoming ID, success subtype and non-null payload through the Session validator. An inner permission timeout must retain the deny fallback; an inner other-control timeout must retain the empty success payload. Let the outer wait expire first and confirm it sends an error instead.
  7. Throw a two-node RuntimeException cause cycle from the handler. Confirm one correlated error arrives, the result is consumed and the reader finishes. The test transport must stop when a callback returns true so continuation assertions observe the real transport contract.
  8. Throw a RuntimeException with an IllegalStateException cause from the host callback. Confirm the correlated error names RuntimeException, contains neither private exception message, and still consumes the result. A specific IllegalStateException handler remains an IllegalStateException; expiry of the outer callback budget still reports the configured timeout.

At the preceding head 839d8cd3298121b6e6b4b050a69b5a62efaed86b, native Linux validation reported 449 tests, 0 failures, 0 errors and 9 conditional skips (440 executed successfully), zero Checkstyle violations, and successful packaging. That preceding revision's maintained control-request suite passed 20 tests. Java 11 release compilation is unchanged.

Preceding hosted validation passed for exact commit 839d8cd3298121b6e6b4b050a69b5a62efaed86b. The Java job passed on Linux with Temurin 21.0.13 and Maven 3.9.15: 449 tests, 0 failures, 0 errors and 9 skips (440 executed successfully), zero Checkstyle violations and successful packaging. Its control-request suite passed all 20 cases. A separate Node.js 22.23.4 job passed the full workspace build, all workspace/integration type checks, README formatting and a clean-source check. The nine conditional Java skips remain one Windows-specific ProcessTransport case and eight daemon/managed-runtime end-to-end cases. This is fork validation; upstream workflow authorization remains separate.

For the current two-file follow-up at 7408a7fe20febe0f1d2f4cc2316a62eb82921234: Hosted Java validation passed on Linux with Temurin 21.0.13 and Maven 3.9.15: 450 reported tests, 441 executed successfully, 9 conditional skips, 0 failures and 0 errors, zero Checkstyle violations and successful packaging. The control-request suite passed 21/21, with the Java 11 release target unchanged. The hosted counterfactual restored only the preceding Session source while retaining the new regression and produced exactly one direct assertion failure, 0 errors and 0 skips. Restoring the exact candidate returned the control suite to 21/21 and left the source clean. Separate workspace validation passed on Node.js 22.23.4 with pnpm 11.24.0: frozen dependency installation, the full workspace build, all workspace/integration type checks and a clean-source check.

Evidence (Before & After)

The earlier wire-contract validation used an independent Java fixture running the real Session callback dispatcher and serializer over a controlled in-memory transport. Its emitted JSON passes through the actual TypeScript CLI isControlResponse guard and ControlDispatcher.handleControlResponse, with two pending requests registered through the real registry.

Callback response Before this follow-up After
Missing request ID Original request remains pending Original request rejects with a correlated error; unrelated request stays pending
Wrong request ID Original stays pending; unrelated request can resolve Original rejects; unrelated request stays pending
Success without a payload Original resolves without its required payload Original rejects with a correlated error
Valid success Original resolves with its permission payload Same successful response
Valid error without a success payload Original rejects with the supplied error Same supplied error

The unchanged five-case fixture produced three failures and two passing controls before, then five passes after. The earlier three-case fixture for throwing, null and successful callbacks also passed after the initial fix; that earlier fixture checked wire shape and CLI guard acceptance. Neither fixture is a separately timed 60-second stall or a live model run.

For the preceding follow-up, six independent native probes on d4c3989 gave four passing controls and two direct assertion failures: the fixture continued after a stop signal, and a two-node cause cycle left the reader running with no reply. At 839d8cd, those unchanged probes passed 6/6: one callback after a stop signal, and a terminated reader with one correlated error and a consumed result after the cyclic exception. The real default producer, inner permission denial, inner other-control empty payload and outer timeout controls keep their observed behavior.

That preceding follow-up also used five temporary mutations, each producing exactly one target assertion failure and no test errors: remove the cause-depth bound; omit the permission producer's request ID; omit its payload; remove the implicit success subtype; or stop reading immediately after the control request. All source files were restored to that preceding revision's blobs. The restored focused suites reported 23 tests, 0 failures, 0 errors and 1 Windows-specific skip (22 executed successfully).

For the wrapper-boundary regression, the new maintained test fails on unchanged 839d8cd with one direct assertion failure: expected RuntimeException, observed IllegalStateException. After the fix, all 21 control-request cases pass, including the real default producers, inner fallback, outer timeout and cyclic-cause controls. Restoring only the old Session source with the candidate test retained reproduces the same single failure; restoring the candidate returns the control suite to 21/21. The initial combined control/ProcessTransport run reported 24 tests, 23 executed successfully and one Windows-specific skip, with no failures or errors. The unchanged two-case independent native probe changed from one direct assertion failure and one passing control at 839d8cd to 2/2 passes with the candidate, with zero errors or skips; it verifies the serialized exception types, correlation and continued result consumption through the real Session.

Tested on

OS Status
🍏 macOS ⚠️ not tested
🪟 Windows ⚠️ not tested
🐧 Linux ✅ tested

Environment

Current native Java validation uses Zulu JDK 21.0.13 and Maven 3.9.15, with the module's unchanged --release 11 compilation target. The earlier CLI consumer fixture used Node.js v24.22.1. Tests use isolated temporary files, controlled transports and the module's HTTP fixtures; live provider integrations are not enabled.

Risk & Scope

  • Main risk or tradeoff: malformed callback responses now explicitly reject the original control request if it is still pending. Valid responses keep their existing serialization, including error responses that have no success payload.
  • Not validated / out of scope: live CLI/model integration, callback-worker cancellation semantics and the daemon API are unchanged. The real-process characterization test confirms that the legacy ProcessTransport read loop currently swallows internal callback write failures and can return without a result. That broader behavior remains a separate follow-up; this PR changes no transport API or read-loop implementation.
  • Breaking changes / migration notes: no existing method signature changes. The response model adds an optional error accessor supporting the protocol's string or structured error value.

Linked Issues

Refs #8835, specifically java-session-control-request-fallback-response-dropped-by-cli.

The separate transport limitation is tracked under java-runnable-runandwait-swallows-timeout.

中文说明

此 PR 的改动

当旧版 Java SDK 的控制请求回调抛错、超时、返回 null 或空封装、遗漏或错用收到的请求编号、使用未知响应子类型,或返回缺少实际内容的成功响应时,发送能够关联原请求的错误响应。回包包含收到的请求编号、错误子类型和错误值。有效的成功响应,以及不含成功内容的有效错误响应,仍原样发送。

为什么需要

原兜底逻辑可能只序列化 {"type":"control_response"},CLI 的实际消息识别函数会因缺少 response 拒绝它。已经初始化但内容为空的内层封装是另一种情况:{"type":"control_response","response":{"subtype":"success"}} 带有默认成功子类型,却没有请求编号和实际内容。仅检查外层响应是否存在,无法防住这种空封装、错误编号和缺少内容的成功响应。

缺少编号会让原请求继续等待;错用编号可能结束另一个待处理请求;没有内容的成功响应可能让请求在缺少所需结果时被错误完成。本次修复在写入前校验关联关系、success / error 封闭子类型集合和成功内容,将这些无效回调结果转换为针对原请求的可用错误封装。响应模型同时补充协议中的可选错误字段。

非预期的宿主回调异常只移除异步执行封装及 SDK 加入的一层包装,然后报告宿主 handler 自身抛出的异常类型;不继续剥离 handler 自己的异常及其 cause。宿主异常文本和完整原因链保留在 SDK 日志。固定的两层解包也避免遍历宿主的循环 cause 链。外层回调超时明确写出配置的预算。受控的校验错误保留必要诊断,包括期望及实际返回的请求编号。

默认消费者有两层超时。内层权限回调超时会记日志,并返回带默认拒绝行为的普通成功封装;内层其他控制回调超时返回带空但非 null 内容的成功封装。这两类内层兜底都不发送超时错误。只有外层控制请求等待到期才产生关联超时错误。默认外层期限为 180 秒,内层为 60 秒;外层 timeout 方法返回 null 时,Session 使用自身 60 秒兜底。

CLI 的期限取决于请求路径:leader 和 workflow 的工具审批默认 60 秒,可配置覆盖;teammate 审批使用通用 30 秒期限。外层 SDK 期限应小于所服务路径中最短的 CLI 期限,并留出传输时间。内层先于外层到期时发送原有兜底回包;外层先到期则产生错误,并可能丢弃内层稍后给出的授权。本次修改保留已有默认超时和兜底策略。

审阅者验证计划

如何验证

  1. 向 Java Session 输入带已知请求编号的控制请求,让回调抛错、返回 null、返回空封装、遗漏编号、错用另一个请求的编号、返回未知子类型,或返回没有实际内容的成功响应。确认只发送一条关联原请求的错误。
  2. 将输出 JSON 交给真实 CLI ControlDispatcher,同时登记原请求和一个无关的待处理请求。确认无效回调结果拒绝原请求,并让无关请求保持等待;有效成功和有效错误仍按原有方式结束原请求。
  3. 将 SDK 回调超时刻意设短并让回调超过该期限,确认关联错误明确说明该超时预算,且 Session 继续读取本轮结果。这验证的是已配置的超时路径,不是 SDK 与 CLI 默认超时的先后顺序。
  4. 运行真实 ProcessTransport 子进程夹具,在控制回调中关闭输入 writer,确认现有读取循环的行为:sendPrompt 正常返回,但没有消费结果。这记录单独跟踪的异步等待限制,不宣称写入异常已能够向外传播。
  5. 从反序列化后的请求取得成功响应编号,确认输出回包保持成功且编号等于输入编号。移除 request_id 注解后,该测试必须失败。
  6. 使用 SDK 实际的简单消费者,不重写控制请求 handler。确认权限及其他控制回包经过 Session 校验后仍包含输入编号、success 子类型和非 null 内容。内层权限超时保留拒绝兜底;内层其他控制超时保留空成功内容;让外层先到期则应发送错误。
  7. 让 handler 抛出两个 RuntimeException 组成的 cause 环,确认发送一条关联错误、消费结果并结束读取线程。测试 transport 必须在回调返回 true 时停止,让继续读取断言符合真实传输契约。
  8. 让宿主回调抛出带 IllegalStateException 原因的 RuntimeException,确认关联错误报告 RuntimeException、不含任一私有异常文本,并继续消费结果。特定的 IllegalStateException handler 仍报告 IllegalStateException;外层等待到期仍报告配置的超时预算。

前一提交 839d8cd3298121b6e6b4b050a69b5a62efaed86b 的原生 Linux 验证报告 449 项测试、0 失败、0 错误、9 项条件跳过(440 项实际执行通过),Checkstyle 零违规,打包成功。该提交的控制请求定向套件通过 20 项测试;Java 11 release 编译目标保持不变。

前一轮托管验证已针对精确提交 839d8cd3298121b6e6b4b050a69b5a62efaed86b通过。Java 任务在 Linux、Temurin 21.0.13 和 Maven 3.9.15 下通过:449 项测试、0 失败、0 错误、9 跳过(440 项实际执行通过),Checkstyle 零违规,打包成功;其中控制请求套件 20/20 通过。独立的 Node.js 22.23.4 任务完成全仓构建、全部 workspace/integration 类型检查、README 格式和源码未改动检查,均通过。 九项 Java 条件跳过仍是一项 Windows 平台测试和八项 daemon / managed-runtime 端到端测试。这是 fork 验证,上游工作流授权仍独立处理。

当前两文件跟进的精确提交为 7408a7fe20febe0f1d2f4cc2316a62eb82921234:托管 Java 验证已在 Linux、Temurin 21.0.13 和 Maven 3.9.15 下通过:报告 450 项测试,441 项实际执行通过,9 项条件跳过,0 失败、0 错误;Checkstyle 零违规,打包成功。控制请求套件 21/21 通过,Java 11 release 目标保持不变。托管反例仅恢复前一版 Session 源码并保留新增回归,恰好产生 1 项直接断言失败、0 错误、0 跳过;恢复精确候选后控制套件重新 21/21 通过,源码保持干净。独立 workspace 验证已在 Node.js 22.23.4、pnpm 11.24.0 下通过锁定依赖安装、全仓构建、全部 workspace/integration 类型检查和源码未改动检查。

修改前后证据

此前的线协议验证使用独立 Java 夹具,在受控内存传输上运行真实 Session 回调分发及序列化,再将输出 JSON 交给真实 TypeScript CLI 的 isControlResponse 和 ControlDispatcher.handleControlResponse;两个待处理请求通过真实 registry 登记。

回调响应 本轮跟进前 修改后
缺少请求编号 原请求继续等待 原请求收到关联错误,无关请求继续等待
请求编号错误 原请求继续等待,无关请求可能被错误完成 原请求被拒绝,无关请求继续等待
成功响应缺少实际内容 原请求在没有所需内容时被完成 原请求收到关联错误
有效成功响应 原请求取得权限响应内容 保持相同成功响应
有效错误响应,不含成功内容 原请求收到回调提供的错误 保持相同错误

相同五项夹具在修改前为 三项失败、两项对照通过,修改后 五项全部通过。此前针对抛错、null 和成功回调的三项夹具,在初次修复后也全部通过;此前夹具验证的是实际序列化形状和 CLI 识别函数接受情况。两套夹具均不宣称另行计时了 60 秒卡顿或运行了真实模型。

此前针对 d4c3989 的六项独立原生 probe 得到 四项对照通过、两项直接断言失败:夹具在要求停止后继续调用;两个异常构成的 cause 环使读取线程持续运行且没有回包。该轮相同 probe 在 839d8cd 上 6/6 通过:停止信号后只调用一次;循环异常后读取线程终止、发送一条关联错误并消费结果。真实默认 producer、内层权限拒绝、内层其他控制空内容,以及外层超时对照均保留原行为。

前一轮的五项临时变异每项均恰好触发一个目标断言失败,且没有测试 error:移除 cause 遍历上限、遗漏权限 producer 的请求编号、遗漏其内容、移除隐式 success 子类型、或在控制请求后提前停止读取。该轮所有源文件均已恢复并与 839d8cd 的 blob 一致。恢复后的定向套件报告 23 项测试、0 失败、0 错误、1 项 Windows 平台跳过(22 项实际执行通过)。

针对本轮包装边界回归,新增的维护测试在未修改的 839d8cd 上恰好产生一个直接断言失败:期望 RuntimeException,实际为 IllegalStateException。修复后 21 项控制请求测试全部通过,其中包括真实默认 producer、内层兜底、外层超时和循环 cause 对照。仅恢复旧 Session 源码、保留候选测试后,同一用例再次单独失败;恢复候选后控制套件重新 21/21 通过。最初合并运行控制请求和 ProcessTransport 套件报告 24 项测试、23 项实际执行通过、1 项 Windows 条件跳过,0 失败、0 错误。原封不动的两项独立原生 probe 从 839d8cd 上的一项直接断言失败、一项对照通过,变为候选上的 2/2 通过,0 错误、0 跳过;它经真实 Session 检查序列化后的异常类型、请求关联及继续消费结果。

测试平台

系统 状态
🍏 macOS ⚠️ 未测试
🪟 Windows ⚠️ 未测试
🐧 Linux ✅ 已测试

环境

本次原生 Java 验证使用 Zulu JDK 21.0.13、Maven 3.9.15,保留模块的 --release 11 编译目标。此前的真实 CLI 消费方夹具使用 Node.js v24.22.1。测试使用隔离临时文件、受控传输及模块内 HTTP 夹具,未启用真实提供方集成。

风险与范围

  • 主要风险或取舍:无效回调响应现在明确拒绝仍在等待的原控制请求。有效响应的序列化保持不变,包括不含成功内容的错误响应。
  • 未验证或范围外:真实 CLI/模型集成、回调工作线程取消语义以及 daemon API 不在改动范围。真实进程特征测试确认,旧版 ProcessTransport 读取循环目前会吞掉内部回调写入异常,并可能在没有消费结果时正常返回。该较广的行为单独跟进,本 PR 不改变 transport API 或读取循环实现。
  • 破坏性变更或迁移:不改变现有方法签名。响应模型增加可选错误访问器,支持协议规定的字符串或结构化错误值。

关联问题

关联 #8835 中的 java-session-control-request-fallback-response-dropped-by-cli 条目。

独立的传输层限制由 java-runnable-runandwait-swallows-timeout 条目跟踪。

@qwen-code-review-bot

qwen-code-review-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Qwen Triage finished — view run. See the stage comments in this thread for the result.

✅ Qwen Triage 已完成 —— 查看运行。结果见本线程中的各阶段评论。

@qwen-code-review-bot

Copy link
Copy Markdown
Collaborator

Thanks for the PR — the description matches what the diff actually does, which is not a given.

Template looks good ✓ (all required sections, plus a complete Chinese translation).

Problem: real and statically provable, not theoretical hardening. I walked the chain on main instead of taking the description's word for it: MessageBase.toString() is a plain JSON.toJSONString(this) with no WriteNulls, so the old fallback new CLIControlResponse<>() genuinely serializes to {"type":"control_response"} with no response key. The CLI's guard requires 'response' in msg (packages/cli/src/nonInteractive/types.ts:610), so the frame falls through to the session loop's "Unknown message type" branch and the pending can_use_tool request waits out its own 60 s timeout (DEFAULT_CAN_USE_TOOL_TIMEOUT_MS). Traced back to the open hygiene report #8835.

Direction: aligned. The Python SDK already emits exactly this frame (packages/sdk-python/src/qwen_code_sdk/query.py:452), so this is Java catching up to an existing cross-SDK convention rather than inventing one, and the reference CHANGELOG shows control-request/response correlation being fixed repeatedly upstream — the area is treated as load-bearing. One honest question for the maintainer, not a blocker: the module's own QWEN.md describes com.alibaba.qwen.code.cli as the experimental stdio API kept for source compatibility, with the daemon transport as the recommended surface. Is the legacy surface still in scope for fixes, or intentionally frozen?

Size: Stage 0 not applicable — no core paths, single package, no cross-package reach. 38 production lines (24 response model, 10 session, 4 README) against 195 test lines.

Approach: minimal, and close to what I'd have written from the description alone before looking at the diff. Reading request_id off the raw JSONObject rather than the parsed request is the right call — it still works when deserialization itself is what threw. Two small things worth a thought, neither blocking: the new null/empty-envelope guard raises an IllegalStateException inside the same try purely to reach the catch, so a handler that returns nothing now logs a synthetic ERROR stack trace; and SessionExample.onControlRequest — the pattern the SDK's own example teaches — returns a bare new CLIControlResponse<>(), which from this PR on always produces an error frame. That is arguably the correct answer, but the example may deserve a follow-up.

Risk: no high-risk path match. The real risk here is evidentiary rather than structural: no CI has run on this head at all. Details in the code-review comment.

Moving on to code review. 🔍

中文说明

感谢贡献!PR 描述与实际 diff 一致,这点很难得。

模板完整 ✓(必需章节齐全,并有完整的中文翻译)。

问题: 真实存在且可静态证明,不是理论性加固。我在 main 上自己走了一遍链路,而不是照抄描述:MessageBase.toString() 就是普通的 JSON.toJSONString(this),没有开启 WriteNulls,所以原来的兜底 new CLIControlResponse<>() 确实会序列化成不带 response 键的 {"type":"control_response"}。CLI 的识别函数要求 'response' in msg(packages/cli/src/nonInteractive/types.ts:610),因此这一帧会落到会话循环的 "Unknown message type" 分支,等待中的 can_use_tool 请求只能耗完自己的 60 秒超时(DEFAULT_CAN_USE_TOOL_TIMEOUT_MS)。来源可追溯到仍处于 open 状态的巡检报告 #8835。

方向: 对齐。Python SDK 已经发送完全相同的帧(packages/sdk-python/src/qwen_code_sdk/query.py:452),所以这是 Java 向既有跨 SDK 约定看齐,而不是自创一套;参考 CHANGELOG 中上游也多次修复控制请求/响应的关联问题,说明这一块被视为关键路径。有一个想请维护者判断的问题(不是阻塞项):模块自己的 QWEN.md 把 com.alibaba.qwen.code.cli 描述为"为源码兼容而保留的实验性 stdio API",推荐接口是 daemon transport。这个遗留接口是否仍在修复范围内,还是已经有意冻结?

规模: Stage 0 不适用——未触及核心路径,单一 package,不跨包。生产代码 38 行(响应模型 24、session 10、README 4),测试 195 行。

方案: 改动最小,和我在看 diff 之前仅凭描述想到的方案基本一致。从原始 JSONObject 取 request_id 而不是用解析后的对象是对的——反序列化本身抛错时依然可用。有两点小想法,都不阻塞:新增的 null/空封装校验是在同一个 try 里抛 IllegalStateException 来进入 catch,于是一个只是返回空的 handler 现在会打出一条合成的 ERROR 堆栈;另外 SDK 自带示例 SessionExample.onControlRequest 教的写法正是返回裸的 new CLIControlResponse<>(),本 PR 之后这种写法必然产生错误帧。这也许恰恰是正确答案,但示例可能值得后续跟进。

风险: 未命中高风险路径。这里真正的风险是证据层面而非结构层面:这个 head 上完全没有跑过 CI。详见代码审查评论。

进入代码审查 🔍

— Qwen Code · qwen3.8-max-2026-09-02

Reviewed at 53141e98e541633e36ecacb8ecf58935ccf51acb · re-run with @qwen-code /triage

@qwen-code-review-bot

Copy link
Copy Markdown
Collaborator

Code review

Before opening the diff I wrote down what I'd do from the title and the "Why it's needed" paragraph alone: funnel all four failure modes (throw / timeout / null / empty envelope) into one place, read the original request_id off the incoming frame, add the protocol's error field to the response model, and pin the emitted wire shape with a test over an in-memory transport. That is what this PR does, so I have no simpler alternative to argue for — the scope is right and there's nothing unrelated riding along.

What I could verify statically, I verified rather than assumed:

  • The frame the CLI receives is the frame the CLI understands. ControlDispatcher.handleControlResponse reads response.response.request_id, and for any non-success subtype reads response.error as a string or {message} — which is exactly the shape the new setError produces, and byte-for-byte the shape the Python SDK sends.
  • Failing fast is safe on the consumer side. All three sendControlRequest call sites in permissionController sit inside try/catch and turn a rejection into ToolConfirmationOutcome.Cancel with a message. So a rejected permission request degrades to a cancelled tool call with an explanation instead of an escaped rejection — the comments there say explicitly that an escaped rejection can take down an SDK session, and this path doesn't produce one.
  • Success frames are untouched. fastjson2 omits null fields by default and MessageBase.toString() enables no writer features, so the new error field disappears from every successful response. The test asserts that, and it matters: this is a published SDK.
  • The timeout path really reaches the new code. MyConcurrentUtils.runAndWait(Supplier, Timeout) rethrows TimeoutException rather than swallowing it (unlike its Runnable sibling), so the timeout case lands in the catch as claimed.
  • No existing test pinned the old behaviour. Nothing in SessionTest feeds an incoming control_request, so this branch had zero coverage before and nothing regresses by gaining it.
  • It compiles as written — controlResponse is definitely assigned on both the try and catch paths, and the chained setters on a ? extends ControlResponsePayload capture only take String/Object. I read this; I did not build it (see below).

No blocking issues. Three non-blocking notes:

  1. This is now the third hand-rolled Transport double in the same package (SessionTest already has TestTransport and FakeTransport, both private). Extracting one shared fixture would pay for itself the next time this branch is touched — not worth blocking on.
  2. setError(e.toString()) puts the Java class name on the wire, and for a callback that threw it will be java.util.concurrent.ExecutionException: java.lang.RuntimeException: <message> — that string ends up in the CLI's cancel message. The Python SDK sends a plain str(...). e.getMessage() with a fallback would read better on the other side of the process boundary.
  3. Using IllegalStateException as control flow means a handler that simply returns null logs a full synthetic stack at ERROR. A plain branch would keep the log honest.

The one thing the diff does not contain is the cross-language fixture the description's Before/After table rests on — the committed test asserts the envelope shape in Java, against its own expectations, and never reaches the real TypeScript guard. That is a gap in the evidence, not in the code; I closed it by reading main's guard and dispatcher instead.

sequenceDiagram
    participant P1 as CLI permission controller
    participant P2 as CLI ControlDispatcher
    participant P3 as Java Session
    participant P4 as SDK consumer callback
    P1->>P2: sendControlRequest (can_use_tool, request id 42)
    P2->>P3: control_request frame
    P3->>P4: onControlRequest
    P4-->>P3: throws, times out, or returns no envelope
    P3-->>P2: control_response, request id 42, subtype error, error text
    P2-->>P1: pending request rejected with that error
    P1->>P1: cancels the tool call with a message instead of waiting 60s
Loading

Testing

This was an unattended CI run, so I did not build, run, or execute anything from this PR — no mvn, no npm, no checkout of the branch. The evidence below is the PR's own CI state read through the API.

The headline is that there is no CI evidence for this head. All four pull_request-event workflow runs on 53141e98 completed as action_required, which is GitHub waiting for a maintainer to approve workflow runs for a first-time fork contributor — not a pass and not a failure. The Java lane that would actually exercise this change (Managed Agent gate → sdk-java.yml, which runs mvn test and mvn checkstyle:check across Java 11/17/21 and three OSes) is among them. The only checks that did execute are pull_request_target bot jobs.

So, explicitly:

  • not verified: compilation, the six new tests, the focused Session suites, the 434-test module run, and checkstyle — nothing executed them. The numbers in the PR description are the author's own report from their machine, attributed here as such, not as evidence.
  • not verified: that the emitted frame is accepted by the real TypeScript isControlResponse. The fixture that would show it is described in the PR body but not committed. My check of that link was a static read of main.
  • verified by reading, not running: the envelope shape, the CLI's consumer path, the unchanged success serialization, and the timeout propagation — all listed above.
Check Conclusion
Qwen Code CI (pull_request) action_required — awaiting maintainer approval, nothing ran
Managed Agent gate (pull_request, calls sdk-java.yml — the Maven + checkstyle lane for this change) action_required — awaiting maintainer approval, nothing ran
tui-parity (pull_request) action_required — awaiting maintainer approval, nothing ran
Managed Agent Reference Distribution (pull_request) action_required — awaiting maintainer approval, nothing ran
precheck-pr / precheck success
assign · label · authorize · delay-automatic-review success
review-pr · triage in_progress (bot jobs, this run)
verify · tmux-testing · publish-verify · publish-tmux · publish-resolution · resolve-pr · review-config · ack-review-request skipped (not triggered)

Sandboxed verification would settle the part static review cannot: @qwen-code /verify — that the frame this Java code emits is accepted by the real TypeScript isControlResponse and actually rejects the CLI's pending can_use_tool request is a cross-language wire claim, and the committed suite asserts the Java side against its own expectations rather than against the CLI. The author has read-only access, so this would be a sponsored run: a maintainer's @qwen-code /verify comment approves the head it was written against, and that run carries a pre-execution risk screen plus a full workspace wipe before any PR code executes. Read the resulting report with the same skepticism as the fork's own CI logs — the code under verification is adversarial input, and a crafted PR can shape what a report says even though the sandbox bounds what it can do. @qwen-code /tmux is not applicable here: there is no TUI surface, and the author cannot trigger it.

中文说明

代码审查。 在看 diff 之前,我仅凭标题和"为什么需要"写下了自己的方案:把四种失败情况(抛错/超时/返回 null/返回空封装)汇聚到一处,从收到的帧里取原始 request_id,给响应模型补上协议里的 error 字段,再用内存传输把实际线上形状钉住。这正是本 PR 的做法,所以我没有更简单的替代方案可提——范围合适,也没夹带无关改动。

凡是能静态确认的,我都自己确认过,而不是照单接受:

  • CLI 收到的帧就是 CLI 能识别的帧。 ControlDispatcher.handleControlResponse 读取 response.response.request_id,对非 success 子类型则把 response.error 当字符串或 {message} 读——正是新增 setError 产出的形状,也与 Python SDK 发送的完全一致。
  • 快速失败在消费方是安全的。 permissionController 里三处 sendControlRequest 都在 try/catch 内,失败会转成带说明的 ToolConfirmationOutcome.Cancel。那里的注释明确说逃逸的 rejection 可能拖垮整个 SDK 会话,而这条路径不会产生逃逸。
  • 成功帧未受影响。 fastjson2 默认忽略 null 字段,MessageBase.toString() 也没开启任何 writer 特性,因此新增的 error 字段在所有成功响应里都不会出现。测试断言了这一点,而这在一个已发布的 SDK 上很重要。
  • 超时路径确实会走到新代码。 MyConcurrentUtils.runAndWait(Supplier, Timeout) 会重新抛出 TimeoutException(与其 Runnable 版本不同),所以超时场景如描述那样进入 catch。
  • 没有既有测试依赖旧行为。 SessionTest 里没有任何用例输入 control_request,也就是说这个分支此前完全没有覆盖,新增覆盖不会造成回归。
  • 按 Java 语义可以编译通过——controlResponse 在 try 与 catch 两条路径上都已确定赋值,通配符捕获上的链式 setter 只接受 String/Object。这是我读出来的结论,不是我构建出来的(见下)。

没有阻塞性问题。三条非阻塞意见:

  1. 同一个包里现在有三个手写的 Transport 测试替身(SessionTest 已有 TestTransport 和 FakeTransport,都是私有的)。抽出一个共享夹具,下次再动这个分支就值回成本——但不至于阻塞。
  2. setError(e.toString()) 会把 Java 类名带上线路;回调抛错时会是 java.util.concurrent.ExecutionException: java.lang.RuntimeException: <message>,而这个字符串最终出现在 CLI 的取消提示里。Python SDK 发的是朴素的 str(...)。改成带兜底的 e.getMessage(),在进程边界的另一侧会更好读。
  3. 用 IllegalStateException 做控制流,意味着一个仅仅返回 null 的 handler 也会打出一条完整的合成 ERROR 堆栈。改成普通分支能让日志更诚实。

diff 里唯一缺的,是描述中 Before/After 表格所依赖的跨语言夹具——已提交的测试只在 Java 侧按自己的预期断言封装形状,从未触及真实的 TypeScript 识别函数。这是证据的缺口,不是代码的缺口;我改为通读 main 上的识别函数与分发器来补上这一环。

上面的时序图展示了关联链路:CLI 发出带请求编号的控制请求,Java 回调失败,Session 回送携带同一编号的错误帧,CLI 据此立刻拒绝待处理请求并取消工具调用,而不是等满 60 秒。

测试。 本次为无人值守 CI 运行,因此我没有构建、运行或执行本 PR 的任何代码——没有 mvn,没有 npm,也没有检出该分支。以下证据是通过 API 读取的 PR 自身 CI 状态。

结论是:这个 head 没有任何 CI 证据。 53141e98 上四个 pull_request 事件的工作流全部以 action_required 结束,这是 GitHub 在等维护者批准首次贡献的 fork PR 运行工作流,既不是通过也不是失败。真正会验证本次改动的 Java 通道(Managed Agent gate → sdk-java.yml,在 Java 11/17/21 与三个操作系统上跑 mvn test 和 mvn checkstyle:check)正在其中。唯一真正执行过的只有 pull_request_target 的机器人任务。

因此明确说明:

  • 未验证: 编译、六项新测试、定向 Session 套件、434 项模块测试以及 checkstyle——没有任何一方执行过。PR 描述中的这些数字是作者在本机的自述,此处按自述引用,不作为证据。
  • 未验证: 该帧是否被真实的 TypeScript isControlResponse 接受。能证明这一点的夹具写在描述里,但没有提交。我对这一环的确认是对 main 的静态阅读。
  • 通过阅读而非运行确认: 封装形状、CLI 消费路径、成功响应序列化不变、超时传播——即上文列出的各项。

沙箱验证能解决静态审查解决不了的部分:@qwen-code /verify——"这段 Java 代码发出的帧会被真实的 TypeScript isControlResponse 接受,并确实拒绝 CLI 待处理的 can_use_tool 请求"是一个跨语言的线路层断言,而已提交的测试只是让 Java 侧对着自己的预期做断言,并未对着 CLI 断言。作者只有读权限,因此这将是一次受赞助的运行:由维护者发出 @qwen-code /verify 评论来批准其所针对的 head,该运行在执行任何 PR 代码之前还带有执行前风险筛查与完整工作区清理。请以与 fork 自身 CI 日志同等的怀疑态度阅读其报告——被验证的代码是对抗性输入,精心构造的 PR 可以影响报告"说什么",尽管沙箱限定了它"能做什么"。此处不适用 @qwen-code /tmux:没有 TUI 界面,且作者无法触发。

— Qwen Code · qwen3.8-max-2026-09-02

Reviewed at 53141e98e541633e36ecacb8ecf58935ccf51acb · re-run with @qwen-code /triage

@qwen-code-review-bot

Copy link
Copy Markdown
Collaborator

Confidence: 3/5 — the code review came back clean and I'd be comfortable maintaining this, but nothing has actually executed: every CI lane on this head is action_required, so the change is unproven rather than proven-good, and that gap is not mine to close.

Stepping back. The problem is real, and I confirmed it independently instead of inheriting the PR's framing — the old fallback could never have been accepted by the CLI's guard, so any handler failure left a permission request hanging for a full minute. The fix is the smallest correct one: it mirrors the frame the Python SDK already sends, adds the error field the protocol already defines but the Java model was missing, and reads the correlation id off the raw JSON so it survives a parse failure. It matches the proposal I wrote before reading the diff, which is usually a good sign — I had no simpler path to argue for. Reading the CLI's consumer side is what moved me from "plausible" to "correct": a rejected control request becomes a cancelled tool call with a message, and the code there is explicit that an escaped rejection would be much worse, so failing fast is the safe direction, not a new hazard.

Six months from now this reads fine. The three notes in the review are cosmetic — a duplicated test double, a verbose error string on the wire, a synthetic ERROR log for a benign null. None of them is worth a review round.

What stops me approving is evidentiary, not substantive. main requires two approvals, and one of them would be mine attesting that this builds and its tests pass — on a Java change that adds a chained call through a wildcard capture and a definitely-assigned local, where I have read the language rules but no compiler has. The Maven lane that would settle it in about ten minutes is sitting at action_required waiting for a maintainer click, and the cross-language claim at the heart of the PR is backed in the description by a fixture that isn't in the diff. Approving now would spend a required approval on an unexecuted change; that's exactly the silent failure mode this gate should refuse. There's also a direction question only a maintainer can answer: the module's own QWEN.md calls this surface experimental and kept for source compatibility, so whether it should still receive fixes is a product call, not a code call.

So: no approval and no request-changes in this run — the code doesn't warrant the latter, and the evidence doesn't yet support the former. Deferring with both questions named. Once CI has run green on this head, a re-run of /triage should land on approve unless the results say otherwise.

中文说明

置信度:3/5 —— 代码审查结果是干净的,这份代码交由我维护我没有意见;但实际上一切都还没有执行过:这个 head 上所有 CI 通道都是 action_required,所以本次改动是"尚未被证明",而不是"已被证明良好",而这个缺口不是我能补上的。

退一步看整体。问题是真实的,而且我是自己独立确认的,没有直接沿用 PR 的叙述——旧的兜底帧不可能被 CLI 的识别函数接受,因此任何 handler 失败都会让一次权限请求整整挂起一分钟。修复是最小的正确解:它与 Python SDK 已经在发送的帧一致,补上了协议早已定义、而 Java 模型缺失的 error 字段,并从原始 JSON 读取关联编号,因此在解析失败时依然可用。它和我在看 diff 之前写下的方案一致,这通常是个好信号——我没有更简单的路径可提。真正让我从"看起来合理"变成"确认正确"的,是读 CLI 的消费侧:被拒绝的控制请求会转成带说明的工具调用取消,而那里的代码明确写着逃逸的 rejection 后果严重得多,所以快速失败是安全方向,而不是新增风险。

半年后再看这份代码不会让人难受。审查中的三条意见都属于表面问题——重复的测试替身、线路上偏冗长的错误字符串、为一个无害的 null 打出合成 ERROR 日志。没有一条值得为它多开一轮 review。

阻止我批准的是证据层面,不是实质层面。main 需要两个批准,其中一个是我的,而那等于在担保"它能构建、它的测试通过"——可这是一个 Java 改动,新增了穿过通配符捕获的链式调用和一个需确定赋值的局部变量,我读过了语言规则,但没有任何编译器读过。本该在十分钟内给出结论的 Maven 通道正停在 action_required,等维护者点一下;而本 PR 核心的跨语言断言,在描述里由一个并未包含在 diff 中的夹具支撑。此刻批准,等于把一次必需的批准花在未经执行的改动上;这正是这道闸门应当拒绝的静默失败模式。另外还有一个只有维护者能回答的方向问题:模块自己的 QWEN.md 称该接口是实验性的、仅为源码兼容而保留,因此它是否还应继续接受修复是产品判断,不是代码判断。

所以:本轮既不批准,也不要求修改——代码不足以支持后者,证据还不足以支持前者。两个问题都已点名,转交维护者。一旦 CI 在这个 head 上跑绿,重新运行 /triage 应当给出批准,除非结果另有说明。

— Qwen Code · qwen3.8-max-2026-09-02

Reviewed at 53141e98e541633e36ecacb8ecf58935ccf51acb · re-run with @qwen-code /triage

@qwen-code-review-bot

Copy link
Copy Markdown
Collaborator

⏸️ Deferring to the maintainers — needs a human call on this one.

Escalating this one rather than approving or rejecting it. The code review itself found no blockers — the fix is minimal, mirrors the frame the Python SDK already sends, and I traced the CLI's consumer side to confirm a rejected control request becomes a cancelled tool call with a message rather than an escaped rejection. Two things I cannot resolve from the diff, the tests, and the PR description:

  1. No CI has run on this head. All four pull_request workflow runs on 53141e98e541633e36ecacb8ecf58935ccf51acb completed as action_required, so the Java lane that would compile this and run the six new tests plus checkstyle (Managed Agent gate → sdk-java.yml) has never executed. The 434-test / zero-failure / clean-checkstyle figures in the description are the author's own local report. Approving would spend one of main's two required approvals on a change no compiler has seen. Needs a maintainer to approve the workflow run; a /triage re-run after it goes green should land on approve.

  2. Is the legacy stdio surface still in scope for fixes? packages/sdk-java/qwencode/QWEN.md describes com.alibaba.qwen.code.cli as the experimental stdio API kept for source compatibility, with the daemon transport as the recommended one. This is a genuine protocol-conformance bug in a published alpha artifact (a failed permission callback hangs the CLI's can_use_tool request for 60 s), so fixing it looks worthwhile — but whether a deliberately legacy surface should still receive changes is a product call, not a code call.

Optional, and only if you want the cross-language claim proven rather than read: @qwen-code /verify as a sponsored run. The PR's central claim is that the frame this Java code emits is accepted by the real TypeScript isControlResponse and settles the CLI's pending request; the committed suite asserts the Java side against its own expectations, and the fixture described in the PR body's Before/After table is not in the diff. The author has read-only access, so a maintainer's /verify comment would sponsor it (pre-execution risk screen plus a full workspace wipe before any PR code runs) — read the resulting report with the same skepticism as the fork's own CI logs.

Non-blocking notes from the review are in the Stage 2 comment: a third hand-rolled Transport test double in the same package, e.toString() putting java.util.concurrent.ExecutionException: java.lang.RuntimeException: ... into the CLI's user-visible cancel message, and a synthetic ERROR stack logged when a handler merely returns null.


这个 PR 我不批准也不打回,而是转交维护者。代码审查本身没有发现阻塞项——修复是最小的,与 Python SDK 已经在发送的帧一致,我也追到了 CLI 的消费侧,确认被拒绝的控制请求会转成带说明的工具调用取消,而不是逃逸的 rejection。有两点我无法从 diff、测试和 PR 描述中解决:

  1. 这个 head 上没有跑过任何 CI。 53141e98e541633e36ecacb8ecf58935ccf51acb 上四个 pull_request 工作流全部以 action_required 结束,因此本该编译本次改动、运行六项新测试和 checkstyle 的 Java 通道(Managed Agent gate → sdk-java.yml)从未执行。描述中 434 项测试/零失败/checkstyle 零违规的数字是作者本地的自述。此刻批准,等于把 main 所需两个批准中的一个,花在一个没有任何编译器看过的改动上。需要维护者批准工作流运行;跑绿之后重新 /triage 应当给出批准。

  2. 遗留 stdio 接口是否仍在修复范围内? packages/sdk-java/qwencode/QWEN.md 把 com.alibaba.qwen.code.cli 描述为仅为源码兼容保留的实验性 stdio API,推荐接口是 daemon transport。这是一个已发布 alpha 制品中真实的协议一致性缺陷(权限回调失败会让 CLI 的 can_use_tool 请求挂起 60 秒),所以修它看起来是值得的——但一个被有意标记为遗留的接口是否还应继续接受改动,是产品判断,不是代码判断。

可选项,且仅在你希望把跨语言断言"证明出来"而不是"读出来"时:以受赞助方式运行 @qwen-code /verify。本 PR 的核心断言是这段 Java 代码发出的帧会被真实的 TypeScript isControlResponse 接受,并结束 CLI 的待处理请求;而已提交的测试只是让 Java 侧对着自己的预期断言,PR 描述 Before/After 表格所依赖的夹具并不在 diff 中。作者只有读权限,因此需要维护者的 /verify 评论来赞助(在执行任何 PR 代码之前带有执行前风险筛查与完整工作区清理)——请以与 fork 自身 CI 日志同等的怀疑态度阅读其报告。

审查中的非阻塞意见在 Stage 2 评论里:同包内第三个手写 Transport 测试替身、e.toString() 会把 java.util.concurrent.ExecutionException: java.lang.RuntimeException: ... 带进 CLI 面向用户的取消提示、以及 handler 仅返回 null 时会打出一条合成的 ERROR 堆栈。

@qwen-code-review-bot qwen-code-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Suggestions are inline.

Not explored to full depth (tool budget reached): "agent reverse-audit (round 3)": did not compile or javap any class (shared worktree, mvn /in-place build forbidden by the brief), so the JVM walk above rests on the source shapes and call f…; "agent 1c": none — I stopped with the walk complete..

中文说明

已审查。 建议见行内评论。

未探索到全部深度(达到工具调用预算):"agent reverse-audit (round 3)":did not compile or javap any class (shared worktree, mvn /in-place build forbidden by the brief), so the JVM walk above rests on the source shapes and call f…;"agent 1c":none — I stopped with the walk complete.。

— deepseek-v4.1-flash-1017 via Qwen Code /review (v0.27.2)

@qwen-code-review-bot qwen-code-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no blockers. Suggestions are inline.

中文说明

已审查——无阻断问题。 建议见行内评论。

— deepseek-v4.1-flash-1017@1f214e4e via Qwen Code /review (v0.27.2)

Comment thread packages/sdk-java/qwencode/README.md Resolved

@qwen-code-review-bot qwen-code-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Suggestions are inline.

Not explored to full depth (tool budget reached): "agent reverse-audit (round 3)": did not compile and run the two changed test files (needs a maven build in the shared worktree), so their compile/pass status is inferred from source reading, n…; "agent reverse-audit (round 3)": did not execute a live CLI session to re-derive the 60-second/30-second budgets at runtime; those figures come from reading permissionController.ts:42 , baseC….

Convergence: round 3 posted 4 inline comment(s), 4 of them reported for the first time; the previous round posted 6 (4 new). Findings keep coming back to the same files: packages/sdk-java/qwencode/src/test/java/com/alibaba/qwen/code/cli/session/SessionControlRequestTest.java (findings in round 1; 2 more now); packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java (findings in rounds 1, 2; 1 more now); packages/sdk-java/qwencode/README.md (findings in round 1; 1 more now). The rate of new findings is not falling. A cluster that keeps producing siblings usually means the fixes are treating instances of a shared root cause — triaging that cause before the next round, or splitting an independent cluster into its own pull request, tends to end the loop faster than fixing them one at a time. Batching the remaining fixes and verifying them before the next push, or dropping this PR's reviews to --severity-floor critical, keeps the loop from re-deriving the same set. No Critical finding is open on this round, so merging and moving the remaining Suggestion threads to a follow-up issue is available as an ending — a merged pull request cannot diverge further. (Observation only — nothing was withheld from this review because of this observation.)

中文说明

已审查。 建议见行内评论。

未探索到全部深度(达到工具调用预算):"agent reverse-audit (round 3)":did not compile and run the two changed test files (needs a maven build in the shared worktree), so their compile/pass status is inferred from source reading, n…;"agent reverse-audit (round 3)":did not execute a live CLI session to re-derive the 60-second/30-second budgets at runtime; those figures come from reading permissionController.ts:42 , baseC…。

收敛情况:第 3 轮发布了 4 条行内评论,其中 4 条是首次提出;上一轮发布了 6 条(其中 4 条首次提出)。发现反复回到同一批文件:packages/sdk-java/qwencode/src/test/java/com/alibaba/qwen/code/cli/session/SessionControlRequestTest.java(第 1 轮已出过发现,本轮又有 2 条);packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java(第 1、2 轮已出过发现,本轮又有 1 条);packages/sdk-java/qwencode/README.md(第 1 轮已出过发现,本轮又有 1 条)。新发现的产出速度没有下降。一个不断再生兄弟发现的簇,通常意味着逐条修复只在处理同一根因的实例——先定位并处理该根因,或把独立的簇拆成单独的 PR,通常比逐条修复更快结束循环。把剩余修复攒成一批、验证后再推送,或将本 PR 的评审降到 --severity-floor critical,可以避免循环反复推导同一组发现。本轮没有未决的 Critical,因此"合入后把剩余 Suggestion 线程转到后续 issue"是一个可选的结束方式——已合入的 PR 不会继续发散。(仅为观察——本轮评审未因此扣留任何内容。)

— deepseek-v4.1-flash-1017 via Qwen Code /review (v0.27.2)

Comment thread packages/sdk-java/qwencode/README.md Resolved

@qwen-code-review-bot qwen-code-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no blockers. Suggestions are inline.

Deferred under the convergence posture (round 4, not a blocker) — recorded, not requested in this round:

  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/protocol/message/control/CLIControlResponse.java:137 — [review] setError leaves subtype at its default success, so an error-only envelope is rewritten and the consumer's mes…
  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:248 — [review] The documented null onControlRequestTimeout fallback to the session's 60 seconds is exercised by no test

Convergence: round 4 posted 1 inline comment(s), 1 of them reported for the first time; the previous round posted 4 (4 new). Findings keep coming back to the same files: packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java (findings in round 3; 1 more now). A cluster that keeps producing siblings usually means the fixes are treating instances of a shared root cause — triaging that cause before the next round, or splitting an independent cluster into its own pull request, tends to end the loop faster than fixing them one at a time. (Observation only — nothing was withheld from this review because of this observation.)

中文说明

已审查——无阻断问题。 建议见行内评论。

收敛姿态下延后(第 4 轮,非阻断)——已记录,本轮不要求修改:共 2 条(原文未翻译,列表见上方英文部分)。

收敛情况:第 4 轮发布了 1 条行内评论,其中 1 条是首次提出;上一轮发布了 4 条(其中 4 条首次提出)。发现反复回到同一批文件:packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java(第 3 轮已出过发现,本轮又有 1 条)。一个不断再生兄弟发现的簇,通常意味着逐条修复只在处理同一根因的实例——先定位并处理该根因,或把独立的簇拆成单独的 PR,通常比逐条修复更快结束循环。(仅为观察——本轮评审未因此扣留任何内容。)

— deepseek-v4.1-flash-1017 via Qwen Code /review (v0.27.2)

@qwen-code-review-bot qwen-code-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. Suggestions are inline.

Not explored to full depth (tool budget reached): "agent reverse-audit (round 7)": no javac/javap bytecode measurement of the grown sendPrompt consumer lambda — target/classes exists in the tree but assembling the fastjson2/slf4j/commons-l….

Deferred under the convergence posture (round 5, not a blocker) — recorded, not requested in this round:

  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:264 — [review] timeout-provider and deserialization failures are reported as control-request handler failures
  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:262 — [review] an interrupted wait is reported as a handler failure and the interrupt flag is lost
  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:276 — [review] an error subtype carrying no error value is forwarded and the CLI rejects with "Unknown error"
  • packages/sdk-java/qwencode/src/test/java/com/alibaba/qwen/code/cli/session/SessionControlRequestTest.java:329 — [review] assertErrorResponse never checks that the rejected payload is dropped, so envelope reuse survives the suite
  • packages/sdk-java/qwencode/src/test/java/com/alibaba/qwen/code/cli/session/SessionControlRequestTest.java:98 — [review] three error-branch tests leave their CLI-visible message literals unpinned
  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:265 — [review] nothing pins that the SDK log keeps the throwable the wire text points at
  • packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java:264 — [review] getSimpleName() is empty for an anonymous throwable, so the wire error reads "failed ()"

Convergence: round 5 posted 1 inline comment(s), 1 of them reported for the first time; the previous round posted 1 (1 new). Findings keep coming back to the same files: packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java (findings in round 4; 1 more now). The rate of new findings is not falling. A cluster that keeps producing siblings usually means the fixes are treating instances of a shared root cause — triaging that cause before the next round, or splitting an independent cluster into its own pull request, tends to end the loop faster than fixing them one at a time. Batching the remaining fixes and verifying them before the next push, or dropping this PR's reviews to --severity-floor critical, keeps the loop from re-deriving the same set. (Observation only — nothing was withheld from this review because of this observation.)

中文说明

已审查。 建议见行内评论。

未探索到全部深度(达到工具调用预算):"agent reverse-audit (round 7)":no javac/javap bytecode measurement of the grown sendPrompt consumer lambda — target/classes exists in the tree but assembling the fastjson2/slf4j/commons-l…。

收敛姿态下延后(第 5 轮,非阻断)——已记录,本轮不要求修改:共 7 条(原文未翻译,列表见上方英文部分)。

收敛情况:第 5 轮发布了 1 条行内评论,其中 1 条是首次提出;上一轮发布了 1 条(其中 1 条首次提出)。发现反复回到同一批文件:packages/sdk-java/qwencode/src/main/java/com/alibaba/qwen/code/cli/session/Session.java(第 4 轮已出过发现,本轮又有 1 条)。新发现的产出速度没有下降。一个不断再生兄弟发现的簇,通常意味着逐条修复只在处理同一根因的实例——先定位并处理该根因,或把独立的簇拆成单独的 PR,通常比逐条修复更快结束循环。把剩余修复攒成一批、验证后再推送,或将本 PR 的评审降到 --severity-floor critical,可以避免循环反复推导同一组发现。(仅为观察——本轮评审未因此扣留任何内容。)

— deepseek-v4.1-flash-1017 via Qwen Code /review (v0.27.2)

@wenshao

wenshao commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

PR 17113 round 1 verification — Verdict: merge-ready — 202/202 scripted assertions passed, 0 failed. Verified head: 7408a7fe20febe0f1d2f4cc2316a62eb82921234. Base: 84b5b53f1738ef154bca3b3bd8bb40f4f3378510; trial merge with origin/main c56f3da576 was conflict-free and green. Review state: 0 open blocking threads of 16 (all resolved Suggestions), 0 standing change requests, 0 blocking threads left unmeasured. GitHub's reviewDecision is REVIEW_REQUIRED (no approving reviews yet), an approval gate rather than a verification blocker.

中文摘要

结论:merge-ready。 202 条脚本断言全部通过;Java SDK 的控制请求失败回包在 head 上成为 CLI 可识别、可关联原请求的 error,base 则留下无人接管的 pending 请求(缺 ID 时)或错误地结算另一条待处理请求(ID 错配时)。

A/B 表显示 15 个场景中 14 个的消费者可观察结果改变,31 个请求结算格中 15 个改变;唯一的对照格 valid-success 两臂完全一致。随 PR 的 21 条控制请求用例在 head 全绿,在上一 head 839d8cd 上恰好 1 条直接断言失败;13 个单点变异全部被杀。Java 11 release 目标、checkstyle、打包与试合并树均通过。

非阻塞发现一条(Low):onControlRequestTimeout 自身抛错时,异常被记成 "Control request handler failed",而 handler 并未执行;只影响诊断文案,不影响回包与请求结算。另一条为覆盖建议:随 PR 的套件未钉住"一次失败后继续处理第二个控制请求",本轮独立探针已覆盖并通过。

未覆盖:真实 CLI 进程/真实模型轮次、macOS/Windows、上游 Java CI 车道(该 workflow 不在 PR 上触发)、与 CLI 60s/30s 期限的真实计时竞态、ProcessTransport 异步读循环限制(PR 明确不在范围内)。详见下方 Not covered。

Scope

Central claim. When a custom SessionEventConsumers.onControlRequest callback throws, times out, returns null, returns an empty envelope, returns a missing or mismatched request ID, returns an unknown response subtype, or returns success without a payload, the Session sends exactly one control_response error correlated to the incoming request. The real CLI must accept that frame and reject the original pending request without settling an unrelated one. Valid success replies and valid error replies without a success payload must pass through unchanged.

Secondary claims. (1) The shipped simple consumers keep their two-layer fallback: an inner permission timeout returns the deny behavior, an inner other-control timeout returns an empty non-null payload, and only the outer wait expiring emits a timeout error. (2) The exception's reported type is the host handler's own type, its message stays in the SDK log rather than the wire, and a cyclic cause chain terminates.

A/B: load-bearing proof

The harness is an independent Java program compiled against each arm's production classes. It drives the real Session.sendPrompt through a Transport fixture, captures every inputNoWaitResponse frame, and records whether the turn's result was consumed. Each emitted frame is then fed into the real CLI guard and dispatcher: isControlResponse and ControlDispatcher.handleControlResponse from packages/cli/src/nonInteractive, whose two files are byte-identical between the PR tree and the trusted checkout (sha match for types.ts and ControlDispatcher.ts). Two pending requests are registered: the original permission-request-1 and an unrelated unrelated-request.

Every scenario emitted exactly one frame (two for the two-request scenario), the handler ran exactly once per request (twice for two requests), and the result line was consumed in every head cell.

# Scenario Base: original / unrelated Head: original / unrelated
1 handler throws IllegalStateException pending / pending rejected(failed (IllegalStateException)) / pending
2 handler throws RuntimeException(IllegalStateException) pending / pending rejected(failed (RuntimeException)) / pending
3 handler throws a two-node cyclic cause pending / pending rejected(failed (RuntimeException)), 25 ms / pending
4 handler returns null pending / pending rejected(returned no response) / pending
5 handler returns an empty envelope pending / pending rejected(returned no response) / pending
6 handler returns a missing request ID pending / pending rejected(uncorrelated … expected … got null) / pending
7 handler returns another request's ID pending / resolved(payload) rejected(uncorrelated … got unrelated-request) / pending
8 handler returns an unknown subtype rejected(Unknown error) / pending rejected(unknown response subtype) / pending
9 handler returns success without a payload resolved(no payload) / pending rejected(success without a response payload) / pending
10 valid success (control) resolved(payload) / pending resolved(payload) / pending
11 valid error with a string error rejected(Unknown error) / pending rejected(denied) / pending
12 valid error with a structured error rejected(Unknown error) / pending rejected(denied) / pending
13 handler exceeds the 20 ms outer budget pending / pending rejected(timed out after 20 milliseconds) / pending
14 first callback fails, second control request succeeds first pending, second resolved / pending first rejected(failed (IllegalStateException)), second resolved / pending
15 outer timeout, then the handler returns a valid success pending / pending; 0 late writes rejected(timed out after 20 milliseconds) / pending; 0 late writes

Labels: pending = still registered in the CLI's outgoing registry; resolved(payload) = the dispatcher resolved it with a non-null response payload; resolved(no payload) = response absent; rejected(...) = the dispatcher rejected it with the quoted error. Base cells are expected-red controls: they assert the bug the PR fixes, so a base cell that reproduces the bug is a passing assertion.

Counts: base arm 99/99, head arm 103/103, total 202/202. 14 of 15 scenarios change their consumer-visible outcome; 15 of 31 request-settlement cells change. The only unchanged scenario is the valid-success control (row 10). Row 7 is the sharpest base defect: a handler reply carrying another request's ID resolves that unrelated request in the CLI while the original stays pending.

Witness: 01-ab-base-vs-head.png (the settlement table above, captured from the round's harness output).

Counterfactual and mutation matrix

Previous-head counterfactual. The candidate suite was copied unchanged onto 839d8cd3298121b6e6b4b050a69b5a62efaed86b (the immediately preceding head) while only the candidate test file changed. Result: 21 tests, 1 failure, 0 errors, exactly the assertion the last commit targets:

preservesTheControlHandlerRuntimeExceptionType:61
expected: <Control request handler failed (RuntimeException); see SDK logs for details>
 but was: <Control request handler failed (IllegalStateException); see SDK logs for details>

With the candidate production code the same suite is 21/21. This reproduces the author's stated counterfactual on the exact commits.

Mutation matrix. Thirteen one-shot mutations were applied to the head Session.java, each asserted to match exactly once; the focused SessionControlRequestTest was rebuilt and run per mutant; the source was then restored and compared by SHA-256 with the pre-mutation file.

Mutant Result Witness
correlation check removed KILLED 3 failures (missing-ID / wrong-ID tests)
success-without-payload check removed KILLED 1 failure
unknown-subtype check removed KILLED 3 failures
empty-envelope check weakened to null-only KILLED 1 error (empty-envelope test)
ExecutionException unwrap removed KILLED 3 failures (type tests + cyclic)
TimeoutException classifier removed KILLED 2 failures
timeout message names the fallback budget KILLED 2 failures
error field left null KILLED 14 failures
error envelope subtype changed to success KILLED 14 failures
invalid-response replacement removed KILLED 9 failures + 5 errors
cause unwrap made unbounded KILLED cyclic test at 2.008 s (JUnit timeout) + type test
incoming request_id ignored KILLED 21 failures
handler message text changed (positive control) KILLED 3 exact-text failures

13/13 killed, 0 survived. Restore check: dd407d75268e980d1845b7891335ab2a86acbcfbe9883b93e261c537a363f35d, byte-identical to the pre-mutation head file. A survivor here would have meant a shipped guard was not pinned; none did.

Witness: 02-mutation-matrix.png (the matrix as printed).

Targeted gates

Gate Result
head mvn clean test (packages/sdk-java/qwencode) 450 run, 441 passed, 9 skipped, 0 failures, 0 errors
base mvn clean test at 84b5b53f 428 run, 419 passed, 9 skipped, 0 failures, 0 errors
trial-merge mvn clean test at 7408a7fe + origin/main c56f3da576 450 run, 441 passed, 9 skipped, 0 failures, 0 errors
head mvn checkstyle:check 0 violations, BUILD SUCCESS
base mvn checkstyle:check 0 violations, BUILD SUCCESS
head mvn -DskipTests package jar + sources jar built, BUILD SUCCESS
bytecode target javap -verbose major version 55 (Java 11 release)

The +22 head tests over base are exactly the 21 new SessionControlRequestTest cases plus one new ProcessTransportTest characterization case (base 2/1 skipped, head 3/1 skipped). The nine skips are the same Windows/daemon-conditional set on both arms.

Witness: 03-gate-counts.png (raw log lines for the counts above and the counterfactual).

Environment event, A/A-controlled. The first base full-suite run hit HostedHarnessPoolClientTest.explicitTlsContextAuthenticatesPeerAndKeepsHostnameVerification with HTTP connect timed out against its loopback TLS fixture (GET /capabilities transport failed). The focused class then passed 4/4 on both arms, and a full base rerun was green at 428/0/0. Head's full suite and the merge-tree suite were green in the same container. This is an environment flake, not a PR regression; the lost first-run coverage is fully recovered by the reruns.

Existing review findings

review-threads.json at the verified head: 16 threads, 0 unresolved, 0 blocking (every first comment is a [Suggestion] from qwen-code-review-bot, COLLABORATOR), 0 standing CHANGES_REQUESTED reviews. No blocking thread was left unmeasured because none exists. The notable resolved Suggestions were re-checked against the head, not taken on trust:

Thread Claim Status at head
R1-4 the "unchanged" assertion compares the envelope to itself not reproduced: expectedJson is computed before sendPrompt, so a mutation by Session would change only the written frame and fail the assertion
R3-1 the cause unwrap had no depth bound not reproduced: exactly two hops, exact-class wrapper match; cyclic probe terminates in 25 ms; unbounded mutant killed
R3-2 no test exercises the shipped default producers not reproduced: permission and other-control producer tests are present and green
R3-3 the fixture did not model the transport stop contract not reproduced: the fixture stops when the consumer returns true; the two-request probe observes continuation
R5-1 the two-hop peel re-encodes MyConcurrentUtils' private wrapper shape stands as a design note, accepted by the author and tracked in #17174; no failure reproduced, no behavior change demanded by this round

The last review comment records the #17174 follow-up for the wrapper-ownership note. None of the 16 threads is a blocker, and none was left not measured in the verdict sense.

Findings

F1 — Low, non-blocking: a throwing onControlRequestTimeout is reported as a handler failure

The new catch block also covers the timeout-provider callback and the control-request deserialization. When onControlRequestTimeout throws, the wire error says the handler failed even though the handler body never ran (the timeout lookup precedes it in Session.sendPrompt). Reproduced with harness/TimeoutProviderProbe.java against the head classes:

ERROR com.alibaba.qwen.code.cli.session.Session -- Control request handler failed (IllegalArgumentException); see SDK logs for details
java.lang.IllegalArgumentException: timeout provider misconfigured
    at TimeoutProviderProbe$1.onControlRequestTimeout(TimeoutProviderProbe.java:35)
    at com.alibaba.qwen.code.cli.session.Session.lambda$sendPrompt$8(Session.java:248)
written=[{"type":"control_response","response":{"error":"Control request handler failed (IllegalArgumentException); see SDK logs for details","request_id":"permission-request-1","subtype":"error"}}]

The base arm logged the generic "Failed to process control request" and sent {"type":"control_response"} (the bug this PR fixes). Head is strictly better for the CLI — the request is rejected instead of left pending — but the diagnostic names the wrong callback. Impact is wording/log triage only; no protocol or settlement defect. A minimal fix would move the timeout lookup outside the handler try or carry a stage flag into the message; no patch was measured, and the shipped suite has no fixture for this shape. This does not block the central claim.

F2 — Low, non-blocking, coverage suggestion: no shipped test continues after a failed callback

The shipped suite covers one control request per test. The round's two-requests probe sends a failing request followed by a valid one and observes two correlated frames plus a consumed result; head passes. The continuation is existing behavior (return false), so this is a suggestion to pin it in SessionControlRequestTest, not a defect.

Not covered

  • Live CLI process and real model turn. The oracle drives the real ControlDispatcher class, not a spawned qwen session; the CLI caller's catch path (handleCanUseTool / handleWorkflowApproval) was read, not executed. The wire contract is measured; the end-to-end user-visible cancel message is inferred from code.
  • macOS and Windows. The Java suite ran on Linux/Temurin 21 only; the module's Windows-specific ProcessTransportTest case is skipped on Linux. The upstream PR has no Java CI lane at all (see next item).
  • Upstream Java CI. .github/workflows/sdk-java.yml triggers on schedule, workflow_dispatch and workflow_call, not pull_request. The PR's 8 upstream checks are bookkeeping (assign/label/review-pr); the author's fork runs are external links and were not re-run here. The local head/base/merge suites reproduce the author's stated counts.
  • Timed CLI deadline race. The 60 s / 30 s CLI deadlines and the 180 s / 60 s SDK defaults were verified by reading the constants and call sites; no live CLI session was held to race the inner callback against the CLI deadline.
  • ProcessTransport asynchronous read-loop limitation. Characterized by the new test and disclosed in the README; the PR explicitly does not change the transport or the read loop. A write failure after the process input closes can still return without consuming a result.
  • The SessionExample change. It is compiled but no test invokes it; its new error reply is a documentation-shaped change.
  • Base full-suite first run. One loopback TLS connect timeout, recovered by the focused 4/4 on both arms and the green full rerun; no coverage remains lost.

Methodology

Environment: node:22-bookworm container, mounted Temurin JDK 21.0.9+10 and Maven 3.9.11, no host credentials (QWEN_VERIFY_CREDENTIAL_FREE=1, credential scan clean), base-pinned .qwen; head worktree at 7408a7fe, base worktree at 84b5b53f, previous-head worktree at 839d8cd, trial-merge worktree at 7408a7fe + origin/main c56f3da576 (62 commits ahead; main changed only two daemon files under packages/sdk-java/ since the merge-base, and the CLI nonInteractive consumer files are byte-identical). The Java harness was compiled separately against base and head classes and only uses APIs present on both arms; the CLI oracle imported the trusted checkout's compiled ControlDispatcher and isControlResponse (source hashes matched the PR tree). Raw logs, the harness sources, the classpath snapshot, the mutation runner, the guard snapshots and the three evidence images live in the round directory tmp/pr17113-verify-20261114-193204/.

Evidence:

01-ab-base-vs-head

02-mutation-matrix

03-gate-counts

Publishing under the explicit --publish request of this round.

— DeepSeek-V4.1-Flash-1017@fda99a87 via Qwen Code /verify-pr (v0.27.3; skill edbd779436a9)

@wenshao
wenshao enabled auto-merge (squash) November 14, 2026 13:58

@yiliang114 yiliang114 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert review of the control callback error handling change. The Session now validates every callback result — null returns, empty envelopes, missing/wrong request IDs, unknown subtypes, and success without a payload all produce a correlated error with the original request_id. Exception unwrapping is correctly bounded to two layers (ExecutionException → RuntimeException → actual cause), the wire error names only the exception type (not the message), and full details stay in SDK logs. Default inner/outer timeout layering is preserved, and the README documents the relationship between SDK and CLI deadlines clearly.

Test coverage is thorough: SessionControlRequestTest exercises all seven declared failure modes, the real default producers (permission denial + empty other-control payload), inner/outer timeout layering, cyclic cause unwrapping, request ID echo from the deserialized request, and valid response passthrough. The ProcessTransport characterization test documents the existing read-loop limitation without claiming it is fixed — scope is clearly bounded.

No P0 or P1 findings. All bot review suggestions from earlier rounds have been addressed at the current head. Fork CI evidence shows 21/21 control-request tests, 0 Checkstyle violations, and successful Java 11 release compilation.

中文说明

专家级 review:控制回调异常处理逻辑正确,校验链覆盖 null/空封装/ID 不匹配/无内容 success/未知子类型等全部声明的失效模式;异常解包限两层、线报只含异常类型名不含文本、完整栈保留在 SDK 日志;默认超时分层不变。测试覆盖充分:21 个用例覆盖所有失效模式 + 真实 producer + 超时分层 + 循环 cause + ID 回显。无 P0/P1 发现。

@yiliang114

Copy link
Copy Markdown
Collaborator

The remaining gate is closeout evidence. This changes protocol behavior (packages/sdk-java/.../session/Session.java now surfaces correlated errors for control callback failures instead of dropping them), and nothing on 7408a7fe shows the wire behavior actually running — green CI is not the same as the protocol surface being checked. A pr-ui-verify report bound to 7408a7fe, or a maintainer explicitly accepting the body evidence, clears it.

@wenshao
wenshao merged commit ed82717 into QwenLM:main Nov 14, 2026
157 of 162 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Managed Agent gate failed

Run 43602881258 · commit 7408a7fe20fe

Failing tests

  • com.alibaba.qwen.code.managedagent.HostedWorkspaceToolTurnIT.malformedShellUnicodeIsCorrectableBeforeAcquisition(String)[2]
  • com.alibaba.qwen.code.managedagent.HostedPublicWorkspaceIT.publicShellV2DeletionTriggersCollectionWithoutRetirementSeams
  • com.alibaba.qwen.code.managedagent.HostedAutomationFaultGatesIT.fg11fPublicationFaultsSettleOnceOnMySql
  • com.alibaba.qwen.code.managedagent.HostedShellLifecycleRecoveryIT.publicDeletionRecoversOriginalResources(String)[1]
  • com.alibaba.qwen.code.managedagent.HostedShellLifecycleRecoveryIT.publicDeletionRecoversOriginalResources(String)[2]
  • com.alibaba.qwen.code.managedagent.HostedShellLifecycleRecoveryIT.publicDeletionRecoversOriginalResources(String)[3]
  • com.alibaba.qwen.code.managedagent.HostedShellLifecycleRecoveryIT.publicDeletionRecoversOriginalResources(String)[4]
  • com.alibaba.qwen.code.managedagent.WorkspaceSessionCloseMySqlIT.closeCommitsBeforeQueuedTurnAndActionAdmissionsCanInspectTheSession
  • com.alibaba.qwen.code.managedagent.EventTransportBrokerGate.thePostCommitPathDoesNotRegress

@qwen-code-review-bot

Copy link
Copy Markdown
Collaborator

Released in v0.27.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants