72df91c3c8
Plan-approval's 'Approve and compact context' used to pass the rendered plan-mode-compact-instructions prompt as the first positional argument to handleCompactCommand -> session.compact(), which landed on the session_before_compact extension hook as customInstructions. Extensions treating that field as user focus (e.g. to bias a query-focused summary) would then see plan-mode boilerplate instead of operator intent and produce query-biased compactions. Add CompactOptions.internalGuidance: a private summarizer-only channel. session.compact() reads it into the fallback-model summarizer while the session_before_compact hook payload still only carries the public customInstructions arg (undefined for the plan-compact path). The snapcompact-disable predicate and the /compact rejectsFocus guard cover both fields so a directed summary is never silently downgraded. Extend the interactive-mode handleCompactCommand facade + command controller with a fourth internalGuidance parameter, and switch the plan-approval callsite in interactive-mode.ts to route the plan prompt through it. Fixes #4359