Repository navigation
Drop sentHere: an answer from another window moves a deck's card on too - #7170
Merged
Merged
Conversation
#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.
leaf-agent
approved these changes
Nov 25, 2026
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.
Removes
sentHere(event)from the package interface, which #7150 added solf-deckcould 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'sanswered, 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 theattemptfield it carried forsentHere.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.