From 556324017e3fb41fe02854921146e92ad6e88b83 Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 17 Nov 2026 03:46:19 +0000 Subject: [PATCH] ChatQuery docs: --after continues a listing within one room only Soul found the wire comment (and the published schema carrying it) still told every caller to narrow with the last hit's ts_end_ms + 1. Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-mind/src/wire.rs | 5 +++-- schemas/cultnet/huginn.mind_request.v1.schema.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/huginn-mind/src/wire.rs b/crates/huginn-mind/src/wire.rs index daba414..8ac65dc 100644 --- a/crates/huginn-mind/src/wire.rs +++ b/crates/huginn-mind/src/wire.rs @@ -286,8 +286,9 @@ pub const CHAT_ROOMS_MAX: usize = 16; /// [after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match, /// several fused as in a source search; with none the search is a listing: /// chunks oldest first, at most `top_k`, `ChatHits.truncated` saying more -/// exist, and the caller narrows with `after_ms` = the last hit's -/// `ts_end_ms + 1`. +/// exist. Within one room the caller narrows with `after_ms` = the last hit's +/// `ts_end_ms + 1`; across rooms spans overlap and that loses chunks, so list +/// one room at a time. #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)] pub struct ChatQuery { pub texts: Vec, diff --git a/schemas/cultnet/huginn.mind_request.v1.schema.json b/schemas/cultnet/huginn.mind_request.v1.schema.json index 705a4e2..bca4ea2 100644 --- a/schemas/cultnet/huginn.mind_request.v1.schema.json +++ b/schemas/cultnet/huginn.mind_request.v1.schema.json @@ -329,7 +329,7 @@ ] }, "ChatQuery": { - "description": "A chat search. The selectors compose as AND. `rooms` are any-of: a value\nbeginning `!` is a room id, `#` a canonical alias. `after_ms` and\n`before_ms` (Unix milliseconds) keep the chunks whose span overlaps\n[after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match,\nseveral fused as in a source search; with none the search is a listing:\nchunks oldest first, at most `top_k`, `ChatHits.truncated` saying more\nexist, and the caller narrows with `after_ms` = the last hit's\n`ts_end_ms + 1`.", + "description": "A chat search. The selectors compose as AND. `rooms` are any-of: a value\nbeginning `!` is a room id, `#` a canonical alias. `after_ms` and\n`before_ms` (Unix milliseconds) keep the chunks whose span overlaps\n[after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match,\nseveral fused as in a source search; with none the search is a listing:\nchunks oldest first, at most `top_k`, `ChatHits.truncated` saying more\nexist. Within one room the caller narrows with `after_ms` = the last hit's\n`ts_end_ms + 1`; across rooms spans overlap and that loses chunks, so list\none room at a time.", "type": "object", "properties": { "after_ms": {