You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Grok mouse wheel / scrollback dead in Orca (TERM_PROGRAM=Orca → Unknown brand) #10613
Grok Build mouse-wheel scroll / text selection scrollback is broken in Orca agent panes because Grok does not recognize TERM_PROGRAM=Orca and falls back to terminal: Unknown.
Claude Code is unaffected in the same pane.
Environment
Orca 1.4.155 (Linux serve + Mac desktop)
Grok 0.2.112
TERM_PROGRAM=Orca (hard-coded by Orca PTY spawn)
Renderer: xterm.js
Evidence
/doctor → terminal: Unknown
/scroll-debug while scrolling → empty stream / ev (no wheel applied)
Mouse capture appears active (cannot highlight text) but scrollback does not move
Setting TERM_PROGRAM=vscode for the Grok process only restores scroll and reports terminal as VS Code
Method: Code inspection of all PTY spawn paths on current tree (Linux-capable; host openclaw has packaged Orca + relays). No grok binary on the probe host for live /doctor, but the brand advertisement path is unconditional.
Root cause
Orca hard-codes TERM_PROGRAM: 'Orca' on every spawn path:
Path
File
Local
src/main/providers/local-pty-provider.ts (~647)
Daemon
src/main/daemon/pty-subprocess.ts (~566)
Relay/SSH
src/relay/pty-handler.ts (~440)
There is no grok-only brand override in tree (TERM_PROGRAM=vscode, ORCA_TERM_PROGRAM, or agent-terminal-brand*). Grok does not list Orca in its terminal capability table → terminal: Unknown → mouse-wheel / scrollback profile disabled. Claude is unaffected because it does not brand-gate the same way.
FORCE_HYPERLINK=1 only forces OSC 8 via supports-hyperlinks; it does not change Grok brand resolution for mouse/scroll.
Ship stopgap from #10469 (advertise an xterm.js brand for grok only; keep true identity as ORCA_TERM_PROGRAM), plus durable upstream Orca brand in Grok.
Activity
nwparker commentedon Jul 27, 2026
Reproduction confirmed (has_repro)
Method: Code inspection of all PTY spawn paths on current tree (Linux-capable; host openclaw has packaged Orca + relays). No grok binary on the probe host for live
/doctor, but the brand advertisement path is unconditional.Root cause
Orca hard-codes
TERM_PROGRAM: 'Orca'on every spawn path:src/main/providers/local-pty-provider.ts(~647)src/main/daemon/pty-subprocess.ts(~566)src/relay/pty-handler.ts(~440)There is no grok-only brand override in tree (
TERM_PROGRAM=vscode,ORCA_TERM_PROGRAM, oragent-terminal-brand*). Grok does not listOrcain its terminal capability table →terminal: Unknown→ mouse-wheel / scrollback profile disabled. Claude is unaffected because it does not brand-gate the same way.FORCE_HYPERLINK=1only forces OSC 8 viasupports-hyperlinks; it does not change Grok brand resolution for mouse/scroll.Re-run
Live (with grok in an Orca pane)
Fix direction
Ship stopgap from #10469 (advertise an xterm.js brand for grok only; keep true identity as
ORCA_TERM_PROGRAM), plus durable upstreamOrcabrand in Grok.Harness:
docs/bug-reproductions/10613-grok-term-program-unknown/README.mdAmethystLiang commentedon Aug 3, 2026
Looking into it