GeezerVison is showing github.com — fix(web): the citation comment box stays put while you dictate by medric-z · Pull Request #33043 · pingdotgg/t3code
Conversation
medric-z
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Dictating into a citation comment moves the comment box while you talk, and once the transcript gets long, the newest words are hidden.
The live transcript in TextFieldSpeechControls grows with each transcript chunk until it reaches its max-h-24 cap (#33140). The citation comment popover is anchored to the end of the quote (side="bottom", align="end"), and Base UI re-runs collision avoidance on every resize. When the quote is in the lower part of the window, the growing box flips above the quote. There, its bottom edge stays pinned to the quote, so each further chunk pushes it 20–40px higher until the cap is reached. After that, the transcript is an overflow-y-auto box that stays scrolled to the top, so the words you're saying now are out of view.
Change
While recording or transcribing, the live transcript renders at a fixed height (h-24, the current cap) inside a flex-col-reverse scroller, so it stays pinned to the newest words without any JS. The styling from #33140 is unchanged. The form now resizes once, when recording starts, and not again until dictation ends. The full transcript still lands in the textarea when dictation finishes.
The same control is used in the PR review form, PR comment form, PR review annotation reply, and diff comment form. There, the transcript also stops pushing the content below it down while you talk, and shows the newest words.
Scope and approval
No prior issue or discussion. This is submitted under the very small, focused fix for an obvious bug exception, for these reasons:
- Obvious bug: a comment box that moves away from the quote while you dictate, and a live transcript that hides the words you're currently saying, aren't intended behavior. The chat composer's live transcript already avoids both.
- Purpose and behavioral impact: it only changes how the live transcript is laid out while dictating (fixed height, scrolled to the newest words). What gets transcribed, the text that lands in the field, the controls, shortcuts and styling all stay the same, and so do product defaults and workflows.
- Changes needed: one element in one shared component (
TextFieldSpeechControls), 8 lines. No contract, server or settings changes.
Verification
Real AssistantCitationChip (Base UI positioning, app CSS) in the browser test harness, with the speech hook stubbed to recording and transcript chunks fed in one sentence at a time. Popup side, y and height after each chunk, quote at 60–80% of the window height (1600×620, 1600×640, 1600×900). Example: 1600×620, quote at y=409:
|
recording starts |
chunk 1 |
chunk 2 |
chunk 3 |
chunks 4–8 |
newest words visible |
main (bc647ed) |
bottom, 436, 114 |
bottom, 436, 156 |
top, 210, 196 |
top, 188, 218 |
top, 188, 218 |
chunks 1–2 only |
| this branch |
top, 188, 218 |
top, 188, 218 |
top, 188, 218 |
top, 188, 218 |
top, 188, 218 |
every chunk |
All five scenarios on main flip above the quote and move up on the following chunk or two. From chunk 3 on, the newest words are hidden. On this branch, the box reaches its final position when recording starts and stays there for the whole recording, and the newest words are visible after every chunk.
The recording below is from before #33140 added the cap. At that point the transcript was unbounded, so the drift went on for the whole recording. The left side is the old main, the right side is this fix:
citation-dictation-before-after.mp4
Before (main before #33140, 78 words in) |
After |
 |
 |
vp run check:changed passes.
vp test run --project browser on AssistantCitationChip.browser.test.tsx, PullRequestReviewForm.browser.test.tsx and DiffPanel.browser.test.tsx passes (10 tests).
Not checked: a live microphone in the desktop app with this branch built. The bug was first seen in Desktop 0.1.8-nightly.20261108.4367 (Linux), dictating with the local Parakeet model. The harness drives the same component tree with the voice state stubbed.
Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 5d1755f
Macroscope's review found this PR approvable — The shared dictation preview now stays in a fixed-height scrolling area, preventing transcript growth from moving comment forms. The change is limited to presentation; recording and submitted text remain unchanged.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The speech preview now appears only during recording or transcription. It uses a fixed-height, vertically scrollable container with a reversed column layout. The preview retains committed and tentative text.
Changes: Speech preview
| Layer / File(s) |
Summary |
Preview display behavior apps/web/src/speech/useTextFieldSpeech.tsx |
The preview appears during recording or transcription. Its fixed-height container scrolls vertically and uses a reversed column layout. The paragraph retains committed and tentative text. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: juliusmarminge, maria-rcks
Merge Risk: Minimal · up to de7d9
-
The dictation preview now sits in a fixed-height scrolling area, so the comment popover should stay put while the user speaks. No merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the citation comment box no longer moves while the user dictates. It follows the conventional commit format and is specific to the fix. It matches the summary, which l… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The description follows the repository template closely. It has the Problem, Change, Scope and Verification sections, and each is substantively filled in. The Problem section states the bug and the re… |
Full details: Title check
-
Explanation
The title names the main change: the citation comment box no longer moves while the user dictates. It follows the conventional commit format and is specific to the fix. It matches the summary, which limits the speech preview to recording or transcribing and makes it a fixed-height scroller.
Full details: Description check
-
Explanation
The description follows the repository template closely. It has the Problem, Change, Scope and Verification sections, and each is substantively filled in. The Problem section states the bug and the reproduction context: dictating into a citation comment moves the box, and the newest words get hidden once the transcript reaches its cap. The Change section explains the fixed-height, flex-col-reverse scroller and the single resize on recording start. The Scope section gives a justification under the 'very small, focused fix for an obvious bug' exception and explains why no prior issue is linked. The Verification section lists the browser harness scenarios with observed before/after positioning data, before/after screenshots and a recording, the commands run, and what was not checked (a live microphone in the desktop app). The template also asks for the model and harness used, and the author provided 'Claude Opus 5.5 in Claude Code', which satisfies that item. Minor gaps: the Scope section cites an issue (#33140) as context but does not link a specific issue for the bug itself, and the PR objectives mention 9 tests while the description says 10. That discrepancy is not a template failure but is worth reconciling.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 5d1755fceda62bbfa28230ee4eee0295b2d0a895 and de7d9e8.
Files selected for processing: 1
-
apps/web/src/speech/useTextFieldSpeech.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The live transcript in text-field dictation grows with each transcript
chunk until it reaches its max-h-24 cap. Inside the citation comment
popover, each of those resizes re-runs Base UI collision avoidance, so
a quote in the lower part of the window sends the box above it, where
it creeps upward with every chunk. Once the cap is reached, the
transcript stays scrolled to the top, so the newest words are hidden.
The transcript box now has a fixed height for the whole recording and
is a flex-col-reverse scroller pinned to the newest words. The form
resizes once, when recording starts, and not again while you talk.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|