Skip to content

feat: Add Task Timer widget for real-time task execution tracking#131

Open
ileeoyo wants to merge 1 commit intosirmalloc:mainfrom
ileeoyo:feature/claude-code-task-timer
Open

feat: Add Task Timer widget for real-time task execution tracking#131
ileeoyo wants to merge 1 commit intosirmalloc:mainfrom
ileeoyo:feature/claude-code-task-timer

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
zoonderkins added a commit to zoonderkins/ccstatusline that referenced this pull request Jan 21, 2026
Merged PRs:
- sirmalloc#138: fix: support bare repo worktrees in GitWorktree widget
- sirmalloc#135: feat: add git-indicators widget
- sirmalloc#132: fix: Windows terminal width detection
- sirmalloc#131: feat: Task Timer widget
- sirmalloc#123: feat: Add backups for settings.json
- sirmalloc#121: feat: Add configurable context warning alerts
- sirmalloc#120: feat: Add Mercurial support
- sirmalloc#119: feat: Add Git Root Dir widget
- sirmalloc#58: feat: Add support for local/project settings

Fixes Issues:
- sirmalloc#117: Windows tput cols creates null file
- sirmalloc#122: claude's settings.json deleted/lost
- sirmalloc#112: Add mercurial support

Additional fixes:
- Resolved circular dependency in renderer.ts/widgets.ts
- Fixed lint errors in multiple files
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