Skip to content

fix(host): a workspace's people stream opened as the last one closes keeps its follow - #4346

Merged
vespin-agent[bot] merged 1 commit into
mainfrom
luke/workspace-follow-turns
Oct 21, 2026
Merged

vespin-agent[bot] merged 1 commit into
mainfrom
luke/workspace-follow-turns

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to Devin's review of #3942 (thread).

The act port counted each workspace's people streams and asked the host to follow or unfollow outside any turn. So if the last stream's unfollow was still on its way when a new stream opened, the unfollow could land after the new follow and take it away. The new stream stayed open, but nothing reached it.

Each count change and its ask of the host now take the workspace's turn (one semaphore per workspace), as chatChanges in agent-inbox-procedures.ts already does. The unfollow always reaches the host first.

Test: workspace-procedures.test.ts opens a stream while the last one's unfollow is held. The new follow is asked only once the unfollow is done. Without the fix the test fails.

The invitations stream that #3956 adds goes through the same helper, so it gets the same guard when that PR rebases.

Made with Luke


Devin Review

View guided diff Turn on auto-fix

…keeps its follow

The act port counted a workspace's people streams and asked the host to
follow or unfollow outside any turn, so a last stream's unfollow still on
its way could land after a new stream's follow and take that follow away,
the new stream left open with no word reaching it. Each count change and
its ask of the host now take the workspace's turn, as the chat's streams
do, so the unfollow always reaches the host first.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
luke-web Ready Ready Preview Oct 21, 2026 7:32am UTC

Request Review

@vespin-agent
vespin-agent Bot enabled auto-merge October 21, 2026 07:30

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@vespin-agent
vespin-agent Bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit e62695d Oct 21, 2026
12 checks passed
@vespin-agent
vespin-agent Bot deleted the luke/workspace-follow-turns branch October 21, 2026 07:35

This branch was successfully deployed

1 active deployment
Preview — 6d6cf3c9 Deployed Oct 21, 2026 by vercel[bot]
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