Skip to content

Reconfiguring a connected remote workspace leaves stale per-panel remote bookkeeping #83

Description

@arzafran

configureRemoteConnection and disconnectRemoteConnection (Sources/Workspace.swift) each carry their own copy of a ~14-line remote-state reset block, and the copies have drifted. Reconfiguring an already-connected workspace to a new destination resets only part of the state, leaving stale per-panel remote-session bookkeeping behind.

Fix: extract one resetRemoteState() used by both paths. The drift is the bug; the dedup is the fix.


From the 2026-07-09 nuclear review (10 module reviewers + Codex cross-model pass, disprove-first). Line refs are against the reductive-audit branch (PR #81).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnuclear-reviewFrom the 2026-07-09 whole-codebase nuclear reviewremote-daemonSSH-remote daemon (programad-remote)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions