All foreground tool calls now acquire a lock based on the tool's declared scope and file path before execution: - scope "read": no lock (reads never conflict) - scope "write": exclusive lock on the file path - scope "global": exclusive global lock (serializes with everything) This ensures writes to the same path serialize regardless of which agent initiated the call, enabling safe parallel sub-agents within a session without explicit coordination. Cross-session serialization (shared toolsrv per host) is left as future work. |
||
|---|---|---|
| .. | ||
| parse.go | ||
| pathlock.go | ||
| pathlock_test.go | ||
| proc.go | ||
| proc_test.go | ||
| server.go | ||
| state_test.go | ||