fix(gateway): synchronize sessionTracker.active #885

Closed
opened 2026-10-27 13:38:09 +00:00 by sam · 0 comments
Owner

sessionTracker.active is a plain map with no mutex. go-telegram/bot dispatches each update in its own goroutine, so resolve() writes it while getActive() reads it concurrently. Backend-agnostic Go data race.


Imported from beads archie-core-1786637499063-352-c2b85c1a · GitHub #373 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08

sessionTracker.active is a plain map with no mutex. go-telegram/bot dispatches each update in its own goroutine, so resolve() writes it while getActive() reads it concurrently. Backend-agnostic Go data race. --- _Imported from beads `archie-core-1786637499063-352-c2b85c1a` · GitHub #373 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumtask labels 2026-10-27 13:38:09 +00:00
sam self-assigned this 2026-10-27 13:38:09 +00:00
sam closed this issue 2026-10-27 13:38:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#885