WIP: sync_backfill returns a gateway timeout even when the import succeeds #11
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wi-019f907a-sync-backfill-returns-a-gateway-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Anima work item
019f907a-101a-71c2-a950-36fbd2e94d9e.Symptom
mcp__sia__sync_backfill(and a broadsync_search) reliably returnStreamable HTTP error: upstream request timeoutfrom the MCP gateway, even when the underlying work completes. Observed 2026-07-23 backfilling the twoillumos/ipdPR threads: both calls timed out at the HTTP layer, yet the messages were fetched, classified, and routed successfully (decisions #1375/#1376,MailingList; 2/2 ok). The caller can only confirm success by inspectingdecision_recentafterward.Cause
The backfill path does real work synchronously inside the request: fetch full bodies from the provider → run the tools-less sandbox classifier (LLM) → anima gRPC upserts. For more than a message or two this exceeds the MCP gateway's response window, so the HTTP response times out while the server keeps working. The gateway timeout is unrelated to whether the import succeeds.
Impact
Options
Prefer (1) for anything beyond a handful of messages; (3) is an acceptable stopgap.
Repro
mcp__sia__sync_backfillwith aquery:that resolves to >2 messages, orsync_searchover a broad query, against the personal Gmail mailbox. HTTP times out;decision_recentshows the work landed.b9c2a6536d67aeaf60efView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.