Files
coder/agent/agentcontext
Kyle Carberry eb613a42a1 fix(agent/agentcontext): address coder-agents-review round 4
CRF-40: ensure runDoneCh is closed even if NewWatcher fails so Close
does not deadlock waiting on a goroutine that already exited.

CRF-41: gate snapshot publishes with a monotonic resolveEpoch counter.
Resync and resolveAndBroadcast drop m.mu around the filesystem walk;
under concurrency a stale walk could overwrite a fresher one at a
higher version number. Each pass now captures its epoch under the
lock and skips the publish if a newer pass has started. Resync
returns the currently published Snapshot in the stale case, which is
guaranteed to be at least as fresh as the discarded result.

CRF-42: hash the (capped) prefix of oversize SKILL.md files so an
edit that keeps the file oversize still shifts the aggregate hash,
matching readFileResource and preserving the change-detection
contract.
2026-06-02 18:41:04 +00:00
..