From 4d84a5c5150c46ffd2728fba3341c207d4c5c9a8 Mon Sep 17 00:00:00 2001 From: JasonBuildAI Date: Mon, 19 Oct 2026 22:08:18 +0800 Subject: [PATCH] test(lark): answer thread naming in the human-gate smoke The managed Codex adapter now names a new thread with thread/name/set before publishing the binding. The Lark human-gate public smoke's fake app-server did not answer that request, so it waited for the 30-second response timeout and surfaced steward_notice_unavailable, turning the daily full-public release qualification red. Acknowledge the request with its exact parameters and fail fast on future unknown requests so protocol drift cannot masquerade as a delivery outage. Signed-off-by: JasonBuildAI --- .../lark-goal-channel-human-gate-delivery-smoke.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/lark-goal-channel-human-gate-delivery-smoke.py b/examples/lark-goal-channel-human-gate-delivery-smoke.py index 3faffa02e5..15c1790339 100644 --- a/examples/lark-goal-channel-human-gate-delivery-smoke.py +++ b/examples/lark-goal-channel-human-gate-delivery-smoke.py @@ -101,8 +101,16 @@ def write_fake_lark_cli(root: Path) -> tuple[Path, Path]: print(json.dumps({"method": "turn/completed", "params": { "threadId": "synthetic-notice-thread", "turn": {"id": "notice-turn", "status": "completed"}}}), flush=True) continue - else: + elif method == "thread/name/set": + assert request["params"] == { + "threadId": "synthetic-notice-thread", + "name": "LoopX Chat", + } + result = {} + elif "id" not in request: continue + else: + raise SystemExit(f"unexpected fake codex request: {method}") print(json.dumps({"id": request["id"], "result": result}), flush=True) ''', encoding="utf-8") model.chmod(0o755)