desktop: New timeline collapses completed thinking even when detail is "expanded"

未关闭 适合新手
#64,566 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
desktop

调研方向

issue 指向构建后的 renderer 资源 out/renderer/assets/route-*.js 中新的 timeline 代码,包括 e_() 和 Qg()。追踪这些调用位置到源文件,然后在 timeline 详细程度偏好设置为 Everything 时,比较流式和已完成的渲染路径。完成的标准是,已完成和非流式的 reasoning 行保持展开,与旧版 timeline 的行为一致。

由索引模型根据 Issue 内容生成。

描述

area/desktop platform/windows type/feature version/v2
Description

With the New timeline experiment enabled and Settings -> Timeline detail set to Everything, a thinking block is expanded while it streams and collapses as soon as the turn completes.

The stored preference is correct: general.timelineDetail.thinking = {"placement":"separate","details":"expanded"}. Turning the New timeline experiment off keeps the same blocks expanded, so the problem is in the new timeline path.

Expected: with details: "expanded", completed thinking blocks stay expanded.

Actual: they collapse when the turn finishes, and any non-streaming reasoning row is collapsed from the start.

Code pointer in out/renderer/assets/route-*.js:

function e_(e, t) { return t && e.thinking.details === "expanded" }

With t === false the expression is false regardless of the setting:

  • streaming render: e_(e.timelineDetail(), !0) expands
  • completed render: e_(e.timelineDetail(), !1) always collapses
  • Qg() for non-streaming reasoning rows: e_(e, !1) always collapses
Plugins

none

OpenCode version

2.3.1 (desktop)

Steps to reproduce
  1. Settings -> Experimental -> enable New timeline
  2. Settings -> Timeline -> Everything
  3. Send a prompt that produces reasoning
  4. The thinking block expands while streaming, then collapses when the turn ends
  5. Turn New timeline off and repeat: the same blocks stay expanded
Screenshot

No response

Operating System

Windows 11 Pro for Workstations 10.0.26300 (win32 x64)

Terminal

n/a (desktop app)

主要语言
TypeScript
星标
227k
派生
30.7k
平均合并
4 小时 35 分钟
30 天内合并 PR
498

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。