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-core/pkg
Levi Neely ed62caced5 agent: serialize Submit with submitMu to prevent command/turn races
Commands like /compact arriving via ctl and prompts arriving via prompt
both call Core.Submit in separate goroutines. handleCommand for mutating
commands (compact, clear, agent, backend) modifies session state without
setting currentAction, so IsRunning() returns false and a concurrent
executeTurn can race.

Add submitMu held during the serialized path of Submit. The fast path
(inject/FIFO push while running) remains lock-free.

Also fix pre-existing race in TestSessionFileStoreWritePrompt: replace
time.Sleep synchronization with a channel signal.
2026-04-26 19:40:06 +02:00
..
agent agent: serialize Submit with submitMu to prevent command/turn races 2026-04-26 19:40:06 +02:00
backend backend: stream extended thinking / reasoning tokens 2026-04-26 19:01:27 +02:00
config config: make prompt executable (string or []string of commands) 2026-04-26 15:00:33 +02:00
env env: add OLLIE_ELEVATE_SOCKET to managed list and EnsureDefaults 2026-04-25 11:45:46 +02:00
log pkg/log: remove globals, inject Sink as dependency 2026-04-21 14:48:41 +02:00
paths expand ~ in cwd across agent core, hooks, and execute server 2026-04-24 20:10:42 +02:00
skills pkg/config, pkg/skills: accept io.Reader, remove filesystem access 2026-04-21 13:51:46 +02:00
store agent: serialize Submit with submitMu to prevent command/turn races 2026-04-26 19:40:06 +02:00
tools tests: add flock/locking coverage for execute package 2026-04-26 18:50:35 +02:00