Skip to content

Fix remote session convergence and duplicate agent restores - #9739

Closed
nikuscs wants to merge 22 commits into
stablyai:mainfrom
nikuscs:nikuscs/multi-client-tab-convergence
Closed

nikuscs wants to merge 22 commits into
stablyai:mainfrom
nikuscs:nikuscs/multi-client-tab-convergence

Conversation

@nikuscs

@nikuscs nikuscs commented Jul 21, 2026 •

Copy link
Copy Markdown

Summary

  • Make tab subscriptions atomic so changes cannot disappear between the initial list and live updates.
  • Reject retired publishers and stale snapshots so reconnects cannot restore older host state.
  • Keep remote terminal mirrors available while offline and avoid treating failed inventory checks as deletion.
  • Stop mirrored editor and browser tabs from being republished as local orphan state.
  • Acknowledge editor and browser closes so remote tab removal is durable.
  • Prevent transient empty PTY inventories and concurrent tab activation from restoring the same agent twice.
  • Give the active remote desktop control of terminal geometry without letting passive viewers steal it.
  • Enforce one live PTY per resumable provider session across desktop and runtime launch paths. Duplicate resumes reveal the existing terminal instead of launching or rebinding it.

Validation

  • Full test suite: 3,157 files and 33,526 tests passed
  • Node, web, and mobile typechecks passed
  • Focused lint, formatting, diff checks, and max-lines ratchet passed

Full repository lint still reaches the existing exhaustiveness error in src/renderer/src/components/skills/skill-freshness-group.tsx:101.

@nikuscs nikuscs closed this Jul 21, 2026
@nikuscs nikuscs reopened this Jul 21, 2026
@nikuscs
nikuscs marked this pull request as draft July 21, 2026 13:26
@nikuscs nikuscs changed the title Fix remote multi-client session convergence Fix remote session convergence and duplicate agent restores Jul 21, 2026
@nikuscs

nikuscs commented Jul 22, 2026 •

Copy link
Copy Markdown
Author

Closed because even after all the efforts this didnt fixed it permanently , hopefully this helps someone in the future :p

Possible related to 9952

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