You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webapp): keep the dashboard agent's tool calls on the user's instance
Follow-up to #4738. That change routed the agent's session (start, token,
transport, realtime) to a configurable instance, but it also moved the origin
the agent's read-tools call back to. Those tools act as the user with a
delegated token this webapp signs with its own SESSION_SECRET, scoped to its own
user and environment, so the token can only be verified by, and the data only
found on, that same instance.
Split the two origins. dashboardAgentApiOrigin() stays the instance hosting the
agent project (sessions, task triggers, realtime, the in forward). A new
dashboardAgentUserApiOrigin() returns this webapp's own origin and is injected
into the run metadata the tools use. When the agent runs on the same instance as
the webapp both resolve to the same host, so nothing changes there.
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.dashboard-agent.in.$.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ import { findProjectBySlug } from "~/models/project.server";
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.dashboard-agent.ts
0 commit comments