fix: add step_type to default approve/reject/timeout callbacks (not just multi-choice)
This commit is contained in:
@@ -2097,7 +2097,7 @@ async function processResponseFile(filePath) {
|
||||
}
|
||||
const content = fs.readFileSync(filePath, 'utf-8');
|
||||
const resp = JSON.parse(content);
|
||||
const msg = `[RESPONSE] rid=${resp.request_id} approved=${resp.approved}`;
|
||||
const msg = `[RESPONSE] rid=${resp.request_id} approved=${resp.approved} step_type=${resp.step_type || '(missing)'} keys=[${Object.keys(resp).join(',')}]`;
|
||||
console.log(`Gravity Bridge: ${msg}`);
|
||||
logToFile(msg);
|
||||
// Find matching pending request
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -2051,7 +2051,7 @@ async function processResponseFile(filePath: string) {
|
||||
}
|
||||
const content = fs.readFileSync(filePath, 'utf-8');
|
||||
const resp = JSON.parse(content);
|
||||
const msg = `[RESPONSE] rid=${resp.request_id} approved=${resp.approved}`;
|
||||
const msg = `[RESPONSE] rid=${resp.request_id} approved=${resp.approved} step_type=${resp.step_type || '(missing)'} keys=[${Object.keys(resp).join(',')}]`;
|
||||
console.log(`Gravity Bridge: ${msg}`);
|
||||
logToFile(msg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user