mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-02 06:37:03 +00:00
feat(web,hub): add opt-in search for session message content (#1598)
Adds an opt-in content search over session messages, alongside the existing metadata search. An FTS5 index covers visible user and assistant prose; the sidebar gains a scope toggle, and selecting a result opens the matching message rather than the session tail. Search scope is a two-state toggle rather than a dropdown: a 48x48 target matching the clear endcap, distinct glyphs for session details vs message text, tooltips naming the real scopes, and the active mode kept on the collapsed chip (tiann/hapi#2081). Dogfooded on a live 1178-session fleet. The scope toggle and reading forward from a search result were both click-tested on that install — the latter walking six bounded pages through a 1,507-message session and stopping correctly at the session head. The per-commit history does not survive this squash; the review trail — including which commit closed which finding — is on the PR threads. Fixes #1554 Fixes #2081
This commit is contained in:
@@ -26,7 +26,6 @@ data class MessagesPage(
|
||||
val hasMore: Boolean,
|
||||
val readThroughRevision: Long? = null,
|
||||
)
|
||||
|
||||
/** `GET /api/sessions/:id/messages` — messages in ascending display order. */
|
||||
@Serializable
|
||||
data class MessagesResponse(
|
||||
|
||||
Reference in New Issue
Block a user