Skip to content

Conversation

@ileeoyo
Copy link

@ileeoyo ileeoyo commented Dec 25, 2025

概述

新增 Task Timer widget,实时显示 Claude Code 任务执行时间。

功能特性

  • ⏱️ 实时显示任务执行时长(执行中:1分23秒)
  • ✅ 任务完成后显示总耗时(执行完成:2分45秒)
  • 🔄 支持多个 Claude 实例独立计时
  • 📦 一键安装:通过 TUI 界面自动安装 hooks
  • 🎨 支持 Raw Value 模式显示

主要变更

  • 新增 TaskTimer widget 实现
  • 新增 TaskTimerSetup TUI 组件用于 hook 安装
  • 新增 timing_hook.sh 脚本模板
  • 扩展 claude-settings.ts 支持 hook 安装/卸载
  • 更新 README 文档

使用方法

1. 运行 `npx ccstatusline@latest`
2. 选择 "⏱️ Task Timer Setup"
3. 按 `(i)` 安装 hooks
4. 在 "📝 Edit Lines" 中添加 Task Timer widget

  - Add TaskTimer widget to display task execution time in status line
  - Add TUI setup interface for easy hook installation
  - Add timing_hook.sh script to track task start/stop events
  - Support multi-session with independent timers
  - Support raw value mode and smart time formatting
  - Update README with installation and usage guide
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