Skip to content

fix(chat): keep reopened long returns readable - #9580

Open
steven-kid wants to merge 1 commit into
loopx-project:mainfrom
steven-kid:roadmap-auto/20261129-report-reopen-reading
Open

steven-kid wants to merge 1 commit into
loopx-project:mainfrom
steven-kid:roadmap-auto/20261129-report-reopen-reading

Conversation

@steven-kid

Copy link
Copy Markdown
Collaborator

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.

  • Basis: reproduced shipped-reader defect, covered by the existing smoke/delegation-read-cancel.ts contract. No issue closure claimed.
  • Roadmap: S5/S12, first-use journey step 5 (reopen and recover the result/context), rather than a new feature claim.
  • Intended base: main at 811c1a1f66652d3fc3b9830d467e14b45b7423c1.

Author Declaration

  • Written by: model_agent — OpenAI Codex.
  • Specification: existing completed-return reading assertions in apps/presentation/dashboard/smoke/delegation-read-cancel.ts at the base above; the reproduced defect is the scoped request.
Criterion Disposition Owner / validation
Reopened long return starts with visible delivery status and opening paragraph implemented Existing scroll owner and returnedAnswerStart; real File/SQLite packaged regression, strengthened against toolbar occlusion
Explicit older-message reading survives new native messages; Latest restores following implemented One setter synchronizes existing follow ref and rendering; real wheel input, native append, two animation-frame flush and position readback
Preserve complete content, cancellation/recovery and read-only behavior implemented Existing 20,000-character returned body checks, 61-request fixtures, zero new Turns or delegation writes

Self-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

  • Tested revision: 09718417b5156c8b89a23eb9a60b0acb468c1aff; tests ran on the identical implementation before committing.
  • Run state: finished.
  • Input classes: synthetic.
Check kind Result Evidence / limits
regression_parity passed Unmodified base fails the original reader assertion using CI artifact 15245026399 and Chromium 151.0.7922.34. Its retained bundle tree SHA-256 is 9aa2d47e6b2d203ddc61d6a50693beb520d88302d4a5c0b806409ee8262934be. Patched rebuilt bundle passes.
static passed Dashboard npm run build:chat, npx tsc --noEmit, git diff --check, and changed-text public-boundary scan.
real_entrypoint / real_backend passed 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.
real_entrypoint passed node apps/presentation/dashboard/smoke/conversation-reply-browser-smoke.mjs --history-images: latest positioning, scrolling, inline retry and original-message link; zero model Turns.
integration passed Standard premerge automatic checks: 4 direct, 2 catalog, 8 risk-profile and 1 public-boundary check. Overall gate remains manual_review_required, with one binary-image review hold below.
manual passed Desktop and narrow before/after captures inspected. Canonical guide image matches the synthetic capture byte-for-byte; PNG contains only IHDR/IDAT/IEND, no text metadata. This does not clear the exact-head reviewer hold.
static failed Additional standalone strict smoke compilation reports TS7016 for an existing .mjs import 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

  • UI impact: changed reading position, no new controls or styling.
  • Before: desktop first paragraph below the viewport; narrow return status/opening obscured by fixed Find. Before captures were inspected and retained in ignored test output, not committed as a gallery.
  • After: delivery status and opening answer below Find; complete evidence and uncertainty stay available by scrolling. Latest and the separate-reader link retain their existing roles.
  • Packaged build, synthetic source, tested revision above; no hosted preview.

Completed synthetic answer readable below Find on a narrow screen

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

  • Bug fix
  • Test update
  • Public docs or presentation surface
  • S5/S12 operator reading and reopen recovery.
  • Shared-authority RFC fixture impact: N/A; no backend promotion or routing change.

Boundary Checklist

  • No private state, credentials, raw traces, internal links or machine paths published.
  • No duplication of maintainer-owned benchmark work; no live model workload.
  • Scoped to the reproduced reading defect.
  • No paired RFC changed.
  • Visual evidence and its actual guide consumer identified.
  • DCO Signed-off-by included.

Signed-off-by: Yuchao Wang <stevenkid404@gmail.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants