Skip to content

/rebuild 在无 checkpoint 时无可见反馈,且 rebuild 完成后 UI spinner 长时间不停止 #1896

Description

@WangRenZhe

Description

在使用 /rebuild 重建上下文时遇到两个影响可用性的问题:

  1. 当尚无可用 checkpoint 时执行 /rebuildTUI 无任何可见反馈,命令像没执行一样;
  2. rebuild 在后端实际完成后,TUI spinner 长时间(5 分钟以上)不停止,导致用户误以为卡死。
  3. checkpoint 的生成时机对用户不透明,难以预知何时可执行 rebuild。

mimocode | 0.1.8
操作系统 | Windows 10 (10.0.19045)
Node | v20.20.0
可执行文件 | C:\Users\xxx.mimocode\bin\mimo.exe
上游 | opencode-ai@1.17.15 (npm 全局)

  1. 会话进行一段时间后执行 /rebuild,若此时尚未生成 checkpoint 文件,TUI 无任何提示,用户完全不知道发生了什么——是命令不存在?命令无效?还是别的错误?无从判断。
    实际系统内部是产生了反馈消息的:
No checkpoint is available to rebuild from yet — continue the conversation
and a checkpoint will be written automatically.

但这条消息没有在 TUI 中呈现给用户

2.checkpoint 生成后再次执行 /rebuild,后端实际已完成重建(assistant 侧已收到完成通知并能正常生成回复),但 TUI 的 spinner 持续转动 5 分钟以上不停止,没有任何"完成"的视觉反馈,用户误以为 rebuild 卡死。

证据

  • rebuild 后系统确实向 assistant 发送了完成通知:
    Context rebuilt from the latest checkpoint.
    Recent messages are preserved; earlier context is now summarized.
    
  • assistant 能正常基于重建后的上下文回复,说明后端链路正常。
  • 但用户端 TUI 在 rebuild 完成后 spinner 不停,持续观察 5 分钟仍在转圈,无完成提示。

3.- 上下文已明显增长(用户估计已超过 128k token),但 checkpoint 迟迟未生成。

  • 本会话中,checkpoint 最终在 checkpoint.md(11207 字节)于 11:30:55 才落盘,而用户在此之前已多次尝试 /rebuild
  • 用户无法预知"何时 checkpoint 才就绪、何时可以 rebuild"。
Image

Plugins

mimo code

MiMoCode version

0.1.8

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions