Skip to content

fix(remote): forward collaboration mode and handle disconnect#146

Closed
slkzgm wants to merge 4 commits intoDimillian:mainfrom
slkzgm:pr6-remote-workspace-ops-client-v2
Closed

fix(remote): forward collaboration mode and handle disconnect#146
slkzgm wants to merge 4 commits intoDimillian:mainfrom
slkzgm:pr6-remote-workspace-ops-client-v2

Conversation

@slkzgm
Copy link
Contributor

@slkzgm slkzgm commented Jan 20, 2026

Part of the optional remote backend RFC (#54).

Summary

This is a small follow-up on top of #121 to make remote mode behave the same as local mode for collaboration selection, and to avoid commands hanging indefinitely after a daemon restart / TCP disconnect.

Changes

  • Forward collaborationMode in remote send_user_message.
  • Proxy collaboration_mode_list in remote mode.
  • Make the remote client fail fast after disconnects:
    • Track a shared connected flag
    • Drain pending requests when the read loop ends or the write loop hits an IO error

Notes

  • Default behavior remains unchanged (only active when backendMode=remote).

Validation

  • npm run lint
  • npm run typecheck
  • npm run build

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