Repository navigation
Conversation
--when tommorow was refused with a "did you mean" hint, but the same slip with a time (tommorow@9am) was compared whole against the keywords, never came within two edits of one, and went to Things as typed. The typo check now looks at the word before the @, and the hint keeps the time. A keyword or weekday name before the @ is left alone: monday is two edits from today. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_013sKKzsVkCbpmTQJtETQk7d
Owner
Author
|
The The failure is not from this diff. govulncheck reports GO-2026-6859 in the standard library ( The fix already exists as #471 ( Generated by Claude Code |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Symptom
A misspelt
--whenkeyword is refused with a hint, but only when it stands alone. Put a time after it and it goes to Things as typed:Things does not know the word, so the to-do is created with no date and no reminder.
edit --whenhas the same gap, and when the edit carries another change it is confirmed with no warning at all (the first item in #425), so the missed reminder goes unnoticed.After this PR:
Nothing is sent.
edit,project addandproject editget the same refusal, since they all go throughNormalizeWhen.importalready refused this value; its message now carries the hint.Cause
NormalizeWhencompared the whole value against the keywords.tommorow@9amis more than two edits fromtomorrow, so the typo check never fired and the value fell through as a free phrase.Fix
The typo check now looks at the word before the
@, and the hint keeps the time the user typed. A keyword or weekday name before the@is skipped first, becausemondayis two edits fromtodayand would otherwise be flagged;checkWhenShapehas already judged its time by that point. Phrases and abbreviated weekdays before an@(next friday@noon,fri@9pm,tonight@9pm) still pass through as before.Tests
TestNormalizeWhenRejectsTyposWithTimeininternal/things/dates_test.gowas written first and failed on all four typo cases before the change. It also pins the values that must keep passing (tomorrow@18:00,Monday@9pm,evening@6pm,fri@9pm,mon@9pm,next friday@noon,tonight@9pm).make testpasses.make lintreports 0 issues with golangci-lint v2.12.2, the version CI pins.Docs
README.md,docs/content/commands.mdandinternal/skill/SKILL.mdnow say the typo check covers a keyword with a time after it.🤖 Generated with Claude Code
https://claude.ai/code/session_013sKKzsVkCbpmTQJtETQk7d
Ran as part of a weekly bughunt routine.