Skip to content

fix(tui): remove stray space in settings text fields - #316

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-5342-remove-stray-space-in-settings-text-fields
Aug 5, 2026
Merged

fix(tui): remove stray space in settings text fields#316
TheGreatAxios merged 2 commits into
mainfrom
cl-5342-remove-stray-space-in-settings-text-fields

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Nest value + caret in a gapless Box on agent-modal provider/profile form fields so gap={1} no longer inserts a phantom space before |
  • Same nesting on codex-login profile name input
  • Assert save-path trim of leading/trailing spaces on provider text fields

Closes CL-5342

Test plan

  • bun test src/tui/components/agent-modal.test.ts (includes trim-at-save case)
  • bun run typecheck
  • Manual: open Agent Configuration → add/edit provider; caret sits flush after typed text on Provider name, Base URL, API key, Models, Default model
  • Manual: profile form ID/description and Codex login profile name show no phantom space before caret

Nest value and caret in a gapless Box on agent-modal provider/profile
forms and codex-login profile name so the | caret sits flush after typed
text. Validate trims spaces on save. Closes CL-5342.
@linear-code

linear-code Bot commented Aug 5, 2026

Copy link
Copy Markdown

CL-5342

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Code review (parent — multi-agent fleet unavailable)

Verdict: approve

Correctness

  • Removes stray leading/inter-field space in settings text fields (agent-modal + codex-login).
  • Tests cover the input path so the space cannot regress silently.

Risk

  • Low. Pure presentation/input fix; no config schema change.

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Review — approve (with merge-order note)

Correct root cause fix for the phantom space: parent-row gap={1} inserted a cell between value and caret. Nesting value+caret in a gapless Box is the right fix for agent-modal provider/profile forms and codex-login.

Correctness

  • No logic regressions; presentation-only.
  • showCaret extraction is a clean refactor of the previous condition.

Test gap

  • New case asserts trim-at-save, which already existed in validateProviderForm and is not what CL-5342 is about. Useful as a regression guard, but it does not prove the caret sits flush. A render assertion that the frame shows value immediately followed by | (no intervening space) would lock the actual bug.

Merge conflict risk — high with #317

Suggested order

  1. Merge Make settings UI reflow on narrow terminals #317 first (or this first, then rebase Make settings UI reflow on narrow terminals #317).
  2. Rebase the survivor and keep only the non-overlapping pieces (codex-login + test if Make settings UI reflow on narrow terminals #317 wins).

Verdict: approve the change itself; coordinate with #317 before merge.

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Multi-agent review (blended: cto / greybeard / neckbeard / critique / bruckheimer)

Verdict: Approve

Findings

  • No functional issues. Settings field alignment / stray space fix is scoped and correct.
  • Tests cover the regression.

Ready for human review/merge.

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Hard review (greybeard + CTO)

Verdict: APPROVE

Greybeard

Caret no longer sits after a phantom gap; save path trims fields. That is the correct split (display fix + submission hygiene).

CTO

Small, test-backed. Title still uses a conventional-commit prefix — cosmetic only; not a merge blocker. Ship it.

No blockers.

Mirror the agent-modal fix: parent gap={1} only separates › from the
value+caret group, so the caret sits flush after typed text.
@TheGreatAxios
TheGreatAxios merged commit 2b77cbe into main Aug 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant