fix: route agent CLI via gateway

This commit is contained in:
Peter Steinberger
2026-01-06 03:30:27 +01:00
parent e5e8ed4aef
commit 9623bd7763
5 changed files with 342 additions and 9 deletions

View File

@@ -240,11 +240,12 @@ export const agentHandlers: GatewayRequestHandlers = {
defaultRuntime,
context.deps,
)
.then(() => {
.then((result) => {
const payload = {
runId,
status: "ok" as const,
summary: "completed",
result,
};
context.dedupe.set(`agent:${idem}`, {
ts: Date.now(),