Repository navigation
Inbox search: words in double quotes are an exact phrase - #4117
Merged
Merged
Conversation
A quoted phrase matches only where its words stand together, in order, in one field; a quoted word is that whole word; a quote not closed yet is a phrase of what is typed, its last token a prefix; curly quotes count; empty quotes are ignored. The index intersects the terms first and checks the phrase on the candidates. A query with no quote mark is unchanged. Results, the window's marks and the landing highlight mark a phrase as one run.
…rds kept, never across a block The index stays the candidate filter; a query with a phrase then reads each candidate's fields again (the same field builders the index uses) and confirms every phrase: its tokens one after another with only separators between them, one-letter tokens kept, never across a blank line, heading, list item, table row, fence or dropped block. A group confirms best first until its page is full, then at most 64 more for its total. The window's landing highlight and the row marks follow the same rule. German and French quote marks count as quotes.
backnotprop
marked this pull request as ready for review
November 27, 2026 02:51
This was referenced Nov 27, 2026
yermakoffivan
pushed a commit
to yermakoffivan/plannotator
that referenced
this pull request
Nov 27, 2026
…d Pele 1.13 core 0.25.35 carries what merged after 0.25.34 went to npm: exact-phrase search in inbox-search (words in double quotes, backnotprop#4117, backnotprop#4124) and the agent-gone event in external-annotation's ExternalAnnotationEvent (backnotprop#3698). No exports subpath changes. ui handles that agent-gone event, so its pin follows and core goes first. ui 0.67.0 is a minor: DiagramSourceAcceptContext lets a host refuse a fence by its source before any engine runs (backnotprop#4146), DIAGRAM_REFUSED_RESULT is exported, Pele 1.13.0 with the inline fit changes (backnotprop#4113), the agent-gone send failures (backnotprop#3698) and the plan header seams (backnotprop#3905). README and HANDOFF name the new pair and the order (core first), and the hook and Pele notes now name ui 0.67.0 instead of "the first ui after 0.66.0". bun.lock is bun install's own output: the two package version lines.
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.
What a person sees
In Inbox search (⌘K), words in double quotes are now an exact phrase.
"file viewer"finds only places where those words are next to each other, in that order, inside one paragraph of one field (a subject, a thread name, a body, one question). Only spaces, punctuation or one line break may stand between them: a phrase never runs from one paragraph, heading, list item, table row or code fence into the next, so a soft-wrapped sentence matches butblank.at the end of one paragraph andViewerat the start of the next do not. Each result highlights the phrase as one run."step 1"findsstep 1andStep 1:, notstep 2orstep 10;"plan a review"is notplan b review;"v1.2"is notv1.3."file viewer" blankfinds the phrase, plus the wordblankanywhere. The last word typed is still matched as the start of a word, as before ("file viewer" blaworks)."file"matches only the whole wordfile, notfiles."file viewwith no closing quote yet, the search treats it as a phrase of what you have typed so far. Its last word is matched as the start of a word, so results stay on screen as you type."東京都"misses東京都庁(cut 東京|都庁).search-parity.test.tspasses unchanged and was not re-recorded).file **viewer**).Agents'
searchuses the same engine, so quotes work for them too. The agent's tool description has not changed. One line was added toplannotator inbox --helpunder search:Linked computers
The query is sent to a linked computer exactly as typed. If that computer runs this version, it applies the phrase. An older Inbox reads a quote mark as punctuation: it answers with its plain word matches, the merge proceeds as before, and nothing fails. So until the other computer updates, its rows can include messages where the words are far apart.
How
fieldsOf), a body asinboxSearchBlockText(a blank line before each line that starts a block, fromforEachInboxSearchBodyLine), andinboxSearchPhrasesHold(packages/core/inbox-search.ts) checks every phrase with every token, one-letter ones too, never across a blank line. A phrase of ASCII words is one regex over the raw text (its yes is exact; a no falls back to the token check when the text holds a character that folds into a letter or a script the segmenter cuts).packages/shared/inbox/search-confirm.ts): a group confirms best first until its page is full, then at most 64 more for its total. Candidates left unread count as found, so a total over that may run a little high; every row shown is confirmed.termscarry each phrase with all its tokens ("step 1"); the row marks and the landing highlight use the same rule. The landing joins a block's text nodes as they stand (a<br>as a line break) and puts a blank line between blocks.Speed
In process, 4,000 threads, 30,000 messages, 69 M characters; median/p95 ms (totals threads/messages/files/projects):
Not checked
inbox-search.test.ts,inbox-search-machines.test.ts,inbox-help.test.ts) were not run locally; CI runs them.--helpline (unchanged) has not had a clean-room agent test.