Update CLAUDE.md with release tagging instructions and enhance is_question logic to detect question marks anywhere in the text

This commit is contained in:
2026-08-05 17:53:32 -06:00
parent c4e805defd
commit 8d4751d80f
3 changed files with 34 additions and 12 deletions
+3 -2
View File
@@ -59,11 +59,12 @@ def test_display_keeps_emoji_but_drops_markdown():
assert for_display("* one\n* two") == "• one • two"
def test_is_question_only_fires_on_a_trailing_question():
def test_is_question_fires_when_a_question_mark_appears_anywhere():
assert is_question("Ready to run a command or start a project?")
assert is_question("It's 7:15 AM. Want me to set a timer?")
assert is_question("What time is it? It's 7:15 AM.")
assert is_question("Can you help me with this? I need a quick answer.")
assert not is_question("It's 7:15 AM on July 23, 2026.")
assert not is_question("What time is it? It's 7:15 AM.") # asked in passing
def test_is_question_ignores_trailing_decoration():