fix multiline script output matching in PS-AGENT-OUTPUT/ERROR patterns

.* doesn't match newlines without Singleline flag — script stdout/stderr
from AgentExecutor.log spans multiple lines and was never captured.
Changed to [\s\S]*? to match across newlines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Oliver Kieselbach
2026-04-03 11:25:53 +02:00
parent 221233b029
commit eaba031b82
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -551,7 +551,7 @@
{
"patternId": "PS-AGENT-ERROR",
"category": "always",
"pattern": "error from script =(?<output>.*)",
"pattern": "error from script =(?<output>[\\s\\S]*)",
"action": "scriptOutput",
"parameters": {
"scriptType": "platform",
@@ -574,7 +574,7 @@
{
"patternId": "PS-AGENT-OUTPUT",
"category": "always",
"pattern": "write output done\\. output = (?<output>.*), error = (?<error>.*)",
"pattern": "write output done\\. output = (?<output>[\\s\\S]*?), error = (?<error>[\\s\\S]*)",
"action": "scriptOutput",
"parameters": {
"scriptType": "platform"
+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "../schema/ime-log-pattern.schema.json",
"patternId": "PS-AGENT-ERROR",
"category": "always",
"pattern": "error from script =(?<output>.*)",
"pattern": "error from script =(?<output>[\\s\\S]*)",
"action": "scriptOutput",
"parameters": { "scriptType": "platform", "outputType": "stderr" },
"description": "Captures error output from AgentExecutor.log when a platform script produces stderr content.",
+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "../schema/ime-log-pattern.schema.json",
"patternId": "PS-AGENT-OUTPUT",
"category": "always",
"pattern": "write output done\\. output = (?<output>.*), error = (?<error>.*)",
"pattern": "write output done\\. output = (?<output>[\\s\\S]*?), error = (?<error>[\\s\\S]*)",
"action": "scriptOutput",
"parameters": { "scriptType": "platform" },
"description": "Captures both stdout and stderr from AgentExecutor.log when a platform script completes. The output group contains stdout, the error group contains stderr.",