fix: encapsulate mutable draining/drainScheduled flags in render-queue.ts #1140
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/agent-hooks#1140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a developer maintaining the agent-env-sync pipeline, I want the mutable
draininganddrainScheduledflags inrender-queue.tsto be encapsulated, so that the queue state is self-contained and the control flow is obvious to a reader unfamiliar with the module.Current state
apps/server/src/infrastructure/agent-env-sync/render-queue.tslines 75 and 82 expose two bareletflags at module scopeFix
draining+drainScheduled) in a single closure or class exported as a singletonletsOut of scope
enqueue,drain)References
apps/server/src/infrastructure/agent-env-sync/render-queue.ts:75,82