Skip to content

Switch between named herdr sessions from the app #3183

Closed as not planned
Closed as not planned

Description

@rpbaptist

Problem

I run several named herdr sessions (herdr --session <name>), one per client or project. Ovis shows only one: the session in HERDR_SOCKET, or else the one that started the plugin first. To see another session from my phone, I edit the plugin's .env on the PC and restart Ovis, which drops every open browser and phone connection.

Proposal

List the PC's herdr sessions (herdr session list --json: name, running, socket) in the app, for example in the sidebar header or the command palette. Picking a running session switches the server's herdr connection to that socket, with no restart. The app reloads its workspaces, and the choice stays across restarts. Stopped sessions show greyed out. HERDR_SOCKET in the config still pins the session and hides the picker.

Where

Sidebar / command palette, server herdr client.

Where it exists today

herdr itself: herdr session list and herdr session attach <name> switch the TUI between sessions. Ovis's PC list already switches between herdr instances on other machines, so a local session could be one more entry in it.

Workarounds and alternatives

Now: a script that rewrites HERDR_SOCKET in the plugin .env and runs plugin.ts stop plus the start action. An alternative is to add each local session as a "PC" over SSH to localhost (the SSH target has a session field). That needs sshd and adds a hop.

If this is wanted, I can open the PR.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions