TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Fixing ChatGPT's losing-focus bug

2 点作者 oceanparkway超过 1 年前
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

hidelooktropic超过 1 年前
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 未加载