Skip to content

v1.1.4 — 空闲检测误判修复

Choose a tag to compare

@pemagic pemagic released this 25 Feb 02:19
· 4 commits to main since this release

修复

  • 空闲检测误判:修复了 ClaudeUsage 自身刷新时启动的 claude 进程被 pgrep 误检测为"用户正在使用 Claude",导致自动休眠永远无法激活的问题

改动

  • isClaudeRunning() → isClaudeActive():双重校验机制
    • 条件 1:pgrep 检测到 claude 进程存在
    • 条件 2:~/.claude/projects/ 下有 5 分钟内修改的 JSONL 日志文件
  • 由于 fetcher 工作目录为 /tmp/claudeusage-probe,其日志不会写入 ~/.claude/projects/,因此不会干扰空闲检测