Cursor + VS Code Copilot Hook Fixes
Cursor: Stop hook dispatch fixed
- Added
stopto CLI HOOK_MAP —context-mode hook cursor stopnow works (was exit 1)
VS Code Copilot: SessionStart routing fixed
- Rewrote sessionstart.mjs to output JSON with
hookSpecificOutput.additionalContext - Copilot now receives routing instructions — tools should be picked automatically
Documented: Cursor additional_context upstream bug
- Cursor accepts but does NOT surface
additional_contextto the model - Routing relies on
.mdcrules file instead
Verified against vscode-copilot-chat source and Cursor plugin SDK.