fix(coding-agent): preserved btw codex websocket routing

- Preserved the session websocket preference for ephemeral /btw side-channel turns so Codex websocket-only models do not fall back to SSE.
- Prioritized active /btw and /omfg panels in Esc handling before loop, maintenance, and main-turn interrupts.
- Added regression coverage for side-channel websocket options and /btw Escape priority.

Fixes #5213
This commit is contained in:
roboomp
2026-07-11 17:31:37 +00:00
parent c6b83c1d96
commit 2c161d2a8f
5 changed files with 43 additions and 9 deletions
@@ -14706,7 +14706,7 @@ export class AgentSession {
// stable, but give provider routing a unique request lineage.
sessionId: `${cacheSessionId}:side:${Snowflake.next()}`,
promptCacheKey: cacheSessionId,
preferWebsockets: false,
preferWebsockets: this.#preferWebsockets,
reasoning: toReasoningEffort(this.thinkingLevel),
disableReasoning: shouldDisableReasoning(this.thinkingLevel),
hideThinkingSummary: this.agent.hideThinkingSummary,