Skip to content

cpu 过高卡顿 #436

@swhxiaochenzi123

Description

@swhxiaochenzi123

What happened?

问题描述
iFlow CLI 在执行过程中会频繁卡住,加载圆圈停止转动,按 ESC 键后能正常继续执行。当系统 CPU 使用率达到 99%
时,这种现象更容易出现。

环境信息

  • 操作系统:Windows 11 (版本 10.0.26200)
  • PowerShell 版本:5.1 (Build 26100.7705)
  • iFlow CLI 版本:0.5.18
  • 终端类型:ConsoleHost (PowerShell)

复现步骤

  1. 在高 CPU 负载环境下运行 iFlow CLI
  2. 执行任意操作(包括简单的命令或等待响应)
  3. 观察到加载动画停止,界面无响应
  4. 按 ESC 键
  5. 程序恢复正常继续执行

预期行为
程序应该流畅运行,不因 CPU 负载高而停止响应。

实际行为
程序会"卡住",需要按 ESC 才能继续。

其他信息

  • 按 ESC 后程序能正常继续,说明不是真正的死锁
  • 这种行为表明可能与输入处理、事件循环或异步操作调度有关
  • CPU 使用率高时更容易触发
  • 问题在 Windows 11 + PowerShell 5.1 + iFlow CLI 0.5.18 环境下出现

What did you expect to happen?

修复他

Client information

Details
$ iflow /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    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