Search notes for unattached chat questions#5779
Merged
Merged
Conversation
👷 Deploy Preview for old-char processing.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a37e581. Configure here.
Guide chat to search local meeting notes for open-ended factual questions when no context is attached.
a37e581 to
59f4d7f
Compare
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.

Guide chat to search local meeting notes for open-ended factual questions when no context is attached.
Note
Low Risk
Prompt-only changes to system guidance and tool descriptions; no search, transport, or tool execution logic changed.
Overview
When chat has no meeting note attached, the model is now steered to answer factual questions from local notes instead of asking the user to open a note.
System prompt (
FILE_CONTEXT_TOOL_GUIDANCEviaappendFileContextToolGuidance): usesearch_sessionsfirst with names, topics, and date hints; follow withread_notewhen needed; reservegrep_notesfor exact wording; and do not ask the user to open or share a note until search/read/grep fail to find enough context.Tool descriptions align with that flow:
search_sessionsis documented as the first step for open-ended past-meeting questions;grep_notespoints tosearch_sessionsfirst and narrows its role to lexical/exact-phrase search.Exports
FILE_CONTEXT_TOOL_GUIDANCEandappendFileContextToolGuidancefor testing; a new Vitest file asserts the appended guidance includes the search-first and no-prompt-to-open-note rules.Reviewed by Cursor Bugbot for commit 59f4d7f. Bugbot is set up for automated code reviews on this repo. Configure here.
This is part 1 of 2 in a stack made with GitButler: