multiclaws 0.4.35 → 0.4.36

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -640,9 +640,10 @@ const plugin = {
640
640
  });
641
641
  // Inject onboarding prompt when profile is pending first-run setup
642
642
  // Also capture web session targets for notifications (skip internal sub-agent sessions)
643
+ // Skip when channelId is set — those are already handled by message_received hook
643
644
  const INTERNAL_SESSION_PREFIXES = ["delegate-", "a2a-"];
644
645
  api.on("before_prompt_build", async (_event, ctx) => {
645
- if (service && ctx.sessionKey &&
646
+ if (service && ctx.sessionKey && !ctx.channelId &&
646
647
  !INTERNAL_SESSION_PREFIXES.some((p) => ctx.sessionKey.startsWith(p))) {
647
648
  service.addNotificationTarget(`web:${ctx.sessionKey}`, { type: "web", sessionKey: ctx.sessionKey });
648
649
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multiclaws",
3
- "version": "0.4.35",
3
+ "version": "0.4.36",
4
4
  "description": "MultiClaws plugin for OpenClaw collaboration via A2A protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",