Skip to content

[bug] When I switch away from a terminal tab and come back, the input bar appears twice. Additionally, the terminal view is auto-scrolled to the bottom, leaving a large blank space. #1830

@meakkineni

Description

@meakkineni

Summary

When I switch away from a terminal tab and come back, the input bar appears twice. Though only the last input bar is editable
Additionally, the terminal view is auto-scrolled to the bottom, leaving a large blank space.

Environment

  • Mac
  • Codex
  • Repro frequency: every time

Steps to Reproduce

  1. Open a terminal tab.
  2. Run any command so output exists.
  3. Switch to another tab.
  4. Switch back to the original terminal tab.

Actual Behavior

  • Two input bars are rendered. I actually think it's submitting the empty input to the llm on switching
  • Editing is only possible in the last input bar.
  • Additionally, the terminal view is auto-scrolled to the bottom, leaving a large blank space.
  • Even though only the last input bar is editable, the duplicate input makes the UI appear as if a prompt has already been submitted, which is misleading and confusing.

Expected Behavior

  • Only one input bar should be rendered.
  • Focus should remain on that single input bar.
  • The UI should not imply an extra submitted prompt.
  • The terminal should remember the last scrolled position. If I'm reading the output at the top and when I switch and return back it should stay on the same scroll position

Impact

  • Creates ambiguity about terminal state.
  • Confuses users during prompt entry and review.

Attachments

  • Screenshot showing duplicate input bars after tab switch.
Image

Space Issue

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions