处理 MEXP15 fresh-machine sidebar bootstrap blocker 的 m4c/sidebar 侧问题:Mindraw App 未手动启动时,Codex sidebar 显示 MINDRAW_PREVIEW_SOURCE_REQUIRED / MINDRAW_OPEN_PACKAGE_API_REQUIRED,点击 Edit 不能启动 Mindraw App。范围限定 m4c Codex plugin/sidebar,不改 Mindraw App source、Tauri config、signing、packaging、release metadata,也不实现任意 target-link entry。
/api/open-edit 只依赖 mindraw.app.open_package capability;fresh machine 上 runtime capability file 不存在时直接返回 MINDRAW_OPEN_PACKAGE_API_REQUIRED,没有对已有 latest-created .mindraw package 做启动 fallback。/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin 做最小修复:openCanvasInMindraw 优先走 mindraw.app.open_package。openPackage capability、health 或 runtime transport 不可用时,在 macOS 上对同一个 latest-created package 尝试 LaunchServices fallback:bundle id com.mindraw.desktop,app name Mindraw,package association。.mindraw + missing capability file + /api/open-edit 返回 opened=true、fallbackUsed=true、method macos.open.bundle。0.1.0+codex.20260704090518 提升到 0.1.1+codex.20260707231339。/Users/ar/.codex/plugins/cache/personal/mindraw/0.1.1+codex.20260707231339。/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C2.builds/MEXP15-SignedNotarizedDMG/mindraw-plugin-0.1.1+codex.20260707231339-M4C-EDC-03-20260707231839/mindraw.app.open_package capability;runtime capability file 不存在时返回 MINDRAW_OPEN_PACKAGE_API_REQUIRED。mindraw.app.open_package;capability/API 不可用时在 macOS 对同一 latest-created .mindraw package 走 LaunchServices fallback。.mindraw internals;不实现 mindraw://...documentId...elementId... target-link entry。crg-eda4493ea1b8 pending review。9c196fdea953f316619ee321897e1ac4d2c4b030ef017737fc3597acd226d3ee。270cf4df0ceb80ff988db9e83956b6898003d2081a0f0e3b69cb52f941733a03。/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/lib/project-canvas.mjs/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/scripts/mindraw-canvas-service.mjs/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/README.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/skills/mindraw-open-canvas/SKILL.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/.codex-plugin/plugin.json/Users/ar/Projects/Mindraw/P2.mindrawforcodex/02-P/MEXP15-SignedNotarizedDMG/m4c-edc-03-sidebar-bootstrap-fallback-check-20260707.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/02-P/MEXP15-SignedNotarizedDMG/m4c-edc-03-sidebar-bootstrap-fallback-check-20260707.json/Users/ar/Projects/Mindraw/P2.mindrawforcodex/02-P/MEXP15-SignedNotarizedDMG/m4c-edc-03-review-request-crg-eda4493ea1b8.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/CODEGRAPH.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/INDEX.md/Users/ar/Projects/Mindraw/INDEX.md/Users/ar/Projects/Mindraw/02-P/plan-progress.markdown/Users/ar/Projects/Mindraw/02-P/PMO_INBOX.md/Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C2.builds/MEXP15-SignedNotarizedDMG/mindraw-plugin-0.1.1+codex.20260707231339-M4C-EDC-03-20260707231839/npm run check passed。ok=true。/api/open-edit fallback。npm run check passed。SAFE,score 0。CAUTION,score 21,TM1 at scripts/mindraw-canvas-service.mjs:4,需 review gate 接受。用途:复跑 M4C-EDC-03 source / installed / packaged fallback 验证。
前置条件:已安装 Codex runtime node modules;Playwright headless shell 如缺失,可用 playwright install chromium 一次性安装到本机缓存。
npm run --prefix /Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin check
node /Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/scripts/mindraw-canvas-service.mjs smoke-http --report /tmp/m4c-edc-03-source-http.json
PLAYWRIGHT_NODE_MODULES=/Users/ar/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules node /Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin/scripts/mindraw-canvas-service.mjs smoke-sidebar --report /tmp/m4c-edc-03-source-sidebar.json --out /tmp/m4c-edc-03-source-sidebar
codex plugin add mindraw@personal --json
diff -qr /Users/ar/Projects/Mindraw/P2.mindrawforcodex/03-O/C1.source/mindraw-plugin /Users/ar/.codex/plugins/cache/personal/mindraw/0.1.1+codex.20260707231339
清理 / 恢复:如需回到 personal source-backed plugin,执行:
codex plugin add mindraw@personal
codex plugin list
搜索关键词:M4C-EDC-03、MINDRAW_OPEN_PACKAGE_API_REQUIRED、macos.open.bundle、0.1.1+codex.20260707231339、crg-eda4493ea1b8。
crg-eda4493ea1b8 需要代码审核员回写 PASS / CHANGES_REQUESTED / BLOCKED。MINDRAW_OPEN_PACKAGE_API_REQUIRED。.mindraw package 且 App capability 不可用,m4c 仍不能创建 package。