Skip to content

Failed remote workspace sync status retains duplicate terminal buffers #24832

Closed

Description

@OrcaWin

A failed remote workspace upload can return a complete snapshot, including terminal scrollback. applyRemoteWorkspacePushStatus spreads that whole snapshot into the renderer status record even though its readers use only revision, updatedAt and hostObservationToken plus the existing status/message fields. A conflict prevents later uploads from replacing it, and normal disconnect updates a separate map. Actual stale-revision handler/relay/frame serialization under the default 2 MiB reply budget reproduces this duplicate renderer owner. Four targets with three 128 KiB pane buffers each retain 1,597,384 excess heap bytes versus 12,392 after projecting the three authority fields. A separately labeled eight-target/512 KiB-per-pane stress case retains 12,618,920 versus 14,920 bytes. Preserve all status, authority, hydration and retry behavior; keep only the fields status readers require when a failure reply contains a snapshot.

Activity

  1. AmethystLiang commented on Oct 3, 2026

    @AmethystLiang
    Contributor

    Thanks for reporting. Looking into it

  2. self-assigned this
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions