Skip to content

Reconnect should restore previous pane and zoom state #56

@guysmoilov

Description

@guysmoilov

Problem

On reconnect, the client does not reliably return to the same pane/zoom context it was using before disconnect.

Requested behavior

When a client reconnects to the server with the same client identity/session context, it should try to restore:

  1. The same tmux pane that was previously active
  2. The same zoom state (zoomed or unzoomed)

Scope / Notes

  • This should be best-effort: restore only if the target session/window/pane still exists and is accessible.
  • If restoration is not possible, gracefully fall back to current default behavior.
  • Avoid breaking initial-connect behavior for new clients.

Acceptance criteria

  • After disconnect + reconnect, client lands on the same pane when that pane still exists.
  • Zoom state is restored to match prior state when possible.
  • If pane/session/window no longer exists, client reconnect still succeeds with sensible fallback.
  • Behavior is covered by tests (at least integration-level for reconnect flow).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:frontendFrontend/UI codearea:tmuxtmux integration and behaviorenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions