@copilotkit/web-inspector 1.55.3 → 1.56.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/web-inspector",
3
- "version": "1.55.3",
3
+ "version": "1.56.1",
4
4
  "description": "Lit-based web component for the CopilotKit web inspector",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,7 +23,7 @@
23
23
  "lit": "^3.2.0",
24
24
  "lucide": "^0.525.0",
25
25
  "marked": "^12.0.2",
26
- "@copilotkit/core": "1.55.3"
26
+ "@copilotkit/core": "1.56.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tailwindcss/cli": "^4.1.11",
package/src/index.ts CHANGED
@@ -287,6 +287,14 @@ export class WebInspectorElement extends LitElement {
287
287
  onAgentsChanged: ({ agents }) => {
288
288
  this.processAgentsChanged(agents);
289
289
  },
290
+ onAgentRunStarted: ({ agent }) => {
291
+ // Per-thread clones are not in the agent registry, so
292
+ // onAgentsChanged never fires for them. Subscribe here so
293
+ // the inspector captures their AG-UI events.
294
+ if (agent?.agentId) {
295
+ this.subscribeToAgent(agent);
296
+ }
297
+ },
290
298
  onContextChanged: ({ context }) => {
291
299
  this.contextStore = this.normalizeContextStore(context);
292
300
  this.requestUpdate();