polygram 0.11.0-rc.4 → 0.11.0-rc.5
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.
|
|
4
|
+
"version": "0.11.0-rc.5",
|
|
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",
|
|
@@ -431,10 +431,24 @@ class ChannelsProcess extends Process {
|
|
|
431
431
|
const cwd = topicConfig?.cwd || opts.chatConfig?.cwd || opts.cwd;
|
|
432
432
|
if (cwd) claudeArgs.unshift('--add-dir', cwd);
|
|
433
433
|
|
|
434
|
+
// rc.5 (2026-05-25 shumorobot diagnosis): the launch cwd MUST be the
|
|
435
|
+
// resolved topic/chat cwd, not just opts.cwd. claude's TUI indexes
|
|
436
|
+
// session storage by current working directory — its session files
|
|
437
|
+
// live under ~/.claude/projects/<cwd-with-dashes>/<session-id>.jsonl.
|
|
438
|
+
// When polygram launched claude with cwd=process.cwd() (the daemon's
|
|
439
|
+
// own working dir, e.g. ~/.polygram), `--resume <id>` looked in the
|
|
440
|
+
// wrong projects dir and printed "No conversation found with session
|
|
441
|
+
// ID: <id>" then exited clean — surfacing as "Process exited (code 0)"
|
|
442
|
+
// immediately after the bridge briefly connected.
|
|
443
|
+
//
|
|
444
|
+
// Mirrors lib/process/tmux-process.js:488 + :659 — same resolution,
|
|
445
|
+
// same fallback chain. The `--add-dir` flag is independent: it
|
|
446
|
+
// declares an additional trusted-roots entry, NOT the launch dir.
|
|
447
|
+
//
|
|
434
448
|
// Real tmuxRunner.spawn signature: {name, cwd, command, args, envExtras, paneWidth}
|
|
435
449
|
await this.runner.spawn({
|
|
436
450
|
name: tmuxName,
|
|
437
|
-
cwd: opts.cwd || process.cwd(),
|
|
451
|
+
cwd: cwd || opts.cwd || process.cwd(),
|
|
438
452
|
command: this.claudeBin,
|
|
439
453
|
args: claudeArgs,
|
|
440
454
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polygram",
|
|
3
|
-
"version": "0.11.0-rc.
|
|
3
|
+
"version": "0.11.0-rc.5",
|
|
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": {
|