Repository navigation
fix(web): show a new session's first prompt; cheaper streaming render - #154
Merged
Merged
Conversation
The transcript's callback ref captured the composer inset, so React detached and re-attached the list whenever the composer was measured. LegendList reported the anchor ready in that gap, the follow hook found no list, marked the prompt positioned without scrolling, and the turn stayed hidden. Pass the follow ref straight through and set --composer-height with the list's style prop instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Replies render block by block after they finish too, so the end of a stream no longer re-parses and re-highlights the whole reply. - Finished code highlights once, from an LRU, across remounts and thread switches. - A streaming code fence highlights incrementally: completed lines keep their nodes and only new text is tokenized from the saved grammar state (about 12x less highlight time on a 120-line block). - The thinking summary scans only up to its first paragraph. - Draft message checkpoints are published without being stored in the event log; only settled messages are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fix
A new session's first prompt stayed hidden (
data-prompt-pending). The transcript's callback ref captured the composer inset, so React detached and re-attached the list whenever the composer was measured. LegendList reported the anchored prompt ready in that gap, the follow hook found no list, marked the prompt positioned without scrolling, and never revealed it. The follow ref now goes straight to the list, and--composer-heightis set through the list'sstyleprop.Performance (prompt → rendered reply)
Verified in the Electron app (Kimi K3 via GitHub Copilot)
vp check,vp run typecheckandvp run knip:checkpass.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.