Skip to content

cli: rate the episode of the exchange being rated - #63

Merged
daniel-rossier merged 1 commit into
mainfrom
fix/verdict-targets-its-exchange
Nov 30, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
fix/verdict-targets-its-exchange

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

/good, /bad and /fix recorded on the latest episode of the last session run, so after /undo (or after a direct command) they hit an exchange that is no longer the one at the end of the history. Answers now carry their session id (None for a direct command); the lookup is exchange_episode, with a test. 49 tests in the touched modules pass.

/good, /bad and /fix recorded on the latest episode of the last session
run. After /undo, or after a direct command whose answer has no episode,
that is not the answer at the end of the history: the verdict or the
correction went to an exchange the operator had just removed, or to the
one before a !read.

Each answer now carries the session that produced it (None for a direct
command), and the verdicts look up that session's episode. A history
saved before falls back to the last session, as before.
@daniel-rossier
daniel-rossier merged commit 3ab302b into main Nov 30, 2026
2 checks passed
@daniel-rossier
daniel-rossier deleted the fix/verdict-targets-its-exchange branch November 30, 2026 19:32
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.

1 participant