Search: find operator chats by title, directory and message text
A search with kind chat matches the operator-session registry's titles and directories and the newest messages of recent transcripts through the chat broker (bounded count, concurrency and one-second budget), answered off the connection's read loop. The all-kind search is unchanged for older clients. The app sends the chat search after its run search and shows a Chats group with title, harness, directory and snippet; a chat hit opens that chat in the Chat tab. The probe fixture answers chat searches over ?chats=N.
This commit is contained in:
+14
@@ -118,6 +118,20 @@ confirmation.
|
||||
- Targets are stable and navigable: `pipeline:<id>`, `pipeline:<id>:v<version>`,
|
||||
`run:<id>`, `run:<id>:<sequence>`, `run:<id>:<sequence>:<field>`, or an
|
||||
artifact URL served by the artifact endpoint.
|
||||
- Chats: a `search` request with `kind: "chat"` (protocol only; the all-kind
|
||||
search never includes chats, so older clients see no change) matches the
|
||||
operator's chat sessions. Every listed chat's title and directory are
|
||||
matched from the registry; for up to 24 of the most recently used chats not
|
||||
matched there, the newest 100 messages' text is read through the chat broker,
|
||||
four at a time, within a one-second budget. A transcript still unread when the
|
||||
budget expires is left out and the reply says `truncated`; `scanned_chats`
|
||||
reports how many transcripts were read. Each chat yields at most one hit
|
||||
(`target` `chat:<session id>`, `matched_field` `title`, `directory` or
|
||||
`message`) whose `chat` payload carries the title, directory, harness and,
|
||||
for a message match, the message id, role and a snippet. The server answers it
|
||||
off the connection's read loop, so it never delays other replies; a newer chat
|
||||
search on the same connection cancels the previous one. The app sends it after
|
||||
its run search and shows the hits as a Chats group.
|
||||
|
||||
```sh
|
||||
pipelines search "release notes" --json
|
||||
|
||||
Reference in New Issue
Block a user