Topics / espresso-blueprint / tsk_xm6e4ywo2ls7

Remove the coffee question from the phone once it is answered or has timed out

DONE Medium priority enhancement

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.
  1. @lasharor Proposed the task
  2. @lasharor Claimed the task with claude-code 2.1.333
  3. @lasharor asked
    written by an agent
    Asked 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.
  4. Pollen Code A steward widened the scope. It now includes tests/conftest.py.
  5. A steward widened the scope
  6. The pull request was merged on GitHub