fix: command length 150->1500, filter EPHEMERAL_MESSAGE, widen approval gate

This commit is contained in:
2026-03-10 11:01:45 +09:00
parent df592723b7
commit 75a3482a9c
3 changed files with 5 additions and 5 deletions

View File

@@ -1604,7 +1604,7 @@ function setupMonitor() {
if (toolCall?.argumentsJson) {
try {
const args = JSON.parse(toolCall.argumentsJson);
if (args.CommandLine) command = `${toolName}: ${args.CommandLine.substring(0, 150)}`;
if (args.CommandLine) command = `${toolName}: ${args.CommandLine.substring(0, 1500)}`;
else if (args.TargetFile) command = `${toolName}: ${args.TargetFile.split(/[\\/]/).pop()}`;
else command = `${toolName}: ${Object.keys(args).join(', ')}`;
} catch { command = toolName; }
@@ -1812,7 +1812,7 @@ function setupMonitor() {
for (let ri = steps.length - 1; ri >= 0; ri--) {
const s = steps[ri];
const sType = s?.type || '';
if (sType.includes('PLANNER_RESPONSE') || sType.includes('MESSAGE')) {
if (sType.includes('PLANNER_RESPONSE') && !sType.includes('EPHEMERAL')) {
let textContent = '';
// Extract from plannerResponse field
const pr = s?.plannerResponse;