Repository navigation
fix(mcp): retry and surface silent search_capabilities injection failures - #2773
Closed
reachjalil wants to merge 1 commit into
Closed
reachjalil wants to merge 1 commit into
reachjalil wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
reachjalil
marked this pull request as ready for review
July 15, 2026 02:41
Member
Author
|
Superseded by #2779, which combines this silent-failure fix with the graceful pre-send Cloud tool readiness gate, focused regression coverage, and validated end-to-end screenshot evidence. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR prevents a Cloud MCP tool-injection problem from looking like
search_capabilitiessimply disappeared after an app restart. If the search tool is not available for the active workspace, provider, and model, OpenWork now treats that as a real failure instead of silently marking maintenance as skipped: it retries automatically, keeps an actionable warning visible, and records the exact failure stage for diagnosis. This means the issue either self-recovers or becomes visible to the user and support team instead of leaving the assistant without search capabilities and no explanation.What this changes
skippedstatesWhy the search tool could disappear silently
Session MCP maintenance previously collapsed any unusable reconcile result into
skipped, and caught maintenance errors without leaving a user-visible failure or durable diagnostic. The startup and engine-reload paths also discarded thrown synchronization errors. Because the selected provider and model were not included in the session health check, generic endpoint health could look ready while the active model still had no injected Cloud MCP tools.Together, those behaviors made a registration, authentication, or model-projection failure look like the assistant had silently lost
search_capabilitiesafter restart.The captured incident also exposed an important distinction: the live meta-MCP remained connected and returned both
search_capabilitiesandexecute_capability; the observed calls failed farther downstream because of invalid Microsoft provider aliases and a Microsoft Graph 401. This change does not misreport those provider failures as MCP transport loss. It makes actual tool-injection and readiness failures visible, diagnosable, and recoverable.User impact
Security and trust boundaries
Validation
pnpm --filter @openwork/app typecheck— passedpnpm --filter openwork-server typecheck— passedpnpm --filter @openwork/app exec bun test --isolate tests/session-mcp-maintenance.test.ts— 8 passed, 0 failedpnpm --filter openwork-server exec bun test src/cloud-mcp-reconcile.e2e.test.ts src/mcp.engine-sync.e2e.test.ts— 34 passed, 0 failedRemaining verification
The packaged desktop restart journey with a real organization and deliberate network/tool-injection fault has not yet been run. Windows/Linux coverage and visual evidence were also not collected. This PR is therefore opened as a draft until that final real-desktop failure-and-recovery journey is confirmed.