Skip to content

Codex pane content cut off when adding split pane from existing session #92

@justinchoo93

Description

@justinchoo93

Bug

When a Codex session is in a pane and a second pane is added (split from an existing session), the Codex pane's content gets cut off — the terminal doesn't resize to fit the reduced pane width. This does not happen with Claude Code sessions, only Codex.

Steps to Reproduce

  1. Create a new Codex session (opens in a full-width pane)
  2. Split the pane by adding an existing session to the tab (e.g., an existing Claude Code session)
  3. Observe the left (Codex) pane

Expected

The Codex terminal resizes to fit the new pane width, with content wrapping properly.

Actual

The Codex pane content is cut off on the right side — it appears the terminal is still sized for full width despite the pane now being ~50% width.

See attached screenshot: the Codex session on the left is visibly clipped, while the Claude Code session on the right renders correctly.

Notes

  • Only affects Codex sessions, not Claude Code
  • Likely a terminal resize event not being sent/handled properly for the Codex PTY after a pane split
  • May be related to how Codex handles SIGWINCH vs how Claude Code does

Environment

  • Freshell v0.5.0
  • Development mode
  • macOS, Chrome 145

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions