Skip to content

[FEATURE]: Collapsible thinking steps with AI-generated summary titles to reduce Desktop lag (inspired by Trae) #29212

Closed as not planned

Description

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

English:
Is your feature request related to a problem? Please describe.
The OpenCode Desktop app experiences noticeable lag when the "thinking process" output grows long. Rendering a massive, permanently expanded text block consumes resources and makes the UI sluggish. Additionally, even when expanded, it is hard to quickly understand what the model is currently doing without reading through the full output.

Describe the solution you'd like
I would like the thinking process section to be:

Collapsible – so that by default only a compact representation is shown, improving rendering performance and reducing UI clutter, similar to how Trae handles it.

Summarized with a short AI-generated title – the collapsed state should display a brief, dynamic summary (e.g., "Searching codebase for API definitions", "Analyzing error logs", "Structuring response") generated by the model itself, indicating what it is currently working on. This way users can monitor progress at a glance without needing to expand the full text.

These changes would drastically improve the Desktop experience, especially during long reasoning chains.

Additional context
Screenshots comparing the two interfaces:

OpenCode Desktop (current) – Thinking process fully expanded, causing lag and lacking summaries.

Image

Trae (desired behavior) – Thinking steps are collapsed by default, each showing a concise summary of the current task.

Image Image Image

中文

您的功能请求是否与某个问题相关?请描述。
OpenCode 桌面版在思考过程输出变长时会出现明显卡顿。渲染一个巨大且始终展开的文本块非常消耗资源,导致界面迟钝。此外,即便展开后,如果不逐行阅读,也很难迅速了解模型当前到底在做什么。

描述您想要的解决方案
我希望思考过程区域能够:

可折叠 – 默认仅显示紧凑的概括信息,从而提升渲染性能、减少界面混乱,类似 Trae 的做法。

附带AI生成的简短小标题 – 折叠状态下应显示一个动态的简短摘要(例如“正在搜索代码库中的 API 定义”、“正在分析错误日志”、“正在组织回复结构”),由模型自己生成,用于指示当前正在处理什么。这样用户无需展开就能一目了然地掌握进度。

这些改进将极大提升桌面版在长推理链过程中的使用体验。

附加上下文
两款界面的对比截图:

OpenCode(当前) – 思考过程完全展开,造成卡顿且缺少概括信息。
Image

Trae(期望行为) – 思考步骤默认折叠,每步显示当前任务的简洁摘要。
Image

Image Image

Activity

  1. github-actions commented on May 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. greatzhb commented on Jul 11, 2026

    @greatzhb

    +1 到此。正在使用 zhipuai-coding-plan / glm-5.2,它在每个回复中都会流式传输 reasoning_content。目前思考过程被渲染为一个永久的展开灰色文本块(packages/session-ui/src/components/message-part.tsx 中的 ReasoningPartDisplay,没有 Collapsible 包装器),这使得长会话难以阅读,且在桌面端会导致卡顿。

    拥有折叠/展开功能(即使没有 AI 生成的标题)也会是一个巨大的改进。很高兴看到这个问题已被分配处理。

  3. github-actions commented on Sep 10, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions