fix: command length 150->1500, filter EPHEMERAL_MESSAGE, widen approval gate
This commit is contained in:
@@ -1627,7 +1627,7 @@ function setupMonitor() {
|
||||
try {
|
||||
const args = JSON.parse(toolCall.argumentsJson);
|
||||
if (args.CommandLine)
|
||||
command = `${toolName}: ${args.CommandLine.substring(0, 150)}`;
|
||||
command = `${toolName}: ${args.CommandLine.substring(0, 1500)}`;
|
||||
else if (args.TargetFile)
|
||||
command = `${toolName}: ${args.TargetFile.split(/[\\/]/).pop()}`;
|
||||
else
|
||||
@@ -1846,7 +1846,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;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user