fix: profile, capture, and compaction regressions - #239
Merged
Conversation
Raise update_user_profile confidence max from 0.5 to 1 so Groq Llama and similar models no longer fail schema validation on native scores. Co-authored-by: Cursor <cursoragent@cursor.com>
Cap buildMarkdownContext to autoCaptureMaxContextBytes (UTF-8) so large AI responses no longer exceed small model windows such as Groq 131K. Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve the session agent before compaction prompt injection so custom primary agents are not silently reset to general-purpose. Co-authored-by: Cursor <cursoragent@cursor.com>
Honor userProfileStaleDays/minEvidenceForRetention in decay, and merge scoped AI cleanup results into the full profile instead of replacing it. Co-authored-by: Cursor <cursoragent@cursor.com>
Prevent remaining data-loss, context-overflow, agent-fallback, and confidence edge cases found during review. Co-authored-by: Cursor <cursoragent@cursor.com>
Match cleanup scope removals by stable item identity and stop treating merge sources as unmentioned so rejected merges restore cleanly without leftover duplicates. Co-authored-by: Cursor <cursoragent@cursor.com>
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
autoCaptureMaxContextBytesto prevent context overflows on ~131K modelsuserProfileStaleDays/userProfileMinEvidenceForRetention, and merge partial AI cleanup into the full profile instead of replacing itCloses #231
Closes #232
Closes #236
Closes #237
Test plan
bun run typecheckbun test(396 passed)~/.opencode-memdata for all four issue pathsMade with Cursor