This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-9p/mgr
Levi Neely d17b5df7dc context: thread daemon ctx through sessions to agents
Daemon creates a root context, cancelled on SIGTERM. Sessions derive
their context from it. Agent turns derive from session ctx. Tools
get the turn ctx.

Signal propagation:
- SIGTERM → daemonCancel() → all session ctxs cancelled → agent turns exit
- User interrupt → agent.Interrupt() (SIGINT equivalent, turn-level only)
- Session kill → sess.Cancel() → that session's agents stop

Previously sessions used context.Background() — daemon shutdown had
no automatic propagation to running agents.
2026-07-29 22:33:03 +02:00
..
create.go context: thread daemon ctx through sessions to agents 2026-07-29 22:33:03 +02:00
format.go 9p: update imports for agent/ package extraction 2026-07-29 21:46:00 +02:00
manager.go context: thread daemon ctx through sessions to agents 2026-07-29 22:33:03 +02:00
persist.go context: thread daemon ctx through sessions to agents 2026-07-29 22:33:03 +02:00
session.go 9p: remove all peer code 2026-07-29 22:17:39 +02:00
sessionfile.go 9p: route all agent operations through .Agent() 2026-07-29 22:05:56 +02:00