Skip to content

Search notes for unattached chat questions#5779

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/chat-search-unattached-notes
Jun 26, 2026
Merged

Search notes for unattached chat questions#5779
ComputelessComputer merged 1 commit into
mainfrom
fix/chat-search-unattached-notes

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

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_GUIDANCE via appendFileContextToolGuidance): use search_sessions first with names, topics, and date hints; follow with read_note when needed; reserve grep_notes for 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_sessions is documented as the first step for open-ended past-meeting questions; grep_notes points to search_sessions first and narrows its role to lexical/exact-phrase search.

Exports FILE_CONTEXT_TOOL_GUIDANCE and appendFileContextToolGuidance for 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:

@netlify

netlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

👷 Deploy Preview for old-char processing.

Name Link
🔨 Latest commit 59f4d7f
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a3e49d8691e7e0009a0d4bf

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ 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.

Comment thread apps/desktop/src/chat/transport/use-transport.ts Outdated
Comment thread apps/desktop/src/chat/transport/use-transport.ts
Guide chat to search local meeting notes for open-ended factual questions when no context is attached.
@ComputelessComputer ComputelessComputer force-pushed the fix/chat-search-unattached-notes branch from a37e581 to 59f4d7f Compare June 26, 2026 09:43
@ComputelessComputer ComputelessComputer merged commit 58c8e12 into main Jun 26, 2026
10 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/chat-search-unattached-notes branch June 26, 2026 11:42
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.

1 participant