Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

Fix compaction check logic to use information from messages instead of event
remove deprecated update toast from config

Tarquinen and others added 10 commits December 16, 2025 22:08
…asts-config

Remove showUpdateToasts config option
…nfig-key

Restore showUpdateToasts config for backwards compat
- Scan messages for assistant messages with info.summary === true
- Run compaction detection on every checkSession call, not just init
- Remove session.compacted event handler (no longer needed)
- Remove lastCompacted from persistence (derived from messages now)
- Remove unused checkForCompaction function

This ensures compaction is detected even when:
- Plugin was disabled during compaction
- Session was loaded before plugin was installed
- Any other case where the event wasn't captured
- Clear toolParameters and prune.toolIds when compaction is detected
- Add warning log when tool is in cache but not in toolIdList
- Stale tool data from pre-compaction no longer lingers in state
…ction-detection

Detect compaction from message data instead of event
@Tarquinen Tarquinen changed the title Dev merge dev into master Dec 17, 2025
@Tarquinen Tarquinen merged commit 53dbebd into master Dec 17, 2025
1 check passed
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.

2 participants