Repository navigation
Conversation
- Handle preCompact in cursor adapter to display memory compaction status - Auto-relax agent back to idle after 10s if no subsequent event arrives - Add preCompact to cursorHooks setup list and docs snippet - Add test coverage in test/protocol.test.mjs
This branch has not been deployed
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.
Summary
Brings the Cursor adapter to parity with Claude Code by supporting Cursor's
preCompactlifecycle hook when context compaction occurs.preCompactinadapters/cursor.mjsto transition the agent tothinkingwith activity"Tidying up memory".stopor completion event for manual summarization. To prevent the agent from being indefinitely stuck in the thinking state,bin/agent-floor.mjssafely transitions the agent back toidleafter 10 seconds if no subsequent event arrived.preCompacttocursorHooks()inbin/agent-floor.mjsand updates the snippet indocs/integrations.md.test/protocol.test.mjs.Verification
npm test: 10/10 tests passing.npm run typecheck: 0 errors.npm run build: builds cleanly.