Skip to content

fix(mcp): gate cloud sync marker on live status - #3198

Draft
reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/cloud-mcp-sync-status
Draft

fix(mcp): gate cloud sync marker on live status#3198
reachjalil wants to merge 1 commit into
different-ai:devfrom
reachjalil:feature/cloud-mcp-sync-status

Conversation

@reachjalil

Copy link
Copy Markdown
Collaborator

Summary

  • treat openwork.den.mcp.sync only as token/config freshness metadata
  • require live openwork-cloud engine status connected with the desired revision applied before writing or retaining the marker
  • reconcile fresh markers when live status is failed, needs auth/client registration, or missing
  • defer marker creation across reload-required delivery and preserve in-flight reconciliation coalescing

Root cause

Cloud MCP reconciliation could retain or write a fresh sync marker from configuration/token state even when OpenCode had not successfully registered openwork-cloud. Later mounts could interpret that marker as a successful sync and skip repair while the live MCP was failed or absent.

Checks

  • bun test --isolate tests/cloud-mcp-health.test.ts — 15 passed
  • bun test --isolate tests/cloud-mcp-maintenance-gate.test.ts — 4 passed

Scope and risk

The change is limited to Cloud MCP reconciliation and its focused tests. It does not change Den APIs, protocol routes, TLS, token formats, general MCP behavior, or endpoint fallback behavior. No end-to-end app run or manual UI verification was performed.

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jul 27, 2026 5:36pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Jul 27, 2026 5:36pm

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant