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][Terminal] Intermittent Cmd+C on selected Codex scrollback jumps Orca terminal to bottom #17606
When using Codex in Orca, copying selected text from earlier terminal scrollback intermittently jumps the embedded terminal viewport to the bottom input area.
Steps to reproduce
Open a Codex session in Orca.
Generate enough output to create terminal scrollback.
Scroll up to older output.
Select some text.
Press Cmd+C to copy.
Repeat the copy attempt if the first attempt does not trigger the issue.
Expected behavior
The selected text is copied and the current scroll position remains unchanged.
Actual behavior
The issue is intermittent. Sometimes the first Cmd+C triggers it, and sometimes the second Cmd+C triggers it. When it occurs, the terminal viewport jumps to the bottom input area. The selected text may still be copied successfully.
Reproduction and controls
English input source also reproduces; Korean 2-set input is not required.
The same Codex session works normally in iTerm2.
The same Codex session works normally in Ghostty.
The issue reproduces only in Orca in this comparison, suggesting it is specific to Orca's embedded terminal integration.
Additional information
A related Orca issue is #13033, but that report is scoped to Korean 2-set input. This report reproduces with the English input source as well.
The issue does not occur on every copy attempt, so the trigger may depend on terminal focus, selection state, or keyboard event timing.
Further testing shows that the issue does not reproduce in every Codex session. Under the same Orca version, macOS version, and English input source:
The current Codex session reproduces the intermittent jump.
Other Codex sessions do not reproduce it.
This suggests the trigger may depend on session-specific state, such as the amount or type of scrollback output, the current TUI state, terminal focus/selection state, or keyboard event timing. The iTerm2 and Ghostty controls for the same current session still do not reproduce the issue.
Update: reproduced in a minimal fresh Codex session
The issue also reproduces in a new, minimal Codex session. The entire user-visible interaction was:
User: 输出1~200数字,一行一个
Assistant: 1 through 200, one number per line
Session characteristics:
Codex CLI 0.151.0
One user prompt and one assistant response
Assistant response: 691 characters / 200 lines
No tool calls
No interrupted turn
No computer-use/image payloads
No background task involved
Token usage: 64,306 out of a 950,000-token context window
Cmd+C still intermittently jumps the Orca terminal viewport to the bottom. This rules out a long/complex conversation, near-full context, tool output, image payloads, and an aborted turn as necessary conditions.
The remaining common factor appears to be a response long enough to create vertical scrollback. The content itself is plain text with no ANSI/control characters and no wrapped long lines (maximum line length is 3 characters). This points more strongly to Orca terminal selection/copy event handling, scrollback state, or scroll-on-input behavior.
This looks fixed on current main by #23597. Root cause: under kitty REPORT_EVENT_TYPES the orphan C keyup was sent as input and scrolled the terminal to the bottom. #23597 claims the copy chord through its repeats and its release.
Closing as fixed. If you still see this on the latest release, please reopen with your Orca version and steps, and we'll take another look.
Activity
zcsunt commentedon Aug 31, 2026
Update: session-specific reproduction
Further testing shows that the issue does not reproduce in every Codex session. Under the same Orca version, macOS version, and English input source:
This suggests the trigger may depend on session-specific state, such as the amount or type of scrollback output, the current TUI state, terminal focus/selection state, or keyboard event timing. The iTerm2 and Ghostty controls for the same current session still do not reproduce the issue.
zcsunt commentedon Aug 31, 2026
Update: reproduced in a minimal fresh Codex session
The issue also reproduces in a new, minimal Codex session. The entire user-visible interaction was:
Session characteristics:
Cmd+C still intermittently jumps the Orca terminal viewport to the bottom. This rules out a long/complex conversation, near-full context, tool output, image payloads, and an aborted turn as necessary conditions.
The remaining common factor appears to be a response long enough to create vertical scrollback. The content itself is plain text with no ANSI/control characters and no wrapped long lines (maximum line length is 3 characters). This points more strongly to Orca terminal selection/copy event handling, scrollback state, or scroll-on-input behavior.
fix(terminal): keep Cmd+C on a scrollback selection from jumping to b…
test(terminal): e2e smart copy, copy toast and kitty keyup viewport pin
fix(terminal): own the scroll-shortcut keyup in the dashboard preview…
nwparker commentedon Nov 26, 2026
This looks fixed on current main by #23597. Root cause: under kitty REPORT_EVENT_TYPES the orphan C keyup was sent as input and scrolled the terminal to the bottom. #23597 claims the copy chord through its repeats and its release.
Closing as fixed. If you still see this on the latest release, please reopen with your Orca version and steps, and we'll take another look.
fix(terminal): keep Cmd+C on a scrollback selection from jumping to b…
fix(terminal): own the scroll-shortcut keyup in the dashboard preview…