[PR #6894] Fix symmetric padding in TUI input field #12152

Closed
opened 2026-02-16 18:17:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6894

State: closed
Merged: Yes


Fixed. The change was straightforward:

File: packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx:752

Change: paddingRight={1}paddingRight={2}

This makes the horizontal padding symmetric (2 on both left and right sides), so the cursor and text won't touch the right edge of the input box anymore.

Closes #6890

New%20session%20-%202026-01-05T01%3A42%3A55.578Z
opencode session  |  github run

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6894 **State:** closed **Merged:** Yes --- Fixed. The change was straightforward: **File:** `packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx:752` **Change:** `paddingRight={1}` → `paddingRight={2}` This makes the horizontal padding symmetric (2 on both left and right sides), so the cursor and text won't touch the right edge of the input box anymore. Closes #6890 <a href="https://opencode.ai/s/jEz1tOvs"><img width="200" alt="New%20session%20-%202026-01-05T01%3A42%3A55.578Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI2LTAxLTA1VDAxOjQyOjU1LjU3OFo=.png?model=opencode/claude-opus-4-5&version=1.1.1&id=jEz1tOvs" /></a> [opencode session](https://opencode.ai/s/jEz1tOvs)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/anomalyco/opencode/actions/runs/20702616378)
yindo added the pull-request label 2026-02-16 18:17:04 -05:00
yindo closed this issue 2026-02-16 18:17:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12152