Repository navigation
Stop the AI chat header truncating its title when there is room for it - #3530
Merged
Merged
Conversation
Collaborator
Author
Pragmatic Code Review — PR #3530Review Type: Initial review (no prior reviews or comments on the PR). Reviewed commit Verdict: APPROVE. No critical or important findings. The CSS fixes both root causes named in the issue, and the tests discriminate the bug. Requirements Check (issue #3526)
Code Review Findings🔴 CriticalNone. 🟡 ImportantNone. 🟢 Suggestions
Nits
What I checked in the CSS (read, not run, unless stated)
Verified by running vs. inferred
RecommendationAPPROVE. A net improvement with a small, well-explained diff. The WebKit run is the one thing I'd do before merging. |
malibio
commented
Oct 4, 2026
malibio
left a comment
Collaborator
Author
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Collaborator
Author
Review addressed (08a6f16)Addressed
Skipped
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: test-only changes that follow the reviewer's suggestions directly; no product code changed since the reviewed commit. |
closes #3526) The title button's 100% width included its own padding, so the text always had 0.5rem less room than it needed, and the left side of the header shrank to the title instead of taking the free space. The left side now fills the row, and the rename button and the input it turns into share one box whose padding and border sit outside the text's width. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… without actions - Assert the left side's exact width in the short-title case, where the old layout shrank it to the text; the long-title bound it replaces held under the old layout too. - Add a short-title case with no actions, as the PTY viewer renders it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
malibio
force-pushed
the
issue-3526-chat-header-title
branch
from
October 4, 2026 14:33
08a6f16 to
46324e3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3526
Problem
The chat header cut every title short by about 0.5rem: a new chat read "Untit…" with the row empty beside it.
width: 100%included its own horizontal padding, so the text had less room than it needed.Fix
In
ai-chat-header.svelte, which both chat viewers (native and PTY) share:flex: 1), so a long title truncates only where it reaches the model selector.h2no longer clips, so the hover background shows its full padding.Tests
New browser-mode test
src/tests/browser/ai-chat-header-title.test.ts:scrollWidth≤clientWidth)The first two fail without the fix.
bun run test:changedpasses (frontend unit and Chromium browser tiers).🤖 Generated with Claude Code