fix(terminal): run Codex in Orca terminals without the shared background server (#23900)

This commit is contained in:
Jinwoo Hong
2026-09-29 10:22:27 -07:00
committed by GitHub
parent 3c1af16e8b
commit 9420d49bcb
29 changed files with 830 additions and 73 deletions
@@ -38,6 +38,11 @@ describe('shouldUseRendererBackedCodexTerminal', () => {
expect(shouldUseRendererBackedCodexTerminal('codex --help')).toBe(false)
})
it('reads --no-daemon as a flag, not the subcommand', () => {
expect(shouldUseRendererBackedCodexTerminal('codex --no-daemon resume --last')).toBe(true)
expect(shouldUseRendererBackedCodexTerminal('codex --no-daemon exec summarize')).toBe(false)
})
it('ignores non-Codex commands', () => {
expect(shouldUseRendererBackedCodexTerminal(undefined)).toBe(false)
expect(shouldUseRendererBackedCodexTerminal('claude')).toBe(false)