Skip to content

Drop sentHere: an answer from another window moves a deck's card on too - #7170

Merged
max-sixty merged 1 commit into
mainfrom
choice-walk-fixes
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
choice-walk-fixes

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Removes sentHere(event) from the package interface, which #7150 added so lf-deck could leave a card in place when another window sent the answer that closed it. Max asked why the interface needs it; it doesn't. The deck now moves a card on whenever the server's reading says an answer ended each of its obligations (the record's answered, which a comment or the agent ending a question leaves unset), and moves the page or focus only for a gesture toward the card in this window. The served event reference loses the attempt field it carried for sentHere.

To weigh: with the same deck open in two windows, a card answered in one now moves on in the other too. Leaving it in place cost an interface name for a rare path, on which the card that moves is one the user already answered.

Max asked for this on his review page and hasn't read the diff. Tests: the other-window deck test now checks that the card moves on; the deck tests around answers, the model tests of served state and obligations (607), runtime tests (1131) and the browser type check pass.

This was written by Claude Code on behalf of max-sixty

#7150 added `sentHere(event)` to the package interface, with the attempt
it reads on each served event reference, so the deck could leave a card
in place when another window sent its closing answer. Max asked why the
interface needs it and wants the interface kept small, so it goes: the
deck now moves on whenever an answer ends every obligation on the open
card (`answered`, which a comment or the agent ending a question
leaves unset), and moves the page or focus only for a gesture toward the
card in this window. In a second window open on the same deck, a card
answered in the first now moves on there too; the old test that it stayed
becomes a test that it moves.
@max-sixty
max-sixty merged commit 32dc564 into main Nov 25, 2026
6 checks passed
@max-sixty
max-sixty deleted the choice-walk-fixes branch November 25, 2026 17:42
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.

2 participants