Repository navigation
fix: a replaced session's old word no longer takes the click from its copy - #875
Merged
Merged
Conversation
… copy Main has been red since the merge of Deskbar #870: JsonTaskStoreTests' "fields this build does not know" test expected the copy c2-0000 to be the task's session, and got the replaced s1. A session list showing s1 running brings it back live, and s1 had written "Started" on the thread while its copy had not written yet, so the new last-word rule ranked s1 first. A replaced session's conversation goes on under the copy's id, so its word no longer counts. It keeps its place among live sessions, just without the word, which gives the old order (newest joined first) back for it. CommentWake and the page's transcript already leave replaced sessions out. *opus5.5*
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.
Deskbar task 7e552f55
Main has been red since Deskbar #870 merged. Its own CI run already failed on the same test, and every open pull request now fails it too.
The failing test is
JsonTaskStoreTests.A_file_with_fields_this_build_does_not_know_loads_whole_and_the_next_save_drops_them. It expects a session's copy (c2-0000) to stay the task's session after a session list shows the old, replaced session (s1) running again, and it gots1. The old session had written "Started" on the thread and the copy had not written yet, so #870's last-word rule ranked the old one first.The fix is in SessionRank.cs: a replaced session's word no longer counts. /clear or a model switch carried that conversation on under the copy's id, so the old ask belongs to the copy's history. The replaced session keeps its place among live sessions, just without the word, which brings back the order it had before #870 (newest joined first). A comment and the task page were never affected, because both already skip replaced sessions.
Tested: Release build with warnings as errors, and Deskbar.Core.Tests, 6198 pass, including the test that was failing.
Release notes
opus5.5