Unify a reply's reasoning and tool steps into one block, with inline file viewers

Đang mở
#136 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with ChatSession.tsx (MessageParts), ToolCall.tsx, steps.ts, and the ai-elements reasoning, tool, and code-block components named in the issue; compare their current behavior with the linked design. Trace both live replies and replies reloaded from history, then check the relevant tests. Done means reasoning and tool steps share one collapsible block, file operations show inline highlighted contents, approval and policy messages stay visible, and tests cover live and reloaded replies.

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

Mô tả

Summary

Put each reply's thinking and tool calls in one collapsible block, as in the Intelligence Hub chat design. Today every reasoning and dynamic-tool part draws its own collapsible. While a reply works, the chat shows a stack of "Thought for 4s" headers and tool cards. Steps that read or write a file should open an inline code viewer showing the file's contents. This issue also tidies the step and status wording around them. It covers ChatSession.tsx (MessageParts), ToolCall.tsx, steps.ts, and the ai-elements reasoning, tool and code-block components.

Motivation
  • Long replies are hard to scan. Each reasoning part and tool call adds its own header and badge above the answer.
  • In the design, the steps read as a few short lines ("Asked 2 questions", "Writing a file focus-time.ts"). Only the step the person opens shows its detail.
  • When pi writes or edits a file, the person should see the code itself, highlighted, not a raw JSON tool input.
  • The reply's text should come first. The work behind it should be one quiet line until someone asks to see it.
  • The steps use more than one kind of wording today. One block lets every step use the same words and states.
Acceptance Criteria
  • All of a reply's reasoning and tool steps show in one block with one header. The header says the reply is working, then sums up what was done when it finishes.
  • Each step is one line that can be opened for its detail, such as reasoning text or input and output. This matches the design.
  • Steps that read, write or edit a file open an inline code viewer. It shows the file name and the contents with syntax highlighting, and it stays a set height with scrolling for long files.
  • Approval cards and policy-denied banners still show in place, outside the collapsed block, so the person can act on them.
  • Step titles, running and finished states, and errors use one set of words. The wording is plain and matches steps.ts. No raw tool names or redundant status badges remain.
  • Replies reloaded from history group their steps and show file viewers the same way as live replies. Tests cover live replies and reloaded history.
Ngôn ngữ chính
Go
Star
5
Fork
0
Merge trung bình
21 giờ 13 phút
Pull request đã merge (30 ngày)
53

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 nebari-dev/tapas

Tất cả issue của nebari-dev/tapas

Issue tương tự

Thêm issue về Go

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.