Repository navigation
fix(chat): keep reopened long returns readable - #9580
steven-kid wants to merge 1 commit into
Conversation
Signed-off-by: Yuchao Wang <stevenkid404@gmail.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
重新打开已有委派结果的 Chat 使用者。 等待原生长答复送达后重开对话,或停在旧消息上继续阅读。 File 和 SQLite 的打包体验均在桌面及窄屏显示送达和首段。主动上滚后原生新消息保持阅读位置,Latest 恢复跟随。 交付范围是已完成长答复的重开位置和原有阅读导航。
改动思路 / Approach
把现有跟随 ref 与渲染状态放在同一 setter。跟随时关闭浏览器自动锚定,主动阅读时恢复它,长答复的首屏避开固定 Find。 保留现有滚动、对话历史和原生回传各自的 owner。 交付范围是已完成长答复的重开位置和原有阅读导航。 returnedAnswerStart setConversationFollowing PersonalWorkspacePage
具体改动 / Changes
精确提交 0971841,基线 811c1a1。核对了全部 5 个净路径(+69/-12)。两个现有 UI owner、一处浏览器回归及一段双语使用说明,含一张被正文引用的合成读屏图。
- READABLE-RETURN-REOPEN。重建基线在桌面显示首段 y=969.66,阅读区止于 y=726,同一读回用例超时。File 和 SQLite 的打包体验均在桌面及窄屏显示送达和首段。主动上滚后原生新消息保持阅读位置,Latest 恢复跟随。
- READING-CHOICE-AND-STATE。File/SQLite 两组各验证 61 条委派、20,000 字符回传完整、取消恢复和更新后的阅读位置,阅读启动 0 个 Turn。以同一后端和脚本比较两个重建资源目录。精确头 File/SQLite 全走通。Ego 浏览器分别确认 1440 与 390 宽度可直接读到首段,独立入口仍提供证据尾部。
- PUBLIC-GUIDE-IMAGE。两端 Chat 打包构建成功,精确头 4 项直接检查及 11 项本地预合并自动检查通过。门禁仍记录二进制图的手工检查项,已独立核对图像正文、引用与 PNG 元数据。
以同一后端和脚本比较两个重建资源目录。精确头 File/SQLite 全走通。Ego 浏览器分别确认 1440 与 390 宽度可直接读到首段,独立入口仍提供证据尾部。 两端 Chat 打包构建成功,精确头 4 项直接检查及 11 项本地预合并自动检查通过。门禁仍记录二进制图的手工检查项,已独立核对图像正文、引用与 PNG 元数据。 验收依据
对主干的风险 / Risks
窄屏首段可读,长答复下半部分继续通过滚动或独立阅读页访问。流程依赖现有浏览器滚动机制,暂不外推到其他引擎。 实际观察为 macOS 上 Chromium 和合成数据,未运行原生桌面安装、其他引擎或远端 CI。 退回总览后可再打开同一对话,想追到末尾时使用 Latest,想持续阅读长内容时可打开既有独立阅读入口。 File/SQLite 两组各验证 61 条委派、20,000 字符回传完整、取消恢复和更新后的阅读位置,阅读启动 0 个 Turn。
我的整体评价 / Verdict
APPROVE。 相同打包阅读用例在基线复现,File/SQLite 两个精确头用例通过。已手工核对当前提交包含的合成指南图,保留预合并工具对二进制检查记录的状态。
桌面与窄屏在 Find 下方都可读到送达及结论开头,已通过、反例和未知三类信息保留原来的可读层级。独立阅读入口保留完整尾部。 未核验原生容器、其他浏览器引擎或安装后真实账户数据。
English verdict: APPROVE at 0971841. The same packaged scenario fails on the base and passes with both File and SQLite. Reopening shows the answer start; explicit reading stays in place. The synthetic guide image was visually inspected.
Goal And Delivered Outcome
Reopening Chat after a completed long delegation return can leave the answer below the viewport. On unmodified
main, the first paragraph started at y=971.66 while the reading viewport ended at y=726. The complete answer remained in history, but the owner could not immediately read it.The browser's automatic scroll anchoring moved the old transcript upward as the native return arrived. The App interpreted that movement as a reader scrolling up and stopped following. This change gives the App sole anchor ownership only while following; ordinary browser anchoring resumes when the reader scrolls up, finds a message or opens original context. Returned answers also clear the fixed Find toolbar.
smoke/delegation-read-cancel.tscontract. No issue closure claimed.mainat811c1a1f66652d3fc3b9830d467e14b45b7423c1.Author Declaration
apps/presentation/dashboard/smoke/delegation-read-cancel.tsat the base above; the reproduced defect is the scoped request.returnedAnswerStart; real File/SQLite packaged regression, strengthened against toolbar occlusionSelf-check: current contribution/design guidance, related PRs and existing reading owners inspected. No new scroll controller, geometry heuristic, timeout increase or weakened assertion.
Scope And Continuation
Complete within this scope: two existing UI owners, their existing browser regression, and a short bilingual user-guide section with one canonical instructional image. Production publication/storage, permissions and non-conversation scrolling are unchanged. The shared follow setter keeps ref/rendering updates together; broader page refactoring is unnecessary for this repair.
Validation
09718417b5156c8b89a23eb9a60b0acb468c1aff; tests ran on the identical implementation before committing.15245026399and Chromium 151.0.7922.34. Its retained bundle tree SHA-256 is9aa2d47e6b2d203ddc61d6a50693beb520d88302d4a5c0b806409ee8262934be. Patched rebuilt bundle passes.npm run build:chat,npx tsc --noEmit,git diff --check, and changed-text public-boundary scan.node --experimental-strip-types apps/presentation/dashboard/smoke/delegation-read-cancel.ts: real File and SQLite Chat/Inbox owners, desktop 1440px and narrow 390px, original cancellation/recovery and full-content checks plus explicit reading/new-arrival/Latest/Overview parity. No model execution.node apps/presentation/dashboard/smoke/conversation-reply-browser-smoke.mjs --history-images: latest positioning, scrolling, inline retry and original-message link; zero model Turns.manual_review_required, with one binary-image review hold below..mjsimport and TS18048 in the original catch. Exact unmodified-base source produces the same two diagnostics; configured project typecheck passes. No unrelated type cleanup included.Commands use the selected checkout's Python/Playwright and Chromium headless shell. Linux cloud, Python 3.12.14, Node 24.19.0, Chromium 151.0.7922.34. No full Chat shard, full Python suite, native desktop installation, other browser engine or Windows/macOS qualification in this PR. No all-green hosted CI claim.
Frontend / Visual Evidence
The image's durable consumer is the new reading section in
docs/guides/personal-workspace-user-guide.md; this is one canonical operator-guide image, not a capture pack. Desktop and narrow populated pages were inspected. Existing waiting cards, delivery status, negative evidence, missing cost and next action remain distinct; no new visual hierarchy, color or motion introduced.Type / Area / Direction
Boundary Checklist