@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.
- package/dist/src/http-handler.js +4 -0
- package/package.json +1 -1
package/dist/src/http-handler.js
CHANGED
|
@@ -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