polygram 0.11.0-rc.6 → 0.11.0-rc.7

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "polygram",
4
- "version": "0.11.0-rc.6",
4
+ "version": "0.11.0-rc.7",
5
5
  "description": "Telegram integration for Claude Code that preserves the OpenClaw per-chat session model. Migration target for OpenClaw users. Multi-bot, multi-chat, per-topic isolation; SQLite transcripts; inline-keyboard approvals. Bundles /polygram:status|logs|pair-code|approvals admin commands plus history (transcript queries) and polygram-send (out-of-turn IPC sends with file-upload validation) skills.",
6
6
  "keywords": [
7
7
  "telegram",
@@ -416,25 +416,19 @@ class ChannelsProcess extends Process {
416
416
  claudeArgs.push('--dangerously-skip-permissions');
417
417
  }
418
418
 
419
- // Parity audit P3: append display-hint so Claude knows it's replying
420
- // through Telegram. Prevents canned strings like "No response requested."
421
- // from leaking as user-visible messages (shumorobot 2026-05-15 incident).
422
- claudeArgs.push('--append-system-prompt', POLYGRAM_DISPLAY_HINT);
423
-
424
- // rc.6 (2026-05-25 shumorobot diagnosis): channels-mode contract is
425
- // NOT obvious to the agent. The bridge's MCP `instructions:` field tells
426
- // claude to use the reply tool, but that's seen only during MCP init and
427
- // gets buried under the agent's own system prompt. Observed live: the
428
- // music-curator agent received user messages via the channel and wrote
429
- // replies INLINE to its TUI instead of calling `mcp__polygram-bridge__reply`,
430
- // so polygram never saw them and every turn timed out after 3 minutes.
431
- //
432
- // Append a SECOND, explicit directive that overrides the agent's default
433
- // conversational behavior. Phrased as a hard rule so it survives whatever
434
- // the agent's system prompt says. Future tuning may move this to a
435
- // shared lib/telegram/channels-protocol-hint.js if it grows; for now
436
- // inline is fine since it's tied to the channels backend implementation.
419
+ // Parity audit P3 + rc.7 (2026-05-26 shumorobot diagnosis): combined
420
+ // system-prompt suffix carrying BOTH the Telegram display rules AND the
421
+ // channels-mode reply-tool contract. Merged into a single
422
+ // --append-system-prompt block — passing two separate
423
+ // --append-system-prompt flags caused MCP server registration to fail
424
+ // (live shumorobot tmux banner: "server:polygram-bridge · no MCP server
425
+ // configured with that name"; claude received no channel messages).
426
+ // Suspected: --append-system-prompt is variadic in claude's CLI and the
427
+ // second flag was eating the subsequent --setting-sources / --mcp-config
428
+ // arguments. Single combined block sidesteps the issue.
437
429
  claudeArgs.push('--append-system-prompt', [
430
+ POLYGRAM_DISPLAY_HINT,
431
+ '',
438
432
  '## polygram channels mode — HARD CONTRACT',
439
433
  '',
440
434
  'You are running inside polygram with the channels backend. Your stdout/TUI',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polygram",
3
- "version": "0.11.0-rc.6",
3
+ "version": "0.11.0-rc.7",
4
4
  "description": "Telegram daemon for Claude Code that preserves the OpenClaw per-chat session model. Migration path for OpenClaw users moving to Claude Code.",
5
5
  "main": "lib/ipc/client.js",
6
6
  "bin": {