-
Notifications
You must be signed in to change notification settings - Fork 126
🤖 fix: clear stale usage state when history is rewritten so the next send does not auto-compact #3818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ibetitsmike
wants to merge
33
commits into
main
Choose a base branch
from
mike/fix-stale-usage-after-history-rewrite
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
🤖 fix: clear stale usage state when history is rewritten so the next send does not auto-compact #3818
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
258b389
🤖 fix: clear stale usage state when history is rewritten to a fresh b…
ibetitsmike cfb05fb
🤖 fix: clear stale usage on remaining history-rewrite paths
ibetitsmike e3e6dcd
🤖 tests: self-heal poisoned DOM globals and pre-cache react-dnd in te…
ibetitsmike fadf52b
🤖 tests: exclude bun-only DOM isolation guards from Jest
ibetitsmike 37ced8c
🤖 fix: suppress usage seeding after history rewrites until fresh prov…
ibetitsmike acc9f3d
🤖 tests: run the bun-only DOM isolation guards in test-unit and CI Unit
ibetitsmike b25223c
🤖 fix: strip stale contextUsage from rows retained by partial truncation
ibetitsmike f9dd1ad
🤖 fix: re-enable usage seeding when a heartbeat reset rolls back
ibetitsmike db716c5
🤖 fix: clear usage inside the truncate step, before wake restoration
ibetitsmike c6704db
🤖 fix: keep history seeding available after message-edit truncation
ibetitsmike 23fc92d
🤖 fix: preserve usage when a partial truncation stays before the late…
ibetitsmike fc725ae
fix: re-enable usage seeding when an edit restores a pre-reset prefix
ibetitsmike f0476c2
fix: keep usage valid when a cut ends at a provider-invisible reset b…
ibetitsmike c273f98
fix: keep usage seeding enabled after compaction so the fresh boundar…
ibetitsmike 344d7fe
fix: order truncation's two-file rewrite so failures never change the…
ibetitsmike 4999404
test: restore the real Dialog module after every suite that stubs it
ibetitsmike f3f4a64
Merge remote-tracking branch 'origin/main' into chat-compact-6mxx
ibetitsmike 626a0d8
fix: preserve usage when a cut removes only provider-ineligible activ…
ibetitsmike e843e67
fix: truncate archive and chat.jsonl in place so no crash or failure …
ibetitsmike 2a483a2
fix: ignore workflow display-only rows when detecting active-context …
ibetitsmike e11580c
fix: strip persisted usage before any truncation step can change the …
ibetitsmike aca3df9
fix: roll back pre-cut usage sanitization when the truncation cut fai…
ibetitsmike bb00503
fix: only treat archive deletion as a window change when the archive …
ibetitsmike f2cee19
fix: notify usage invalidation at commit time so a failed cut cannot …
ibetitsmike b58b5da
fix: skip pre-cut usage sanitization when only the chat cut changes t…
ibetitsmike b59a3fe
fix: clear usage at the edit-truncation commit point so a partial com…
ibetitsmike 5d1e3eb
fix: keep history seeding suppressed when an archived edit partially …
ibetitsmike c9bb86a
fix: report committed deletions at commit time so failed cuts cannot …
ibetitsmike 170a0d9
fix: make the archived-edit duplicated-prefix state restart-safe by s…
ibetitsmike 2a5274d
fix: re-enable usage seeding when a committed active-file edit fails …
ibetitsmike 1899e9f
fix: simplify stale usage invalidation after history rewrites
ibetitsmike ac9a325
tests: remove unrelated review-driven coverage
ibetitsmike 1db6e95
fix: make history truncation failures recoverable
ibetitsmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.