Skip to content

[Bug][Terminal] Intermittent Cmd+C on selected Codex scrollback jumps Orca terminal to bottom #17606

Done

Description

@zcsunt

Operating system

macOS

Orca version

1.4.192

Codex version

codex-cli 0.151.0

Details

Summary

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

  1. Open a Codex session in Orca.
  2. Generate enough output to create terminal scrollback.
  3. Scroll up to older output.
  4. Select some text.
  5. Press Cmd+C to copy.
  6. 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.

Activity

  1. zcsunt commented on Aug 31, 2026

    @zcsunt
    Author

    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:

    • 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.

  2. zcsunt commented on Aug 31, 2026

    @zcsunt
    Author

    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.

  3. added
    bug
    os:macos
    on Sep 19, 2026
  4. added theissue type on Sep 19, 2026
  5. nwparker commented on Nov 26, 2026

    @nwparker
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugos:macos

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions