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

Đang mở Phù hợp với người mới
#64,566 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
desktop

Hướng nghiên cứu

Issue đề cập đến mã timeline mới trong asset renderer đã build out/renderer/assets/route-*.js, bao gồm e_() và Qg(). Hãy lần theo các vị trí gọi đó về các tệp nguồn, rồi so sánh các đường dẫn render streaming và đã hoàn tất khi tùy chọn chi tiết timeline được đặt thành Everything. Công việc hoàn tất khi các hàng reasoning đã hoàn tất và không streaming vẫn ở trạng thái mở rộng, khớp với hành vi của timeline cũ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)

Ngôn ngữ chính
TypeScript
Star
227k
Fork
30.7k
Merge trung bình
4 giờ 35 phút
Pull request đã merge (30 ngày)
498

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode

Tất cả issue của anomalyco/opencode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.