You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Desktop: find in the conversation - Ctrl+F does nothing and there is no other route to it #184
Problem There is no way to search inside an open conversation in Command Code Desktop. - Ctrl+F does nothing: no Find bar, no highlight, no focus change. - The menu has no Find item, and the command palette offers no in-conversation search. - Search exists in two other places and neither helps here: a chat search over the session list ("Search chats"), and "Find in terminal" inside the terminal pane. Nothing searches the conversation itself. The shipped 0.1.63 renderer bundle contains no in-conversation find strings or keybinding at all — there is no Find in conversation, no find bar component and no mod+f/Ctrl+F binding for the timeline. So this is not a broken shortcut: the feature is absent, and there is no alternative route to it. This matters most in exactly the sessions where it hurts: long ones with many tool calls, where the reader wants to get back to a paragraph, a command, a path or an error without scrolling and expanding blocks. ### Proposal 1. A Find bar for the conversation, opened with Ctrl+F (Cmd+F on macOS), with next/previous, match count, and Esc to close. 2. Search over rendered message text, including assistant messages, user messages, tool call arguments and tool output, with an option to include or exclude collapsed blocks. 3. Options matching a normal editor: case sensitive, whole word, and regex where it is cheap. 4. Highlight and navigate: jump between matches, scroll each into view, and expand a collapsed block that contains a match. 5. Discoverable: a visible palette entry and a View/Edit menu item, so a failing keybind never makes the feature unreachable again. 6. Scope: current conversation first. A separate, later step could extend it to all sessions, but that is not required for this request. ### Acceptance criteria - Ctrl+F in a session opens the bar with the caret in the field. - Typing a token present in a tool output finds it, expands that block and scrolls to it. - Enter / Shift+Enter move between matches; the counter shows n of m. - The palette lists the same action, and it works with a non-Latin keyboard layout. ### Environment Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.
Adding two requirements that the body leaves open, plus what I verified statically in 0.1.63.
1. Case-insensitive must be the default, and it must fold Unicode properly.
Searching д must find Д, ё must match Ё, and a query typed with a different keyboard layout must still hit. So: default = case-insensitive, a case-sensitive toggle exists but is off by default, and matching must use Unicode case folding plus NFC normalization rather than a plain toLowerCase() comparison — otherwise mixed Cyrillic/Latin text (paths, model ids, error text pasted from logs) gives false negatives. Also worth deciding explicitly whether a query matches across a soft-wrap boundary and inside long code blocks.
2. Scope must be the whole session, not the mounted rows.
The feed is virtualized — rows mount and unmount as you scroll. A DOM-based search, or Electron findInPage, will only ever see the currently rendered rows and will silently under-report. Same for collapsed content: tool details and turn folds are collapsed by default, and their text is not in the DOM.
So the search has to run over the message model and map hits back to data-feed-row-key, then scrollToIndex to the row and expand any collapsed block that contains a match. Match count must be computed on the full text, not on what happens to be rendered. Highlighting should be done by wrapping ranges during render, not by rewriting innerHTML — the markdown re-render would drop it.
What I confirmed in the bundle (no runtime tools needed, grep-able):
No KeyF and no mod+f appear anywhere in out/renderer/assets/workspace-screen-*.js, and out/main/index.js has no findInPage / stopFindInPage. Ctrl+F is unbound at both layers — the feature is absent, not broken.
No full-text index exists today: fts5, MATCH, searchMessages and similar do not appear in out/main/index.js. The sidebar search handles chats and project files; the palette handles chats, PRs and files. Nothing indexes transcript content.
Prompt history already stores <text, timestamp> records as JSONL in @commandcode/harness (src/session/prompt-history.ts), which is a useful precedent if a persistent transcript index is ever added — but note it is unrelated to in-session find.
Not asking for cross-session search here — current conversation only, as the body says. Just want the defaults and the data source nailed down so the first implementation is correct in long sessions, which is exactly where it is needed.
Activity
magicprinc commentedon Nov 25, 2026
Adding two requirements that the body leaves open, plus what I verified statically in 0.1.63.
1. Case-insensitive must be the default, and it must fold Unicode properly.
Searching
дmust findД,ёmust matchЁ, and a query typed with a different keyboard layout must still hit. So: default = case-insensitive, a case-sensitive toggle exists but is off by default, and matching must use Unicode case folding plus NFC normalization rather than a plaintoLowerCase()comparison — otherwise mixed Cyrillic/Latin text (paths, model ids, error text pasted from logs) gives false negatives. Also worth deciding explicitly whether a query matches across a soft-wrap boundary and inside long code blocks.2. Scope must be the whole session, not the mounted rows.
The feed is virtualized — rows mount and unmount as you scroll. A DOM-based search, or Electron
findInPage, will only ever see the currently rendered rows and will silently under-report. Same for collapsed content: tool details and turn folds are collapsed by default, and their text is not in the DOM.So the search has to run over the message model and map hits back to
data-feed-row-key, thenscrollToIndexto the row and expand any collapsed block that contains a match. Match count must be computed on the full text, not on what happens to be rendered. Highlighting should be done by wrapping ranges during render, not by rewritinginnerHTML— the markdown re-render would drop it.What I confirmed in the bundle (no runtime tools needed, grep-able):
KeyFand nomod+fappear anywhere inout/renderer/assets/workspace-screen-*.js, andout/main/index.jshas nofindInPage/stopFindInPage. Ctrl+F is unbound at both layers — the feature is absent, not broken.fts5,MATCH,searchMessagesand similar do not appear inout/main/index.js. The sidebar search handles chats and project files; the palette handles chats, PRs and files. Nothing indexes transcript content.<text, timestamp>records as JSONL in@commandcode/harness(src/session/prompt-history.ts), which is a useful precedent if a persistent transcript index is ever added — but note it is unrelated to in-session find.Not asking for cross-session search here — current conversation only, as the body says. Just want the defaults and the data source nailed down so the first implementation is correct in long sessions, which is exactly where it is needed.
@aliarain @ahmadawais