Bug: `beforeSubmitPrompt` hook `updated_input` is silently stripped — modified prompt never reaches the model

Fantastic write-up and minimal reproducer!

I want to flag for the Cursor team that this is clearly part of a much broader, systemic issue with the hook architecture’s context-injection pipeline.

We are seeing the exact same “silently stripped / discarded output” behavior across other hooks, most notably postToolUse and sessionStart. Just like your case, the hooks fire, valid JSON is returned and logged by Cursor, but the injected context is completely dropped before it ever reaches the Agent’s context window.

It seems the plumbing between the hook manager and the model prompt builder is broken across the board, regardless of the hook type.

Here is the related thread detailing the exact same failure pattern for postToolUse:

Hopefully, highlighting that this affects beforeSubmitPrompt, postToolUse, and sessionStart will help the engineering team track down the shared root cause in the prompt pipeline.