@inetafrica/open-claudia 2.6.9 → 2.6.10

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.6.10
4
+ - **Sessions: wakeups join the live conversation instead of forking it.** A scheduled wakeup/cron captured the channel's `sessionId` at schedule time and resumed that *frozen* id when it fired — but every run writes its result id back to the shared `state.lastSessionId`, and a home-conversation compaction mints a brand-new id. So a pending wakeup carrying a pre-compaction id would yank the channel's live pointer onto a dead thread, and the user's next typed message landed on the stale session. Multiple concurrent wakeups froze different ids and forked the channel into parallel sessions. Fix (`core/scheduler.js`): a wakeup now resumes the channel's live `state.lastSessionId` (already ownership-guarded in the runner); the frozen `job.sessionId` is used only as a cold-start fallback when there is no live pointer. Wakeups scheduled after upgrade join the current context; already-pending wakeups still carry their old id until they fire.
5
+
3
6
  ## v2.6.8
4
7
  - **Tasks: a plan can't be completed while subtasks are still open.** `task done` (and the loopback task-update path) now refuses to flip a parent to completed if any child is not yet completed — it returns a blocked result listing the open children, and the CLI prints a clean "Can't complete <id>: N subtask(s) still open" message instead of silently corrupting the tree. Standalone tasks and completing the last open child (which removes the whole plan) are unchanged. Prevents the inflated-count drift where parents showed done over still-open children.
5
8
 
package/core/scheduler.js CHANGED
@@ -106,7 +106,10 @@ async function fireJob(job, retry = 0) {
106
106
 
107
107
  const { runClaude } = require("./runner");
108
108
  const runOpts = {};
109
- if (job.sessionId) runOpts.resumeSessionId = job.sessionId;
109
+ // Join the channel's live conversation. Only fall back to the wakeup's
110
+ // frozen sessionId when there's no live pointer (cold start) — otherwise
111
+ // a stale, compacted-away id would yank the channel onto a dead thread.
112
+ if (!state.lastSessionId && job.sessionId) runOpts.resumeSessionId = job.sessionId;
110
113
  try {
111
114
  await runClaude(wrappedPrompt, cwd, null, runOpts);
112
115
  jobs.update(job.id, { lastFireAt: Date.now(), lastFireOk: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inetafrica/open-claudia",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "Your always-on AI coding assistant — Claude Code, Cursor Agent, and OpenAI Codex via Telegram or Kazee Chat",
5
5
  "main": "bot.js",
6
6
  "bin": {