summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-10-25 16:23:29 -0600
committert <t@tjp.lol>2026-10-26 10:28:44 -0600
commita139aba0d7426c5961ea26ec8d1ce70de25f12e6 (patch)
treecc1324530d128dbdbef8fa4d4ff63324007cb1a7 /init.lua
parent8db51f9455a53fcd95982a75343ccfb8d8bac47b (diff)
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.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
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)