fix(profile-learning): stop infinite User Profile Updated loop#191
Open
EyJunge1 wants to merge 3 commits into
Open
fix(profile-learning): stop infinite User Profile Updated loop#191EyJunge1 wants to merge 3 commits into
EyJunge1 wants to merge 3 commits into
Conversation
…rnelz#170) Do not persist echoed profile-analysis prompts, ignore idle events from internal capture sessions, and mark batches after update conflicts so the same prompts are not retried forever. Co-authored-by: Cursor <cursoragent@cursor.com>
Live testing showed session.get must use path-based args; also track internal capture session IDs so post-delete idle events still match. Co-authored-by: Cursor <cursoragent@cursor.com>
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
session.get) and tracks internal capture session IDs so post-delete idle events still match.Test plan
bun test tests/internal-capture-sessions.test.ts tests/plugin-host-config.test.ts(10/10 pass)bun run typecheck+bun run build+bun run format:check(prettier fix pushed)235 pass / 0 failinternal capture session check via session.getworks; repeatedSkipping idle processing for internal capture sessionfor structured-output sessions (loop guard). Profile learning runs from the real user session idle path (user-profile-learning: check/analyze called) without scheduling idle→LLM→idle on capture sessions. No repeatingUser Profile Updatedtoast storm observed across two idle windows.I prefer short TypeScript…,Also use snake_case…persisted inuser_prompts); normal session title not matched as internal capture (matched:false)