Skip to content

Fix dashboard MCP App launch recovery - #4294

Merged
reachjalil merged 3 commits into
devfrom
fix/dashboard-mcp-app-recovery
Sep 11, 2026
Merged

reachjalil merged 3 commits into
devfrom
fix/dashboard-mcp-app-recovery

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Recover temporary MCP App discovery failures without replaying launch tools or weakening current launch ownership.

  • Retry only server_unavailable and mcp_unreachable, at 1s and 3s, for at most three discovery attempts per endpoint. Deterministic failures, null results and mismatched identities are not retried, including in mixed-endpoint recovery.
  • Require the exact saved server, tool and resource URI before dashboard execution, including entries without a connection reference.
  • Never send saved tool arguments or approval to discovery endpoints. Connection references carry empty arguments; only the matching launch endpoint receives saved input during tool execution.
  • Preserve sessionless dashboard launch context, ownership checks and lease release. Release rejected or late resources; stop discovery when the owner disappears. Recheck ownership between resolution and tool dispatch.
  • Reuse dev's endpoint ref rather than introducing a second ref. Discovery-array churn no longer abandons an in-flight launch, while actual owner removal still retires it.
  • Chat discovery retains its original endpoint, workspace, conversation, archive state and lease cleanup. Exhaustion offers a manual resource-resolution Retry, never a launch-tool replay.

Current Dev Reconciliation

Previous head: 7fd901db1ee31717da59061e9786c5cd17847299.
Current signed head: 78df7d03c0d08711c3e07f8a1d4f1023c34f1594.
Fresh base and merge-base: 858414c41c63a22eecfe331d17f3f5dd348dfc6f (dev).

Preserved the two existing commits, resolving conflicts against dev's newer originating-view and lease implementation (#4863). Added a narrow signed repair for ownership changing before the resolver continuation. Current draft previews, native connection cards, connector catalogs, private App readiness repair and the existing migrated dashboard journey remain intact. No retired resolver-only journey or API is restored.

The reviewed server/tool/resource identity fixes remain enforced. The previously recorded saved-argument disclosure finding is repaired: discovery sends no saved input even to rejected fallback endpoints. Rejected leases are also released. Existing neutral journey descriptions remain; no report or account narrative is restored.

#4862 owns result fidelity, gateway metadata isolation and truthful host protocol capabilities. Recovery tests now extend the existing tile/origin suites rather than overlapping its protocol fixture additions. The two candidate heads compose without textual conflicts; combined runtime behavior is not claimed. Neither PR's useful increment is already in dev, so neither is closed as obsolete.

Verification

Verdict: Incomplete. Passed on the current head, all exit 0:

  • pnpm --filter @openwork/app exec bun test --isolate tests/mcp-app-tile.test.tsx tests/mcp-app-frame.test.ts tests/mcp-app-origin.test.tsx: 30 passed, 0 failed, 0 skipped.
  • pnpm --filter @openwork/app typecheck.
  • Diff whitespace check; every feature commit verifies G with Jalil's existing signature.

The mounted-component checks cover pending discovery-array churn without duplicate calls, unchanged saved input at the matching execution endpoint, empty discovery arguments, exact identity refusal, transient-only retry bounds, rejected/late lease release, owner removal, and chat manual Retry preserving the conversation without calling a tool. The expected exhausted-discovery diagnostic is visible in output. These are component checks, not runtime journey proof.

Failed: none. Skipped: none in the selected checks. Deferred: dashboard-atlassian-tile-error and current-head runtime proof for recovery, identity refusal and endpoint churn. No manual cloud/E2E/review runs or local E2E were started. All previous-head results, skips, typechecks and security clearance statements are historical only. Normal CI remains required and unchanged.

No merge, deployment, review request or branch deletion is included.

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 2, 2026 00:31 Inactive
@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 11:46pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 11:46pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 11:46pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 11:46pm UTC

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 2, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (4375389f275edfe5d12952497a546507f6b8f34c). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 6, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (090be8085f1275b449e56439f3f59eadc1ee70e7). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (69609 ms), confidentiality-review (96058 ms), spec-provenance-review (111268 ms), desktop-den-sync-review (147524 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 3 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 3 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 3/3 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (78df7d03c0d08711c3e07f8a1d4f1023c34f1594). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 78df7d03c0d08711c3e07f8a1d4f1023c34f1594 · selected evidence

Open review report

@reachjalil
reachjalil merged commit 4b90be3 into dev Sep 11, 2026
28 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-den — 78df7d03 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-landing — 78df7d03 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 78df7d03 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 78df7d03 Deployed Sep 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants