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

オープン 初心者向け
#64,566 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
498

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。