Skip to content

Investigate remote-server setup, connection lifecycle and implementation gaps #1967

Closed

Description

@currentbits

Research Solenta's current server, SSH and linked-computer workflows and produce a concrete implementation proposal.

Plan:

  • Establish the current server/client architecture and supported user flows from source and tests.
  • Assess remote bootstrap, authentication, persistence, reconnect/resume, updates, terminals/files and multi-computer behavior.
  • Compare complete server attachment with the existing SSH-project and linked-computer approaches; identify actual gaps rather than duplicate shipped features.
  • Deliver a prioritized, phased plan with file/module ownership, compatibility constraints and end-to-end acceptance checks.

This issue tracks investigation and implementation planning. No production remote deployment or credential changes are included.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    on Nov 8, 2026
  2. currentbits commented on Nov 8, 2026

    @currentbits
    OwnerAuthor

    Note

    🤖 gpt-6.1-sol responding on behalf of currentbits

    Research complete against Solenta main 490c7d530e9ba6d0fddc061095dadd452367dc50. This closes the investigation, not the implementation work described below. Source and checked-in tests were inspected; no service, remote host, deployment or provider call was run.

    Solenta already has the core remote-host architecture: plain-Node server archives for macOS Intel/Apple Silicon and Linux x64/ARM64, checksum-verified SSH provisioning, direct address/device-token connections, shared desktop/web handlers, a combined desktop sidebar, remote terminal/files and linked-computer workers. Preserve that backend and execution ownership.

    Concrete gaps:

    • Runtime updates: the outdated Linux host button calls the old desktop Linux x64 installer, which does not update the running Node server under ~/.solenta/server/<tag>. ARM hosts need runtime-aware routing too.
    • Persistent lifecycle: bootstrap uses nohup; no Node service manager, reboot guarantee, update owner or rollback contract exists. The Node shim's always-successful single-instance lock is not data-directory protection.
    • Identity/compatibility: archive metadata lacks desktop-style SHA/tag stamps; wire authentication only returns auth-ok. Hosts are keyed by address/SSH endpoint rather than a verified stable server identity.
    • Host settings: global provider/model/profile/settings calls in the combined desktop use local context, while applying a profile to a remote thread resolves against that host's store. Add explicit host-qualified calls.
    • Recovery: a mounted terminal can miss all final output/exit during an outage if no later push triggers reread. In-flight mutating replies are ambiguous after disconnect, so do not add blind replay.
    • Onboarding: older Electron/x64/manual-install instructions coexist with automatic Node bootstrap. Bundled Node has no npm/Git/provider CLI, so actual prerequisites and remote agent readiness must be surfaced.

    Implementation sequence:

    1. First batch, three work streams: (a) persisted server ID, stamped runtime/build identity and backward-compatible protocol/capability descriptor; (b) host-qualified provider/profile/settings discovery and application; (c) terminal/thread authoritative resync with connection-generation fencing. Agree the small shared contract before parallel implementation.
    2. Managed host: Linux user-service/launcher with per-data-dir ownership, status/logs/restart/uninstall and explicit linger policy; then macOS launchd with its login/awake constraints. Add runtime-aware staged updates with authenticated target-build verification. Define rollback for Solenta's actual JSON/database stores rather than assuming a single database. Update setup/docs against these APIs.
    3. Multiple routes and enrollment: bind SSH/direct HTTPS routes and credentials to stable server identity, add controlled fallback/preferred-route recovery, and refine expiring enrollment/session lifecycle using existing device scopes/revocation. Persist operation IDs/receipts before offering retries of named mutations. Browser sessions can remain explicitly single-host initially; HTTPS thread links for linked computers #1937 already covers HTTPS links for linked computers.
    4. Optional managed access: account/host discovery and outbound managed tunnels require a separate broker, identity, authorization/session exchange, connector lifecycle and resource cleanup project. Existing SSH/direct HTTPS/Tailscale access should remain usable without this infrastructure.

    Acceptance should include remote-only providers and colliding profile IDs; old-host compatibility; mismatched-host credential refusal; terminal exit wholly during outage; lost mutation reply after commit; duplicate-data-dir launch; failed checksum/trial upgrade; Linux logout/crash/reboot recovery; and native archive/service checks on each promised architecture. Use isolated data/fake providers for transport contracts. Disconnect must be distinct from stopping a server, and restart continuation must honor existing interruption/approval rules.

    Implementation references: server entry, connection/bootstrap adapter, host routing, wire contract, Connections UI, native server smoke workflow.

  3. removed
    plan:doing
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions