ollie/cmd/toolsrv/internal/fs
Ollie Agent 0d1eeaa46b fix: background process lifecycle, streaming output, and connection deadlocks
- Timeout: timeout=0 means no deadline (was defaulting to 30s)
- Signal: send to process group (-pgid) not just process; SIGTERM no longer
  cancels context (only SIGKILL does); cmd.Cancel sends SIGTERM with 5s WaitDelay
- Streaming: background procs stream output in real-time via procWriter;
  shell tool no longer buffers all output into a bash variable
- Proc tree: olliesrv exposes proc/{id}/out, proc/{id}/ctl, proc/{id}/status
  as proper 9P directory (was broken flat file)
- Connection: proc handlers dial fresh toolsrv conn per request via
  Session.DialToolServer() to avoid deadlocking the agent's blocked conn
- Stat format: key=value (exited=true, exit_code=N, id=N) matching client parser
- GC: procs auto-removed 10min after LastRead (exited procs only)
- Rename: PID -> ID throughout (synthetic, not OS PID)
- Ctl commands: term (SIGTERM), kill (SIGKILL), signal <n>, dismiss
- System prompt: correct ollie-9p commands for proc management
2026-08-11 09:44:08 +02:00
..
parse.go toolsrv: restructure into internal packages, fix process lifecycle 2026-08-11 07:21:14 +02:00
proc.go fix: background process lifecycle, streaming output, and connection deadlocks 2026-08-11 09:44:08 +02:00
proc_test.go fix: background process lifecycle, streaming output, and connection deadlocks 2026-08-11 09:44:08 +02:00
spec.go fix: background process lifecycle, streaming output, and connection deadlocks 2026-08-11 09:44:08 +02:00
state.go toolsrv: restructure into internal packages, fix process lifecycle 2026-08-11 07:21:14 +02:00
state_test.go toolsrv: restructure into internal packages, fix process lifecycle 2026-08-11 07:21:14 +02:00