mirror of
https://github.com/stablyai/orca.git
synced 2026-10-08 08:02:32 +00:00
fix(terminal): run Codex in Orca terminals without the shared background server (#23900)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user