mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-11 14:50:14 +00:00
Merge rp/mcp-add-test: custom MCP add/test flow, single Connectors page
This commit is contained in:
@@ -2359,6 +2359,16 @@ def create_app(manager: SessionManager) -> FastAPI:
|
||||
)
|
||||
await ws.close()
|
||||
return
|
||||
# MCP servers that failed to start while preparing this session's tools:
|
||||
# leave a quiet, persistent notice instead of the session silently lacking
|
||||
# them (drill 2026-08-20: three silent startup failures in a row).
|
||||
for name, err in manager.pop_mcp_failures(session_id):
|
||||
detail = f": {err}" if err else ""
|
||||
engine._append_notice(
|
||||
"mcp_error",
|
||||
f"MCP server “{name}” failed to start{detail}"[:300]
|
||||
+ " — see Settings ▸ MCP",
|
||||
)
|
||||
# Auto-compaction failure prompt (OPE-27): only an ATTENDED session may be asked
|
||||
# Retry/Trim — unattended runs auto-trim (the policy in engine._compact_now).
|
||||
engine.is_attended = lambda: _visibility() == VIS_INLINE
|
||||
|
||||
Reference in New Issue
Block a user