Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class TaskManager {
task.history.push(message);
task.status = { state: "submitted", timestamp: Date.now() };

this.processTask(task, handler, message).catch((err) => {
await this.processTask(task, handler, message).catch((err) => {
task.status = {
state: "failed",
timestamp: Date.now(),
Expand Down Expand Up @@ -516,12 +516,12 @@ class ProtocolGateway {
return { error: `Agent ${targetAgent} not found in registry` };
}

const task = await this.taskManager.sendMessage(targetAgent, message);
const audit = await this.auditRunner.run(
targetAgent,
[message],
sessionId
);
const task = await this.taskManager.sendMessage(targetAgent, message);

return { task, audit };
}
Expand Down
Loading