From 8e942d0eacf9e6e46fec1e51d6c18ea40afe3310 Mon Sep 17 00:00:00 2001 From: Agando Date: Fri, 23 Oct 2026 20:25:19 +0200 Subject: fix(newos4): agent read gets its own chat cursor (v4.6.76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two readers shared one cursor. The 30 s UI poller printed each reply and advanced webx11_chat_state.cursor, so the agent's chat_hermes read then asked for 'since=' and got an empty list — the answer appeared on the terminal and never reached the model. That is the reported symptom exactly. chat_hermes read now uses webx11_chat_agent_cursor, starts from 0 on first use so the whole thread is visible, and never touches the display cursor. Empty reads say why ('still awaiting Hermes' vs 'no new messages since your last read'). Proven: UI poll consumed the reply (printed to terminal), then chat_hermes read still returned both the agent's question and Hermes's answer. --- main.html | 6 +++--- modules/core/core-bundle.js | 20 +++++++++++++++----- modules/core/module-aiassist.js | 20 +++++++++++++++----- modules/core/module-loader.js | 2 +- 4 files changed, 34 insertions(+), 14 deletions(-) diff --git a/main.html b/main.html index 49df90d..23ab761 100644 --- a/main.html +++ b/main.html @@ -1349,13 +1349,13 @@ - + - + - +