mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4474
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3141
Author: @ctr-137
Created: 10/19/2026
Status: ❌ Closed
Base:
main← Head:web-mcp-retry📝 Commits (1)
cf4b626web: retry a failed GET /mcp instead of hiding the MCP tools for the session (#3113)📊 Changes
3 files changed (+144 additions, -11 deletions)
View changed files
📝
docs/DETAILS.md(+3 -1)➕
serve/test_web_mcp_retry.py(+89 -0)📝
serve/web/app.js(+52 -10)📄 Description
Issue: #3113 (the web-app half; #3135 fixed the server half)
Summary
loadMcp()returned on!r.okand on a fetch exception, and scheduled a retry only while a server's status wasliterally
starting. One failedGET /mcp- a 401 before the API key was entered, a server restart, a proxy hiccupmcpInfo.toolsstayed 0, and every chatrequest left
strata_mcpoff. That is the second way #3113's "the backend loaded 14 tools, the page does not usethem" can happen.
What changed
serve/web/app.jsevery 30 seconds; a success resets the backoff.
/mcp) is not retried, and it clears a stale tool list.server is unreachable; retrying") instead of silently disappearing. A list from the last successful fetch stays
visible and is labelled "last known state shown".
toggle on does the same when no tools are known.
docs/DETAILS.md: one sentence on the retry schedule.serve/test_web_mcp_retry.py: a node test pins the schedule, the 404 stop, the 401 message, the success reset andthe
startingpoll (skipped without node, liketest_web_sampling).Validation
node --check serve/web/app.js- syntax OK.python -m unittest serve.test_web_mcp_retry serve.test_web_sampling- 5 tests, OK.python -m serve.server --engine mock --port 8096 --api-key k --mcp-config ...and the Streamable HTTP fake MCP server:tools, without a reload.
serve/web/app.jsreverted (the test kept), the node test fails (mcpError is not defined);with the change it passes.
servesuite: 849 tests; the only error istest_winjob.TestWinJob(a Windowstasklistcallreturning
Nonehere), the same one as on unmodifiedmain(848 tests).test_keepawakeis timing-flaky underthe full run and passes alone; neither is related to this change.
What I left alone
/mcp, and retrying forever would only fill theconsole.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.