@posthog/agent 2.3.696 → 2.3.703

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.
@@ -9471,7 +9471,7 @@ var import_zod4 = require("zod");
9471
9471
  // package.json
9472
9472
  var package_default = {
9473
9473
  name: "@posthog/agent",
9474
- version: "2.3.696",
9474
+ version: "2.3.703",
9475
9475
  repository: "https://github.com/PostHog/code",
9476
9476
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
9477
9477
  exports: {
@@ -18666,6 +18666,24 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
18666
18666
  }
18667
18667
  if (message.subtype === "session_state_changed" && message.state === "idle") {
18668
18668
  if (!promptReplayed) {
18669
+ if (commandMatch) {
18670
+ const cmd = commandMatch[1];
18671
+ this.logger.warn(
18672
+ "Slash command produced no output; treating as unsupported",
18673
+ { sessionId: params.sessionId, command: cmd }
18674
+ );
18675
+ await this.client.sessionUpdate({
18676
+ sessionId: params.sessionId,
18677
+ update: {
18678
+ sessionUpdate: "agent_message_chunk",
18679
+ content: {
18680
+ type: "text",
18681
+ text: `Unsupported slash command: \`${cmd}\`. PostHog Code does not implement this command.`
18682
+ }
18683
+ }
18684
+ });
18685
+ return { stopReason: "end_turn" };
18686
+ }
18669
18687
  this.logger.debug("Skipping idle state before prompt replay", {
18670
18688
  sessionId: params.sessionId
18671
18689
  });