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

未关闭
#136 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend

调研方向

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.

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

描述

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.
主要语言
Go
星标
5
派生
0
平均合并
21 小时 13 分钟
30 天内合并 PR
53

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

nebari-dev/tapas 的其他 Issue

查看 nebari-dev/tapas 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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