Repository navigation
Replies: 4 comments
|
Verified every claim against master (47f9438) — the wedge is real, and there are two details worth adding before fixing: Source confirmation
Systemic note: the whole tool-cordis family is unguardedNo tool registration in Design nuance: timeout is the safety net, fail-fast is the primary fixA plain
Cross-thread noteOn |
{
"input": {
"service": "conversation"
},
"method": "listService",
"platform": "client",
"provider": "Service"
}这个参数也是永久挂起 |
|
Additional reproduction on the released Desktop build (dsh 0.1.2 / Desktop 2.0.4, 2026-08-30) + a verified local fix, in case it helps. Reproduction (released 0.1.2, not just master)A real session ("dsh0.1.2更新内容 (1)") got wedged exactly as described here:
So the "no page answers" hang is real on the shipped build, not only on source master. Verified local fix (host-side, no timeoutMs needed at the tool level)Patching const onTimeout = () => {
const pending = this.pending.get(requestId);
if (pending === void 0) return;
this.pending.delete(requestId);
pending.settle({
ok: false,
reason: "timeout",
message: `Client inspect query ${providerId}.${methodName} timed out after ${CLIENT_INSPECT_QUERY_TIMEOUT_MS}ms (no Client page answered)`
});
this.ctx.emit("cordis/inspect-query-resolved", { requestId });
};
const timeout = setTimeout(onTimeout, 15000);After this patch, a genuinely unanswered query returns a Also note the related drop in Environment: DSH Desktop 2.0.4 (dsh 0.1.2), macOS. |
|
Additional reproduction: a background child agent, with a long-lived page Adding a data point that the reports above do not cover. I am not opening a new discussion because this one already describes the wedge. Setup. DSH Call. Observed. The call was written at Two details that may help localise it.
Why it matters beyond one stuck session. The caller was a background child: the parent stayed usable, no error surfaced anywhere, and nothing in the parent's own session indicated that a delegated agent had wedged. It was noticed only because a human wondered why work had stopped. For unattended delegation that is the worst shape — silence indistinguishable from long work. Local mitigation on our side (a workaround, not a fix): deny the Environment versions: |
Uh oh!
There was an error while loading. Please reload this page.
Summary
cordis_inspect_querywithplatform: "client"can hang forever (no timeout), permanently freezing the agent: the agent staysrunning, every later inbox message queues unprocessed, and only a manualagent.cancel()(keepInbox) unblocks it.Repro / observed behavior
While developing a dynamic Cordis plugin, an agent called:
The tool call never returned a
tool/result. The session log ends at thetool/callevent; the agent staysstatus: runningindefinitely; subsequentsend/followupmessages sit in the inbox (agent/inbox/splicedappended, never claimed). This reproduced three times in a row — the agent retried the same client query after each manual cancel and hung again each time.Root cause
tool-cordis/src/index.tsregisterscordis_inspect_querywithouttimeoutMs.cordis-host-runner/src/inspect-registry.ts→queryClient) emitscordis/inspect-queryand awaits a promise that only settles onresolveClientQuery(a page response) orsignalabort.dsh-tool-call-timeout-policy) only arms a deadline when the tool declarestimeoutMs— so this tool has zero timeout protection.When no browser page is attached/answering (headless-ish usage, closed tab, page crash, or a client manifest present but no live client runner), the promise never settles and the whole agent turn is wedged.
Suggested fix
cordis_inspect_querya boundedtimeoutMs(e.g. 15–30s) so the cooperative guard converts a silent hang into aTOOL_TIMEOUTerror result the model can see and react to.queryClient, add a hard deadline independent of tool config, and/or detect "no live client page" early and fail fast with a clear message instead of queueing an unanswerable request.Impact
Any agent session that queries a client platform without a responding page is permanently wedged; the user sees a "stuck" session with no error surfaced. A timeout would turn this into a recoverable tool error.
Environment
0.1.0-rc.5(source launch)All reactions