Skip to content

Wait for the Slack reply instead of assuming the microtask drained - #218

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix-slack-tag-flake
Aug 21, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix-slack-tag-flake

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

@corbits/slack-tag's "relays the agent's reply back to the Slack thread" test asserted on thread.posts immediately after dispatchWorkbenchSlackEvent resolved, while the fake fires the reply from a queueMicrotask. How many turns of the loop that takes is an implementation detail — it drained in time locally (41 pass, 5/5 runs) and did not on CI. Now waits for the post itself.

The reply lands on a later microtask than the dispatch resolves, so the
assertion passed locally and failed on CI.
@TheGreatAxios
TheGreatAxios merged commit 66a19c4 into main Aug 21, 2026
@TheGreatAxios
TheGreatAxios deleted the fix-slack-tag-flake branch August 25, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant