fix(step-probe): ensure fast AI responses and tool calls are captured by real-time block

This commit is contained in:
Variet Worker
2026-04-10 17:12:21 +09:00
parent 300338d5d3
commit 488b36f192
12 changed files with 352 additions and 32 deletions

29
scratch_fetch3.js Normal file
View File

@@ -0,0 +1,29 @@
const http = require('http');
const port = 34332;
function testArgs(args) {
return new Promise((resolve) => {
const req = http.request(`http://127.0.0.1:${port}/test-rpc`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' }
}, (res) => {
let data = '';
res.on('data', c => data += c);
res.on('end', () => {
console.log(`Args ${JSON.stringify(args)}: ${data.substring(0, 100)}`);
resolve();
});
});
req.write(JSON.stringify({ method: 'GetCascadeTrajectorySteps', args }));
req.end();
});
}
async function run() {
const id = "370d1a09-1fa8-4aed-90d7-4024e36b3a2d";
await testArgs({ cascadeId: id, verbosity: 1 });
await testArgs({ trajectoryId: id, verbosity: 1 });
await testArgs({ id: id, verbosity: 1 });
await testArgs({ googleAgentId: id, verbosity: 1 });
}
run();