feat(view,tests): query blocks stay code in text the agent did not write

This commit is contained in:
hh committed 2026-10-13 01:23:49 +02:00
1 parent 43d1e1a4a3
commit 91699a382e
5 files changed
+66 -4

No files matched your search

+17 -1
View File
@@ -223,7 +223,12 @@ function stamped(messages: HistoryMessage[]): HistoryMessage[] {
const HISTORY: Record<string, HistoryMessage[]> = {
[MASTER]: [
{ content: "с утра: дневник приехал? что в хендауте", role: "user" },
{
content: "с утра: дневник приехал? что в хендауте",
role: "user",
service:
"[envelope - background signal, not a message; react only if it bears on the question]\ntime: 2026-08-29 06:04 (Warsaw)\nvault, changed since 05:09: 📅 дни/2026-08-29.md (+4)\n--- 📅 дни/2026-08-29.md, added lines only ---\n+ # планы\n+ просрочены:\n+ ```tasks\n+ not done\n+ 06:04 - пожалуй пойду спать",
},
{
content:
"Приехал. В [[2026-08-28|хендауте]] два хвоста: **бластер** ждёт выбора модели, и **ufw на dell** - порт 62990 снаружи молчит. Ветка по ufw открыта, см. [[ufw на dell]].",
@@ -232,6 +237,11 @@ const HISTORY: Record<string, HistoryMessage[]> = {
{ content: "ок, гони ufw", role: "user" },
{
content: [
{
thinking:
"The firewall rule and the proxy config can disagree in two ways: the port is closed, or nothing listens behind it. Reading the Caddy site first tells me which port the outside is supposed to reach at all.",
type: "thinking",
},
{
text: "Смотрю правила через `ssh dell` и сверяю с `site.caddy`.",
type: "text",
@@ -242,6 +252,12 @@ const HISTORY: Record<string, HistoryMessage[]> = {
name: "Bash",
type: "tool_use",
},
{
id: "tu_say",
input: { text: "Нашёл: снаружи должен отвечать 443, не 62990." },
name: "mcp__gateway__say",
type: "tool_use",
},
],
role: "assistant",
},