Skip to content

fix(timer): validate issue key exists before starting a timer - #59

Merged
kimpepper merged 1 commit into
mainfrom
fix/timer-start-validate-issue-key
Jul 31, 2026
Merged

fix(timer): validate issue key exists before starting a timer#59
kimpepper merged 1 commit into
mainfrom
fix/timer-start-validate-issue-key

Conversation

@kimpepper

@kimpepper kimpepper commented Jul 31, 2026

Copy link
Copy Markdown
Member
  • tl timer start <bad-key> created a timer entry with no validation
  • timer stop only checked the issue key against Jira after computing duration, right before persisting the final time entry
  • a bad key left the timer stuck running/paused forever with no way to stop it except timer delete
  • StartTimeEntry now calls SyncIssue up front and fails fast before mutating any timer state, matching the pattern already used by tl add

Fixes #56

@kimpepper
kimpepper requested a review from mstrelan July 31, 2026 01:13
`timer stop` only validated the issue key against Jira after computing
duration, so a bad key on `timer start` left the timer entry stuck
running forever (fixes #56). Validate up front in StartTimeEntry,
matching the same pattern already used by `tl add`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@kimpepper
kimpepper force-pushed the fix/timer-start-validate-issue-key branch from e403299 to 5c54942 Compare July 31, 2026 01:29
@kimpepper
kimpepper merged commit a4f0028 into main Jul 31, 2026
1 check passed
@kimpepper
kimpepper deleted the fix/timer-start-validate-issue-key branch July 31, 2026 01:31
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.

tl timer add lets you add timers for issues that dont exist

1 participant