Skip to content

Conversation

@drlucaa
Copy link
Member

@drlucaa drlucaa commented Jan 24, 2026

Closes #56

@drlucaa drlucaa changed the title feat(tui,telemetry): implement cached task indicator feat(#56): implement cached task indicator Jan 24, 2026
@drlucaa drlucaa force-pushed the feat/tui-cached-indicator branch from 16e8a0e to f07a0f6 Compare January 24, 2026 00:52
@codecov
Copy link

codecov bot commented Jan 24, 2026

Codecov Report

❌ Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/internal/adapters/linear/renderer.go 90.47% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Add visual indicator (⚡ + dimmed style) for cached tasks:
- Extend MsgTaskComplete with Cached bool field
- Extract same.cached span attribute in TUIBridge.OnEnd
- Update Renderer port interface signature
- Set TaskNode.Cached in Model.Update handler
- Add unit tests for attribute extraction and state update
- Update linear renderer to display cached tasks with ⚡ icon
@drlucaa drlucaa force-pushed the feat/tui-cached-indicator branch from f07a0f6 to 594643e Compare January 24, 2026 01:24
- Add TestRenderer_TaskCached to cover cached task completion path
- Add TestRenderer_StopWithCompletedTask to test buffer cleanup edge
case
- Improves coverage from 96.2% to 98.8%
- OnTaskComplete function now has 100% coverage (was 88.2%)
- All tests pass with race detector
- Zero linting issues
@drlucaa drlucaa marked this pull request as ready for review January 24, 2026 10:44
…iate units

- Add formatDuration helper to display durations with µs/ms/s units
- Use float division to preserve decimal precision
- Cap all duration displays at 2 decimal places
@drlucaa drlucaa merged commit 37bc247 into main Jan 24, 2026
6 checks passed
@drlucaa drlucaa deleted the feat/tui-cached-indicator branch January 24, 2026 11:09
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.

feat: Add Cached Status Indicator to TUI and Linear Renderer

2 participants