refactor: break up _gather_system_snapshot() into focused helpers #550

Closed
kimi wants to merge 0 commits from kimi/issue-540 into main
Collaborator

Extract 5 helpers from the 86-line method:

  • _snapshot_time() — local clock formatting
  • _snapshot_thought_count() — today's thought count query
  • _snapshot_chat_activity() — recent chat lines
  • _snapshot_task_queue() — task queue summary
  • _snapshot_workspace() — workspace update lines

Each helper is independently error-handled, keeping the same graceful-degradation guarantees.

Fixes #540

Extract 5 helpers from the 86-line method: - `_snapshot_time()` — local clock formatting - `_snapshot_thought_count()` — today's thought count query - `_snapshot_chat_activity()` — recent chat lines - `_snapshot_task_queue()` — task queue summary - `_snapshot_workspace()` — workspace update lines Each helper is independently error-handled, keeping the same graceful-degradation guarantees. Fixes #540
kimi added 1 commit 2026-03-20 00:55:29 +00:00
refactor: break up _gather_system_snapshot() into focused helpers
All checks were successful
Tests / lint (pull_request) Successful in 4s
Tests / test (pull_request) Successful in 1m3s
93a7dfa678
Extract 5 helpers from the 86-line method:
- _snapshot_time() — local clock formatting
- _snapshot_thought_count() — today's thought count query
- _snapshot_chat_activity() — recent chat lines
- _snapshot_task_queue() — task queue summary
- _snapshot_workspace() — workspace update lines

Each helper is independently error-handled, keeping the same
graceful-degradation guarantees.

Fixes #540

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy closed this pull request 2026-03-20 01:02:37 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#550