TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Fixing ChatGPT's losing-focus bug

2 pointsby oceanparkwayover 1 year ago
When you select a paragraph in ChatGPT&#x27;s UI as it&#x27;s streaming in, your focus on the element is continuously lost each time a new text character streams in, so if you try and copy and select something mid-stream, it&#x27;s a moving target. I wrote up a simple&#x2F;quick fix.<p>I imagine landing the actual fix for them would be more difficult given they embed different elements alongside text, e.g. code blocks, which is where I first noticed this issue (trying to select a short snippit of code from a long block as it streams in).

1 comment

hidelooktropicover 1 year ago
I love this and was trying to recreate this (it used to work on ChatGPT) using pure HTML and JS. Would love to know what exactly react is doing that allows it to be selectable in this way, does it append to text node? What is allowing to work if it&#x27;s streaming a few layers down like an li inside a ul inside an li inside an ol?
评论 #38867603 未加载