Skip to content

feat: 平铺 AI 思考与工具调用,简化等待展示 - #128

Open
hifizz wants to merge 1 commit into
mainfrom
feat/flat-thinking-sections
Open

hifizz wants to merge 1 commit into
mainfrom
feat/flat-thinking-sections

Conversation

@hifizz

@hifizz hifizz commented Sep 11, 2026

Copy link
Copy Markdown
Owner

思考和搜索过程中,原界面会重复展示多层标题与工具状态。这次按消息 parts 的顺序平铺为「思考 → 工具调用 → 思考 → 回答」,每段只有一个入口,保留正文顺序与分支锚点。

  • 思考正文使用 HeroUI ScrollShadow 限高滚动,标题位于滚动区外;仅流式思考应用文字流光。
  • 标题只复用对应的已有研究子问题,没有明确关联时显示 Thinking...,不增加模型调用。
  • 工具记录默认折叠为一行,展开查看来源;修正失败和中断状态,并按 toolCallId 去重。单次工具失败只在详情中弱提示。
  • 新增 /thinking-demo 本地交互演示,样式独立;免登录仅限开发环境 localhost / 127.0.0.1 的精确路径。

验证:pnpm typecheck、改动文件 ESLint、git diff --check,以及 assistant-trace、normalized-ui-message-pipeline、conversation-message、ui-message-parts-rendering、research-events、research-router-context、research-context、web-research-placement 共 8 项回归测试通过。

此前已使用 DeepSeek V4 Flash 和 GLM-5.3-Flash 完成真实搜索、网页读取、推理与回答验证。最终平铺布局尚未完成浏览器视觉复验;本次未运行生产构建。

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
thread-chatbot Error Error Sep 11, 2026 6:24pm UTC

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: b3949cd4-6f28-4fa5-9413-eb78b2d32fb0


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant