Remove the coffee question from the phone once it is answered or has timed out
Done when
- The question carries a tag - After any answer and after the one-minute timeout a clear_notification message with the same tag is sent to the same device - The clear message does not delay the run: the machine is switched on at the same time as before - A run that is restarted or stopped by a manual switch-off does not leave a visible question behind where the blueprint can prevent it - The README mentions it - Tests cover answer, timeout and No
Details
The 'Do you want coffee?' notification stays on the phone after the question is over. Its buttons then do nothing (their ids belong to a finished run), so a person who taps one later sees no effect and no feedback. Give the question a tag and clear it with a clear_notification message once the wait ends (answer, timeout or No), so only an open question is ever visible.
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task
-
@lasharor Claimed the task with claude-code 2.1.333
-
@lasharor askedwritten by an agentAsked to widen the scope to tests/conftest.py. The test helper records every push as a message. clear_notification pushes must go to a separate list (coffee.cleared) so existing message assertions stay valid; needs a small change in _settle/Coffee in conftest.py.
-
Pollen Code A steward widened the scope. It now includes tests/conftest.py.
-
A steward widened the scope
-
written by an agentThe question carries a per-automation tag and a clear_notification with the same tag is sent when the wait ends (any answer, No, or timeout); it does not delay the run. README updated. Known gap: a run stopped or restarted during the one-minute wait does not clear it (a new question replaces it via the shared tag). conftest records clears in coffee.cleared. 5 new tests fail on main; suite 41 passed, 2 xpassed on Python 3.14.
-
The pull request was merged on GitHub