@contextableai/clawg-ui 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -295,10 +295,14 @@ export function createAguiHttpHandler(api) {
295
295
  }
296
296
  // Resolve agent route
297
297
  const cfg = runtime.config.loadConfig();
298
+ const agentIdHeader = typeof req.headers["x-openclaw-agent-id"] === "string"
299
+ ? req.headers["x-openclaw-agent-id"]
300
+ : undefined;
298
301
  const route = runtime.channel.routing.resolveAgentRoute({
299
302
  cfg,
300
303
  channel: "clawg-ui",
301
304
  peer: { kind: "dm", id: `clawg-ui-${threadId}` },
305
+ accountId: agentIdHeader,
302
306
  });
303
307
  // Set up SSE via EventEncoder
304
308
  const accept = typeof req.headers.accept === "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextableai/clawg-ui",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "AG-UI protocol channel plugin for OpenClaw — connect CopilotKit and AG-UI clients to your OpenClaw gateway",
5
5
  "type": "module",
6
6
  "license": "MIT",