diff options
| author | t <t@tjp.lol> | 2026-10-25 16:23:29 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-10-26 10:28:44 -0600 |
| commit | a139aba0d7426c5961ea26ec8d1ce70de25f12e6 (patch) | |
| tree | cc1324530d128dbdbef8fa4d4ff63324007cb1a7 /init.lua | |
| parent | 8db51f9455a53fcd95982a75343ccfb8d8bac47b (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.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
