fix(cli): display system push messages without decryption
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

System messages (watch_triggered, mcp_deployed, peer_joined, etc.)
have senderPubkey='system' with empty ciphertext. The push handler
now formats them as readable plaintext instead of failing to decrypt.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-08 19:12:49 +01:00
parent bfc62b9a72
commit 26c4502277
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "claudemesh-cli",
"version": "0.8.8",
"version": "0.8.9",
"description": "Claude Code MCP client for claudemesh — peer mesh messaging between Claude sessions.",
"keywords": [
"claude-code",

View File

@@ -1635,6 +1635,14 @@ Your message mode is "${messageMode}".
content = `[system] MCP server "${data.serverName}" removed (was hosted by ${data.hostedBy})`;
} else if (eventName === "mcp_restored") {
content = `[system] MCP server "${data.serverName}" is back online (hosted by ${data.hostedBy})`;
} else if (eventName === "watch_triggered") {
content = `[WATCH] ${data.label ?? data.url}: ${data.oldValue}${data.newValue}`;
} else if (eventName === "mcp_deployed") {
content = `[SERVICE] "${data.name}" deployed (${data.tool_count} tools) by ${data.deployed_by}`;
} else if (eventName === "mcp_undeployed") {
content = `[SERVICE] "${data.name}" undeployed by ${data.by}`;
} else if (eventName === "mcp_scope_changed") {
content = `[SERVICE] "${data.name}" scope changed to ${JSON.stringify(data.scope)} by ${data.by}`;
} else {
content = `[system] ${eventName}: ${JSON.stringify(data)}`;
}