mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-04 06:57:55 +00:00
Port the H5 content-search scope to the native session list: - The search field gains a Sessions/Content scope menu. Content mode debounces the hub's POST /sessions/content-search over the sessions visible under the current machine/status/unread filters, discards stale responses by generation, and surfaces loading, failure, and potentially-incomplete result states. - Result rows keep the two-line contract: the matched snippet (plus a truncation mark) replaces the project line, while server relevance order is preserved. - Tapping a hit passes its message id to the chat. A row already in the loaded transcript scrolls directly; otherwise the window controller loads the hub's bounded message-context page, enters history mode, and the chat scrolls/flashes the target. "Back to latest" still resets to the live tail because a context window is explicitly not the tail. Adds content-search wire models, endpoint coverage, context-window transition tests, and session-list model tests for scoping and rendering. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run> Co-Authored-By: Claude Code <noreply@anthropic.com>