Skip to content

Fix Gemini recall deadlines and stop stale Recipe fetches - #129

Open
imxyanua wants to merge 1 commit into
EvoMap:mainfrom
imxyanua:codex/fix-gemini-recall-deadline
Open

imxyanua wants to merge 1 commit into
EvoMap:mainfrom
imxyanua:codex/fix-gemini-recall-deadline

Conversation

@imxyanua

Copy link
Copy Markdown
Contributor

Summary

Gemini's blocking recall bypassed the timeout forwarding added in #104. A slow text lookup could also discard a fully loaded Recipe, and a Recipe search that returned after session close could still start a step fetch.

BeforeModel → send the hook budget with Recipe search, text lookup, and step fetch
            → at cutoff, use a ready Recipe and cancel the outstanding text lookup
            → check that the attempt is current before sending each request

The cutoff change applies when recall has no trial-control callback. Callers that record withheld trials keep their existing text lookup behavior.

Evidence

  • On 3422f0c, the regressions reproduced missing timeout_ms, a ready Recipe blocked by text lookup, and a new step fetch after SessionEnd. The added tests pass on this branch.
  • Windows Node 22.23.5 and 26.13.0 each passed 64 focused tests in three rounds, including interrupted-hook retry. Packing produced all 15 host bundles.
  • With published Proxy 2.0.56 and Node 26 on Windows, the baseline left both upstream sockets open until the loopback Hub replied after 5 seconds. With this patch both closed around 1.4–1.6 seconds under the test budget. The Node 22 Proxy startup preflight did not complete locally.
  • The local Linux full suite hit an OpenCode status-dialog timeout on both the baseline and this patch. Cursor passed 18/18 on both Node versions when run separately after a full-suite timeout on Node 22.

Merge Danger

Door Two-way
Blast radius Gemini recall and bounded recall callers without trial controls.

@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现需要报告的问题。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=129、head_sha="f66cead2855268b4f382f6c5ecdf2c18fec4d18d",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 f66cead28552

Copy link
Copy Markdown
Contributor Author

@forrestlinfeng,麻烦优先帮忙看一下 #129(Gemini 召回和 Proxy 超时),有空再看 #130(HTTP 状态码判断)和 #131(保留迟到的候选证据)。三个 PR 的 CI 都是 8/8 通过,Sentinel 也都未发现问题。谢谢!

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.

1 participant