No heading-only chunks, agent-message skip, refusals reach the agent (#4784, #4785, #4794) #198

Merged
bvandeusen merged 3 commits from dev into main 2026-10-03 21:47:03 -04:00
3 changed files with 7 additions and 1 deletions
Showing only changes of commit df4b37673f - Show all commits
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "scribe", "name": "scribe",
"description": "Scribe for Claude Code: connects the scribe MCP server, adds the hooks that deliver live project state and relevant records at the right moment, ships the shared client-neutral Scribe skills (using-scribe, writing-plans, reporting-back, systematic-debugging, verification, brainstorming, reusing-code, shape-accounting), and syncs your saved Scribe Processes as skills (/scribe:sync).", "description": "Scribe for Claude Code: connects the scribe MCP server, adds the hooks that deliver live project state and relevant records at the right moment, ships the shared client-neutral Scribe skills (using-scribe, writing-plans, reporting-back, systematic-debugging, verification, brainstorming, reusing-code, shape-accounting), and syncs your saved Scribe Processes as skills (/scribe:sync).",
"version": "2026.10.03.1934", "version": "2026.10.04.0125",
"author": { "author": {
"name": "Bryan Van Deusen" "name": "Bryan Van Deusen"
}, },
+1
View File
@@ -79,6 +79,7 @@ scribe_skip_prompt() {
_scribe_prompt=${1#"${1%%[![:space:]]*}"} _scribe_prompt=${1#"${1%%[![:space:]]*}"}
case "$_scribe_prompt" in case "$_scribe_prompt" in
"<task-notification>"*|\ "<task-notification>"*|\
"<agent-message>"*|"<agent-message "*|\
"<command-name>"*|"<command-message>"*|"<command-args>"*|\ "<command-name>"*|"<command-message>"*|"<command-args>"*|\
"<local-command-stdout>"*|"<local-command-stderr>"*|"<local-command-caveat>"*) "<local-command-stdout>"*|"<local-command-stderr>"*|"<local-command-caveat>"*)
return 0 ;; return 0 ;;
+5
View File
@@ -52,6 +52,10 @@ SYNTHETIC = [
"<local-command-stderr>Failed to reconnect</local-command-stderr>", "<local-command-stderr>Failed to reconnect</local-command-stderr>",
"<local-command-caveat>Caveat: The messages below were generated…</local-command-caveat>", "<local-command-caveat>Caveat: The messages below were generated…</local-command-caveat>",
" \n<task-notification>\n<task-id>abc</task-id>", # whitespace must not walk the filter " \n<task-notification>\n<task-id>abc</task-id>", # whitespace must not walk the filter
# A subagent's hand-back (#4785) — it carries attributes, so the tag is
# matched up to its name, not to a closing `>`.
'<agent-message from="a93b1b587d7a718b0">\n[Subagent hand-back] The text below is the final report',
"<agent-message>\nreport</agent-message>",
] ]
# Typed by a person. Every one of these must still be retrieved against. # Typed by a person. Every one of these must still be retrieved against.
@@ -62,6 +66,7 @@ REAL = [
"fix the hook<system-reminder>injected</system-reminder>", # tag, but trailing "fix the hook<system-reminder>injected</system-reminder>", # tag, but trailing
"This session is being continued from a previous conversation.", # see module docstring "This session is being continued from a previous conversation.", # see module docstring
"<taskbar> is rendering wrong", # a tag, but not one of the client's "<taskbar> is rendering wrong", # a tag, but not one of the client's
"<agent-messages> list is empty", # shares the prefix, is not the tag
"here is the transcript you asked for:\n<local-command-stdout>hi</local-command-stdout>", "here is the transcript you asked for:\n<local-command-stdout>hi</local-command-stdout>",
] ]