From a139aba0d7426c5961ea26ec8d1ce70de25f12e6 Mon Sep 17 00:00:00 2001 From: t Date: Sun, 25 Oct 2026 16:23:29 -0600 Subject: Subscribe to pantograph's render_* events The header wrap moves to `render_header` and the policy timer starts on `session_ready`, since `session_start` is now a lifecycle event that also fires for child agents. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 17e0ed7..5043e60 100644 --- a/init.lua +++ b/init.lua @@ -48,7 +48,7 @@ end -- money -- is visible whenever it is on. The line re-renders with live -- status on the next repaint. local function install_header(ext, summary) - subscribe(ext, "session_start", function(event) + subscribe(ext, "render_header", function(event) local inner = event:get_component() event:set_component({ render = function(_, width) @@ -149,7 +149,7 @@ local function activate() end end - subscribe(ext, "session_start", function() + subscribe(ext, "session_ready", function() policy:activity(uv.now()) ensure_timer() end) -- cgit v1.3