@pencil-agent/nano-pencil 1.11.35 → 1.11.36

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.
@@ -300,7 +300,11 @@ export default async function loopExtension(pi) {
300
300
  const bus = pi.events;
301
301
  const controller = getController(bus);
302
302
  getScheduler(bus);
303
- ensureSchedulerTicker(pi, bus);
303
+ // Defer scheduler ticker until session starts (runtime must be initialized)
304
+ // ensureSchedulerTicker is called on session_start below
305
+ pi.on("session_start", () => {
306
+ ensureSchedulerTicker(pi, bus);
307
+ });
304
308
  pi.on("session_shutdown", () => {
305
309
  controller.stop("Session shutdown stopped the grub task.", "stopped");
306
310
  const timer = schedulerTimerByBus.get(bus);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pencil-agent/nano-pencil",
3
- "version": "1.11.35",
3
+ "version": "1.11.36",
4
4
  "description": "CLI writing agent with read, bash, edit, write tools and session management. Based on pi; supports DashScope Coding Plan. Soul enabled by default for AI personality evolution.",
5
5
  "type": "module",
6
6
  "bin": {