Skip to content

web 0.5.1: board #138's findings, and an interrupted fetch says so - #394

Merged
SSFSKIM merged 2 commits into
mainfrom
web-fetch-detach-spike
Oct 26, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
web-fetch-detach-spike

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Board #138, a spike: can a slow mcp__web__fetch call leave the turn, the way WebFetch's backgrounding: "detach" lets it? It cannot, and detach turned out to be narrower than the ticket assumed. The owner chose one fix from the findings, and it ships as web 0.5.1.

Findings (docs only, 693eb2c)

  • Detach acts only on send now (ctrl+enter, or ctrl+x ctrl+s): a message the person sends while a call runs. A slow call alone never leaves the turn. A message typed without send now waits for the call to return, whatever the tool.
  • A mod's tool cannot detach. ToolSpec has no field for it. A mod's tools are an in-process MCP server whose tools declare backgrounding: "self". And the engine refuses detach for any tool a loaded mod hooks with tool.call, which a mod's own tool always is. On the owner's machines, devcloud's, sminos's and doperpowers' mods hook every tool, so nothing detaches there, WebSearch included.
  • The gap that does cost time: parallel calls run one at a time. An MCP tool's calls overlap only when its annotations say readOnlyHint, and $.tool.register passes none. Two 8 s pages in one message took 16.6 s through mcp__web__fetch and 9.2 s through WebFetch. In the eval transcripts, 13 of 313 fetch messages held two or more calls. The fix is an engine change; the owner is sending the request to Anthropic.

The record is in the design spec (Progress, Surprises & Discoveries, Decision Log) and in item 7 of the code comparison. The full findings, with the engine references, are on board #138 (comment 979).

The fix (web 0.5.1, 110e532)

When the user stops a fetch with send now, the engine abandons the call's dispatch and kills the clipper. The reply then read fetch failed: … the clipper could not run: web: $.process.run(node) aborted, and the model told the person the fetch had failed. The mod now reads next.signal.aborted and replies:

fetch interrupted: : the call was stopped before the page was saved (the user interrupted it); the site and the web plugin did not fail.

After Esc, the engine puts its own rejection text in the result, so this reply is the one the model reads after send now.

Evidence

  • New mod test: an inline plugin at the prepend tier answers first, which abandons the call beneath it. The test fails on main with the old text and passes with the fix. 68 mod tests pass, and the typecheck is clean.
  • Live, an interactive session with the branch's plugin and a local page that takes 25 s:
    • send now replied fetch interrupted: …, and the model answered "The fetch was interrupted before the page was saved";
    • Esc gave the engine's own rejection text.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)

…tool, and parallel calls run one at a time

Detach acts only on send now, a mod's tool cannot declare it, and the
engine refuses it for any tool a mod hooks with tool.call. The gap that
costs time is concurrency: $.tool.register carries no readOnlyHint.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
…ould not run (board #138)

After send now, the engine abandons the call's dispatch and kills the
clipper; the reply read 'fetch failed: ... the clipper could not run:
... aborted', and the model told the person the fetch had failed. The
mod reads next.signal.aborted and replies 'fetch interrupted:'. web 0.5.1.

Sminos-Session: web-fetch-plugin#700c5e84 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T06:04:09.546212Z 110e532 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit bfad992 into main Oct 26, 2026
6 checks passed
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