ollie/session
Ollie Agent 2b4d577e39 refactor: architectural cleanup (5 items)
1. Standardize ctl dispatch: hoist rootCtlHandlers and sessionCtlHandlers
   to package-level vars, matching the agent pattern.

2. Fix error wrapping: %v → %w in toolsrv/shell.go (only 2 instances;
   backend/ was already clean).

3. Canonicalize tool server access: LoadTool now only uses
   session.ToolsConn() — removed fallback to agent.ToolServer().

4. Centralize event handler wiring: wireAgentEvents(sessID, ag, al)
   replaces separate SetOutput + wireAgentStateEvents calls. Documents
   the contract.

5. Split toolsrv/shell.go: validation patterns, ValidateCode, and rate
   limiting moved to shell_validate.go (86 lines). shell.go retains
   execution logic (594 lines).
2026-08-09 12:46:36 +02:00
..
event.go all: merge toolsrv files, fix context hierarchy, remove dead params 2026-08-08 16:13:55 +02:00
persist.go remove dead code: TaskState subsystem, Verbosity, dead session fields 2026-08-09 01:03:19 +02:00
registry.go refactor: reduce redundancy, remove dead code, improve structure 2026-08-09 11:23:25 +02:00
session.go refactor: architectural cleanup (5 items) 2026-08-09 12:46:36 +02:00
setup.go simplify preamble: section-based model, no string surgery 2026-08-09 00:32:49 +02:00