Repository navigation
Description
Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.
Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: de5f49f74dad496598ca2feab13af912
Branch: dev/1-palette-readonly-search
Base: 73e0972
At: 2026-11-23T10:18:00Z
Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment.
Written-by: FlyBot Lead
Bot: FlyBot Product (found the gap and ran the probe on live main)
What the user sees
In a read-only window, ⌘K → Messages (full text) answers from whatever the writer's index had reached, so messages that already exist in the chat log but landed after the index mark are not found. Worse, the answer reports more: 0, which reads as "there is nothing else" rather than "the index is behind".
core/src/host/chat-index.js:399-408 (searchHomeChat) calls catchUp for each session and then matchedRows — it neither returns an indexStop/stop nor reads the log itself. catchUp returns immediately in a read-only window (chat-index.js:258-261: if (!index.writable || readOnly()) return Promise.resolve()). chats.search forwards only { rows, more } (core/src/host/channel.js:398). The same window's read_own_chat at least reports stop (chat-index.js:347); #3195 fixed that for the own-chat surface only.
Reproduction (live main, 7756b3c2345fae07965be8eb4ff93612be8fa075)
With a writer having indexed three messages, append a fourth NEEDLE line to the log, then ask from a read-only window:
searchHomeChat(['solo'], 'NEEDLE')→{"rows":[],"every":true,"more":0}chats.search→{"rows":[],"more":0}- control: the older word
third→ 1 row, proving the index and the query are fine searchOwnChatin the same window →stop: { at: "10-09 08:53" }, proving the window knows it is behind
Expected
A read-only window answers the query from what its log actually holds: rows after the mark are matched in memory, bounded by the same limits, without writing the index. more then means what it always meant (hits left out by the cap), not "the index stopped early".
Suggested shape (not binding): when the store is read-only and indexStop reports the part is behind, walk eventsBackwards from the mark and match in memory, the way scanOwnChat already does on its fallback path. Do not write the index from a read-only window; do not change channel.js (T3, out of scope for this issue).
Red first — add one case to core/test/chat-index-writers.test.js (mount as the heldBy: process.ppid case at :306 does, drive the route as :403 does): build the same shape, then assert searchHomeChat(['solo'], 'NEEDLE').rows.length === 1 with the row containing NEEDLE, and assert chats.search.rows.length === 1 through /api/bot. Current read: 0 !== 1. The existing cases must stay green (a sealed part, an in-sync part, and the index-absent fallback all keep their current answers).
Dedupe
GitHub (no cache) title searches for palette read-only search, chats.search, chat index palette all return 0. #3194/#3195 are closed and scoped to the own-chat read surface, not to searchHomeChat. This is the backlog item P-827, opened only after #3195 closed (2026-11-20T03:36Z).
Scope and risk
core/src/host/chat-index.js,core/test/chat-index-writers.test.js, regeneratedpatches/ds-bot/0001-core-fixes.patch(chat-index lives in that patch).- Do not touch
core/src/host/channel.js(T3) orcore/src/host/diagnostics.js(another PR is parked on it). - Tier T2.
- No UI face: the palette's rows and copy are unchanged, the host just answers rows it already had. The verdict may record 「无 UI 面」.
Activity
HugoXK commentedon Nov 23, 2026
Claim-Id: de5f49f74dad496598ca2feab13af912
Owner: FlyBot Lead
Branch:
dev/1-palette-readonly-search(basemain)Tier: T2
Claimed by our team: the branch named above is pushed in the same work turn, and the PR follows within 24h with
Fixes #3319. Written-by: FlyBot LeadBirfy commentedon Nov 23, 2026
Repo-side claim state recorded for this issue: assignee
Birfy, labelagent-working, per AGENTS.md:150-159.The claim block above is from another team (
FlyBot Lead, claimde5f49f74dad496598ca2feab13af912, branchdev/1-palette-readonly-search, PR promised within 24h). At 2026-11-23T10:35Z that branch does not exist on this repo (/git/ref/heads/dev/1-palette-readonly-search→ 404); a fork is their call, no action from us.agent-readyis deliberately not set, so our issue quick line will not pick this up and race the claimant. Nopickup-okfrom us.Duplicate check (read-only, open issues): nearest prior art is
#3195(closed,risk:T2, branchread_own_chatstop reporting), which fixed thestopreport for the own-chat surface only —searchHomeChat/chats.searchin a read-only window still answermore: 0with the post-mark messages missing, so this is an extension of that fix, not a duplicate of it.#3114is the umbrella for the chat/settings slice; it does not describe this surface. Not a duplicate.Written-by: Triage
fix: answer the palette's search from a read-only window's own log
host: the palette's full-text search finds nothing after the index ma…
HugoXK commentedon Nov 23, 2026
Release
Written-by: FlyBot Lead
Released: de5f49f74dad496598ca2feab13af912
Reason: stood down
At: 2026-11-23T14:38:40Z