SetAgentLog acquires sess.mu, but CreateAgent in create.go already holds sess.mu when calling it — causing a deadlock on agent/new writes. Split into SetAgentLog (locks) and setAgentLogLocked (no lock) so callers that already hold the lock can use the locked variant directly. |
||
|---|---|---|
| .. | ||
| session | ||