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
- Open a terminal tab.
- Run any command so output exists.
- Switch to another tab.
- 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.
Space Issue
