From 128f0f3694ae4ddeb5833c94a7c40ac9e22b4c31 Mon Sep 17 00:00:00 2001 From: Agando Date: Wed, 21 Oct 2026 22:50:03 +0200 Subject: fix(newos4): GLM review follow-ups for AI read/context (v4.6.47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - loop guard: a mutation unblocks the replay but no longer erases the repeat counter (identical mutating calls could loop forever) - tool traces are per agent tag, flushed in a catch as well as on success, ring-buffered (first 2 + last 10) so verification reads survive - read_file notes are metadata only (path/range/next_offset); no file bodies, no secrets, and web_search/web_fetch output is excluded from durable context (injection surface) - trace is role:'system' (was 'assistant' — the model re-read it as its own answer) - surrogate-safe pagination, 500 floor / 16000 cap, prompt limits aligned - prompt now names checks that exist in the in-page terminal (test, grep -n, wc -l) - compressed summary capped at 4000 chars; denied-destructive tool result carries tool_call_id --- main.html | 6 +-- modules/core/core-bundle.js | 93 +++++++++++++++++++++++++++++++---------- modules/core/module-aiassist.js | 93 +++++++++++++++++++++++++++++++---------- modules/core/module-loader.js | 2 +- 4 files changed, 144 insertions(+), 50 deletions(-) diff --git a/main.html b/main.html index 7a61d6f..c3b9dfd 100644 --- a/main.html +++ b/main.html @@ -1349,13 +1349,13 @@ - + - + - +