Revert Copilot mistake in inheriting prior swipe data; testing in practice reveals inheritance does not work after applying its suggestion.

This commit is contained in:
Daryl
2026-02-26 17:32:16 -04:00
parent c442314c10
commit c307f1a1bc
+3 -2
View File
@@ -303,8 +303,9 @@ export async function onMessageReceived(data) {
// When auto-update is disabled, no tracker API call will run for this message. // When auto-update is disabled, no tracker API call will run for this message.
// Inherit the prior assistant message's tracker data into this swipe slot so that // Inherit the prior assistant message's tracker data into this swipe slot so that
// commitTrackerDataFromPriorMessage can find a valid state next turn instead of nulling everything // commitTrackerDataFromPriorMessage can find a valid state next turn instead of nulling everything.
if (!extensionSettings.autoUpdate && isAwaitingNewMessage) { // Inheritance does not overwrite existing data, so it's safe to call even if the condition misses an edge case.
if (!extensionSettings.autoUpdate || !isAwaitingNewMessage) {
inheritSwipeDataFromPriorMessage(lastMessage, chat.length - 1); inheritSwipeDataFromPriorMessage(lastMessage, chat.length - 1);
} }
} }