Repository navigation
Open recorded history first on the Research tab - #9423
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI (runtime_reported, xhigh)
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
已打开 Goal 后进入 Research 的读者需要先核对时间线、记录覆盖、早期失败和之后的结果。 同一 Goal 有记录和保存案例时,原页先开案例,用户需要一次切换才能查到记录。 在桌面与 390 px 打开同一含四条记录、两个时段和保存案例的合成 Goal。 打包 UI 从真实隔离 SQLite 显示 4 / 4 条记录和 18 小时轴。按键打开案例,Back 恢复时间线,显式版本链接定位到章节。 本轮核对打包 Chat、本地 SQLite 和合成记录。生产安装以及其他尺寸未复验。
503 留在历程页并显示重试。键盘执行重试后原端点恢复 4 / 4。成功且为空的 Goal 自动打开保存案例。三个来源的文件与状态均未改写。
改动思路 / Approach
复用 Explore HTTP 和已有案例 catalog、版本、章节与 URL。页面只决定哪一份已知内容先显示。先让历程请求完成,保存的案例只有在显式选择或成功读空后才接管页面。 现有入口依据
具体改动 / Changes
精确 head a8ad6d804797ee3252211d9ad01ea6508abd1685,比较基线 35cb1d701a4ac85cf4430b48891197a979723d80。3 个文件,增 121 行删 5 行。默认条件只改现有 Research 选择器,另加合成数据和浏览回归。
关键代码讲解
-
readCaseMode。解析当前 Goal 的明确 case/history 地址。 源码 -
history 读取 effect。分页核对完整覆盖,维护失败状态和重试。 源码 -
readingCase。优先明确的案例链接,普通链接在成功读空的本地 Goal 才自动进入案例。 源码 -
Shortest ordinary journey。普通 Research 入口直接显示可用完整历程及覆盖,显式案例路径保留。 定位
对主干的风险 / Risks
503 留在历程页并显示重试。键盘执行重试后原端点恢复 4 / 4。成功且为空的 Goal 自动打开保存案例。三个来源的文件与状态均未改写。
语义与 CI 对齐
git diff --check、两份 Chat 构建与资产验证通过。Ego 在 1200 px 和 390 px 核对打包 UI。标准本地 premerge 选中的 8 项通过。 503 来自隔离 HTTP 代理,其余历史、案例章节和重试成功来自真实本地端点。未查询托管 CI。
我的整体评价 / Verdict
APPROVE。 完成现有页的默认阅读顺序修复,选择视图不会触发研究执行或修改原记录。
桌面首屏直接呈现范围和时间线;390 px 保留范围及模式切换,短距离滚动可读完整 18 小时轴。 已从打包 Chat 核对 1200 px 和 390 px。生产安装和其他尺寸未复验。
English verdict: APPROVE. The packaged Research entry shows recorded history by default and preserves explicit case links, the empty fallback, and retry after a history read failure.
Signed-off-by: huangruiteng <huangrt01@163.com>
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-5 · OpenAI · self_reported
动机 / Motivation
从 Goal 打开 Research、需要核对覆盖、失败、阶段和后续结果的研究者,以及使用显式案例链接的读者。
修复前,普通入口显示保存案例;修复后,同一入口直接显示 4/4 条、18 小时覆盖的 History,用户可按一次切换到案例,显式 case URL 仍直接定位版本与章节。
普通且有历史时默认 History;显式 case true 时直接案例;成功空历史自动案例;history 失败停留 History 并提供 Retry。
本 PR 不启动新的研究分析、不修改历史记录、不新增权威状态或改写案例内容。
改动思路 / Approach
The change uses the existing reader selector and preserves explicit URLs while making the ordinary path evidence-first。
Only default reading order and its fixture/browser regression are in scope。
入口是 GoalResearchHistory on the Research route。权威输入为 Research URL intent, completed history source, emptyHistory and explicit case availability。决定边界:readingCase in goal-research-history.tsx chooses history versus the existing case reader。结果:Read-only view switch; no research execution or source mutation。消费方:History reader, case reader and URL history navigation。失败与重试:History read failure stays in history with a visible Retry; URL links remain explicit。
具体改动 / Changes
按 docs/product/use-cases/auto-research/long-horizon-progress-design.md 的 revision f29c84f7399b29016dc229dcc7b48fbf6bf636d1 核对,shortest-ordinary-journey / explicit-case-routes / failure-and-empty-recovery 分别对应下面的行为与验证。
关键代码讲解
readingCase:Selects the current reader from URL intent, completed history and saved-case availability;Unaddressed local visits no longer open a saved case before history; empty history can still fall back。ordinary Research route assertions:Verifies history-first, case switch, Back, narrow layout, failure and Retry;New assertions distinguish ordinary history and explicit case URLs。case-study fixture:Supplies multiple versions and recorded history without private data;Adds the records-only and alternate interpretation cases needed by the browser path。
变更共 3,121 additions、5 deletions。One production selector changes the default route; one fixture enriches the test Goal; one browser smoke covers history-first, explicit cases, empty fallback, failure and no-write behavior.
shortest-ordinary-journey:普通 Research 入口默认显示完整覆盖的 History,不要求额外切换或分析;当前为 implemented。explicit-case-routes:显式版本/章节链接保持所选案例、章节和返回位置;当前为 implemented。failure-and-empty-recovery:History 读取失败保留错误和 Retry;只有成功读空才自动打开保存案例;当前为 implemented。
对主干的风险 / Risks
最强回归场景:The default change overrides an explicit saved-case link or treats a failed history read as empty。触发状态:research_reading=case or history endpoint failure。修复边界:requestedCase true bypasses automatic fallback; failure is not emptyHistory。影响范围:Research tab navigation for the current Goal。可观察性:The wrong reader, lost chapter hash or missing Retry is visible in the browser。恢复路径:Navigate explicitly or fix the failed source; no durable state is changed。
changed_invariant_positive=passed (Packaged Chat build passed and browser smoke reported study/history navigation restored.);material_negative_or_failure=passed (The smoke passed error, Retry, explicit case, Back/Forward, case-only fallback and no-write checks.);typescript_and_layout=passed (TypeScript passed; smoke passed and checked no horizontal overflow.);repository_required_checks=passed (8/8 passed with zero manual holds.);public_fixture_boundary=passed (8/8 catalog checks passed.)。
- PASSED · Packaged history-first path with 18-hour coverage:Packaged Chat build passed and browser smoke reported study/history navigation restored.
- PASSED · History 503 stays on History with Retry; explicit links keep version/chapter:The smoke passed error, Retry, explicit case, Back/Forward, case-only fallback and no-write checks.
- PASSED · Dashboard TypeScript and responsive layout:TypeScript passed; smoke passed and checked no horizontal overflow.
- PASSED · Diff-selected premerge:8/8 passed with zero manual holds.
- PASSED · Fixture remains public-safe:8/8 catalog checks passed.
我的整体评价 / Verdict
长程效果判断为 improved:The ordinary Research path exposes covered history, failures and phases without a preliminary narrative switch, while explicit case navigation remains intact。用户体验判断为 improved:The ordinary route now answers the primary evidence question immediately and keeps optional case detail one explicit action away。视觉检查覆盖桌面与 390px 历史首屏:桌面和 390px 已检查历史优先布局、完整时间轴、案例切换与失败 Retry;unverified_scope: Signed App installation and non-Chromium assistive technology were not reopened.
The refreshed head preserves saved-case URLs and empty-history fallback while making covered history the zero-action ordinary path。
English verdict: APPROVE at 5b9e93c. Recorded Research history now opens by default for ordinary Goal visits, while explicit case versions/chapters, successful empty fallback and history Retry remain verified in packaged Chat.
Outcome
Opening Research on a Goal with recorded Explore history shows its timeline and coverage, even when a saved case study exists. The existing case switch opens the saved study. An explicit case link opens its requested version and chapter.
A failed history read stays visible with Retry. An ordinary local Goal can open its saved case automatically after a successful, empty history read. Default reading contract
First-screen evidence
The existing synthetic Goal contains four canonical Explore records across 18 hours and a saved study. The public-safe captures below show the ordinary Research route before and after the change at desktop and 390 CSS pixels.
Desktop
390 CSS pixels
The full elapsed axis is visible after a short vertical scroll at 390 px.
Validation
Tested revision:
5b9e93ca670ff144e354c02025ed3f99a722757bCurrent main integrated:
f29c84f7399b29016dc229dcc7b48fbf6bf636d18/8passed with zero manual holds.