Repository navigation
fix(dsh): give a late recall's Proxy requests the 30 s background window - #113
Merged
Merged
Conversation
A host that adds context late (dsh) stops waiting for recall after 6 s and lets the recall finish in the background, but each of its Proxy requests still used the Proxy client's 8 s default. The local Proxy's text recall round trip runs 4.5–7.6 s on a normal day, so a slower one was cut at 8 s and the turn got nothing, not even late. Seen on 2026-11-25: the Hub served the right Gene first (fit 0.99) 3.4 s into the turn, and DSH Desktop injected nothing. With 5 s added to the Proxy's /asset/fetch, the installed 1.0.17 returns nothing at exactly 8.0 s in 4/4 rounds; with this change the strategy lands late in 4/4 rounds at 10–14 s. A late recall is already the background, so it now gets DEFERRED_RECALL_MS, the window the tool-result deferral (ZCode) uses. The test that pinned the 8 s default is changed to the new rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Sentinel 已审核此变更,未发现需要报告的问题。 开发 agent 查询详情: 调用 MCP 工具 由 Sentinel 审核 · 目标提交 324d4a86f054 |
This was referenced Nov 25, 2026
forrestlinfeng
added a commit
that referenced
this pull request
Nov 25, 2026
Revert #113: late recall Proxy cap back to the 8 s default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A host that adds a strategy late (dsh) stops waiting after 6 s and lets the recall finish in the background, but each Proxy request in that background recall was still cut at the Proxy client's 8 s default. The local Proxy's text recall round trip runs 4.5–7.6 s, so a slower one returned nothing, and the turn never got its late strategy.
recalled(…, { waitMs, keepLate, lateAtToolResult }) timeoutMs = lateAtToolResult ? waitMs + DEFER_GRACE_MS - : keepLate ? 0 # Proxy client default: 8 s + : keepLate ? DEFERRED_RECALL_MS # 30 s, same window as the tool-result deferral (ZCode) : waitMsLate landing still goes through
show()/join(), which only book while the turn is open, so a strategy that arrives after the turn ends is still dropped.Evidence
Field case (2026-11-25, DSH Desktop): the Hub served the right Gene first (fit 0.99) 3.4 s into the turn. The session log has no
plugin:evolvermessage and the plugin's session state hasinjected: {}.Reproduced by driving the dsh plugin channel against the real Proxy, with 5 s added to
/asset/fetchby a read-only pass-through:orig8019 ms none, 8009 ms none;para58007 ms none, 8006 ms noneAfter (1.0.17 + this
lib/app/prompt.js):orig12464 ms late, 10014 ms late;para514443 ms late, 12740 ms late (all four inject the expected Gene)Unit test
test/app/recall-deadline.test.js:npm test: 1141 pass, 34 fail. The same 34 fail on a cleanorigin/maincheckout on this machine (kimi host install/packaging, acp, desktop-engine); none touch recall.Merge Danger
Door: two-way
One constant in one branch; revert restores the 8 s cut.
Blast Radius: dsh
Only hosts with
reply.latetake this branch (today, dsh). A background recall can now hold its Proxy requests up to 30 s instead of 8 s; hosts that cannot answer late, and the ZCode tool-result deferral, are unchanged.🤖 Generated with Claude Code