Repository navigation
v1.4.3 — Bidirectional Bridge: OMG → OMC Push
Bidirectional Bridge: OMG → OMC Push
Closes the v1.4.0 bridge into a full OMG ↔ OMC round-trip. v1.4.0 shipped one-way omc → omg import; v1.4.3 adds the reverse omg → omc export so work done in GitHub Copilot can continue in Claude Code.
Highlights
- New module
mcp-server/src/bridge/omg-exporter.ts— composes (does not blindly copy):prd.json/project-memory.jsonare file-copies;active_modes[]from the OMG checkpoint is decomposed into per-mode.omc/state/{mode}-state.jsonfiles (the inverse of v1.4.0's omc-importer composition);.omc/state/session-checkpoint.jsonis composed with translated provenance. - New shared helper
mcp-server/src/bridge/conflict-utils.ts—shouldSkipForConflict()uses embeddedtimestampfield as primary conflict primitive forsession-checkpoint.json(mtime fallback elsewhere — addresses git-checkout-touches-mtime brittleness);rotateBackup()keeps last N=3 timestamped.previous.{ISO}.jsonsnapshots, applied symmetrically on both import and export sides. - New MCP tool
omg_export_external_session({target: "omc", force?})with atomicity contract:.omg/state/last-export-token.jsonis the LAST side-effect — partial-write failures leave no token, so subsequent operations correctly treat the transaction as uncommitted. - Round-trip safety via dual-write loop guard — importer reads either
.omg/state/last-export-token.jsonOR the destination checkpoint'ssource_origin === "bridged-from-omg". Guard survives wipe of either side. No time-based TTL; token invalidates only when destination'ssource_originflips to"native"orsource_session_idchanges. - Provenance schema extended (backward-compatible): new
source_originfield ("native" | "bridged-from-omc" | "bridged-from-claude-code" | "bridged-from-omg") is the authoritative provenance signal; legacysource_tool: "copilot"is retained. Newworkspace_rootfield powers a project-identity guard that aborts before any mutation when source checkpoint's workspace path doesn't match the current workspace. /push-omcskill (6 steps) — detect → compare → confirm → export → summarize → continue. Trigger keywords:/push-omc,"push omc","omc 푸시","omc로 보내기","sync to omc","export to omc". Mirror atvscode-omg/resources/templates/skills/push-omc/SKILL.md.- VS Code command
omg.pushExternal("OMG: Push to External Session (OMC)") — user-initiated only; no activation-time push notification (push remains a deliberate user action). omg_compare_checkpointsreports both directions — now returnsomg_newer_than_externalalongsidenewer_than_omgso/push-omcand/resume-claudeshare the same comparison surface.
Test coverage
- 8 → 23 tests across 6 zones (Unit, Provenance, Round-trip guard, Composition, Conflict-path, Project-identity)
- mcp-server tsc clean, vscode-omg esbuild clean
- VSIX
oh-my-githubcopilot-1.4.3.vsix(84 files, 24 skills bundled) - Manual round-trip smoke (7 steps) verified live: dual-write OK, decomposition OK, provenance OK, loop guard fires, token-only invalidation OK, workspace_mismatch guard OK
Deferred
omg → claude-codedirection → v1.5.x. Would require synthesizing validtool_use/tool_resultUUID chains compatible with Claude Code's resume-by-id contract.
Install
VS Code Marketplace or code --install-extension oh-my-githubcopilot-1.4.3.vsix.