-
Notifications
You must be signed in to change notification settings - Fork 64
π€ refactor: move auto-compaction & auto-retry from frontend to backend #2469
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
Merged
Merged
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
e50ad39
extract shared compaction prompt builder
ThomasK33 ad5b2bd
run idle compaction directly in backend
ThomasK33 226a79c
remove frontend idle compaction orchestration hook
ThomasK33 120c1d2
extract retry utilities to src/common
ThomasK33 fe9801c
add RetryManager and auto-retry event schemas
ThomasK33 b4b2548
integrate RetryManager into AgentSession
ThomasK33 cf2c82f
add setAutoRetryEnabled IPC route
ThomasK33 64949f3
remove frontend auto-retry orchestration
ThomasK33 1467aff
extract compaction threshold utilities to src/common
ThomasK33 3853cec
add CompactionMonitor and auto-compaction event schemas
ThomasK33 a3b67cb
integrate CompactionMonitor into AgentSession
ThomasK33 2935ff6
add setAutoCompactionThreshold IPC route
ThomasK33 7340d2d
remove frontend on-send and mid-stream compaction orchestration
ThomasK33 2f32760
clean up dead code and stale references after backend migration
ThomasK33 4752149
fix formatting
ThomasK33 964c080
fix lint errors in retry and compaction migration
ThomasK33 a079aad
fix integration tests for backend-driven compaction
ThomasK33 e19e0c9
fix: emit retry-abandoned on disable + handle duplicate failures gracβ¦
ThomasK33 c18b594
fix: cancel pending retry on non-retryable error + fix mock abort event
ThomasK33 4a582dd
fix: address Codex review - compaction before persist, cancel timers β¦
ThomasK33 7881cc2
fix: seed usage state from persisted history before pre-send compactiβ¦
ThomasK33 5cf1f9d
fix: make seedUsageStateFromHistory defensive + fix dispose race testβ¦
ThomasK33 7a3dde5
fix: address Codex review - skip duplicate user emit, clear retry on β¦
ThomasK33 d6ead7e
fix: defer snapshot persistence when on-send auto-compaction triggers
ThomasK33 5f91c43
fix: thread provider model config into backend compaction checks
ThomasK33 c7aedb6
fix: avoid cached token double-count in mid-stream compaction checks
ThomasK33 f993df5
fix: preserve retry opt-out on synthetic sends and surface manual resβ¦
ThomasK33 0986c9f
fix: mark idle compaction dispatch as synthetic send
ThomasK33 5770342
fix: preserve synthetic context for queued sends and handle ask-user β¦
ThomasK33 be47482
fix: scope queued synthetic sends and roll back ask-user retry on excβ¦
ThomasK33 3c009ec
fix: order ask-user retry rollback and guard pre-enable failures
ThomasK33 d90b03a
fix: serialize RetryBarrier auto-retry rollback after failed resume
ThomasK33 fff17fc
fix: guard retry callback against disable races in starting phase
ThomasK33 585ddee
fix: ignore stale retry rejection events after disable/generation change
ThomasK33 a764881
fix: recover interrupted streams on startup
ThomasK33 295ec72
fix: preserve tool policy in startup auto-retry
ThomasK33 3b4fdf5
fix: persist startup retry preferences and flags
ThomasK33 3b9e16e
fix: harden startup retry option reconstruction
ThomasK33 dd0f31d
fix: run full startup recovery and honor disabled midstream compaction
ThomasK33 e07bdbf
fix: serialize startup recovery dispatches
ThomasK33 e170ad6
fix startup auto-retry candidate selection
ThomasK33 8fb57e0
fix replay auto-retry countdown on reconnect
ThomasK33 0afe72e
fix startup retry option restore and preference rollbacks
ThomasK33 a653162
fix ask-user retry preference and idle compaction busy race
ThomasK33 3bdb358
π€ fix: recover startup auto-retry for pre-stream failures
ThomasK33 3bb4650
fix: clear stale retry ui and seed compaction usage by epoch
ThomasK33 363c373
fix: guard ask_user workspace state lookup
ThomasK33 d669922
fix: preserve ask-user retry rollback across workspace switches
ThomasK33 b97bbfe
fix: trigger on-send compaction at configured threshold
ThomasK33 57943f6
fix: restore retry preference after manual retry success
ThomasK33 fd2e791
fix: rollback temporary ask-user retry on teardown
ThomasK33 3b2f15b
fix: harden temporary auto-retry rollback timing
ThomasK33 5441561
test: avoid global module mocks in retry/ask-user tests
ThomasK33 2d820f5
fix: handle terminal-state rollback races for temp auto-retry
ThomasK33 1f57bb6
fix: keep temporary retry toggles runtime-only
ThomasK33 71d64e0
fix: rollback temp retry on no-start resume success
ThomasK33 62b650b
fix: add deterministic resume-start signal for retry rollback
ThomasK33 3d3caf4
fix: persist pre-stream abort marker for startup retry
ThomasK33 e90d600
fix: honor preferred model for auto-compaction
ThomasK33 fd484c8
test: stabilize pre-stream abort persistence assertion
ThomasK33 0321200
fix: ignore startup aborts for startup retry abandon markers
ThomasK33 c256f92
fix: migrate legacy auto-retry opt-out on chat subscribe
ThomasK33 27ecd1c
fix: sync startup threshold with retry turn model
ThomasK33 6da94fa
test: stabilize workspace sync subscription assertion
ThomasK33 08b1269
fix: harden startup threshold sync and compaction dispatch errors
ThomasK33 ffe87e6
fix: skip compaction on invalid context-limit overrides
ThomasK33 b0bfafb
test: reduce pre-start interrupt message-id flake
ThomasK33 adc235f
fix: remove unnecessary stream-end type assertion
ThomasK33 41c9d12
fix: keep retry barrier mounted during manual retry stream
ThomasK33 ebd0d76
fix: emit idle compaction started only after dispatch
ThomasK33 e7adfc6
fix: retry startup follow-up dispatch after send failures
ThomasK33 e23d918
fix: retry startup recovery after history read failures
ThomasK33 673f684
fix: defer startup auto-retry after transient history failures
ThomasK33 66010e1
fix: back off startup auto-retry history read retries
ThomasK33 331cec7
Honor persisted auto-retry opt-out before retry scheduling
ThomasK33 05acab3
Reschedule auto-retry when resumeStream defers
ThomasK33 79b22c2
Ignore desktop retry/compaction events in mobile expander
ThomasK33 d1f6f16
Harden auto-retry migration and send acceptance reset
ThomasK33 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
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.