Skip to content

herdr-core mode: hc connect autostarts the core with the Herdr TUI pane's HERDR_* variables #3285

Closed

Description

@marianvnc

What happens

On Linux with herdr-core 0.1.18 and Ovis at 9974f099 in herdr-core mode, Ovis's hc connect can be the first hc call after login. hc then autostarts the core, and the core keeps the caller's whole environment for every terminal it creates (herdrdev/herdr-core#86). Ovis runs as a Herdr TUI plugin, so that environment includes the TUI pane's identity:

HERDR_ENV=1  HERDR_PANE_ID=wBE:p2  HERDR_WORKSPACE_ID=wBE  HERDR_TAB_ID=wBE:t1
HERDR_PLUGIN_ID=devswha.ovis  HERDR_PLUGIN_EVENT=startup  HERDR_PLUGIN_CONTEXT_JSON=…  HERDR_PLUGIN_ROOT=…

Every Herdr app terminal opened afterwards carries these. Programs there take them for a Herdr TUI pane: herdr CLI calls target pane wBE:p2, and scripts that support both TUI and app see two identities. The core's environment file has PWD set to Ovis's plugin checkout, which is how we traced it to Ovis.

Proposed fix

In server/herdr-core/connection.ts (spawnHcConnect), spawn hc connect with the Herdr TUI pane and plugin variables removed: HERDR_ENV, HERDR_PANE_ID, HERDR_TAB_ID, HERDR_WORKSPACE_ID and HERDR_PLUGIN_*. The same goes for any other hc invocation that can start the core. hc doesn't need any of them, and herdrdev/herdr-core#86 is the root fix on hc's side.

Activity

  1. devswha commented on Nov 11, 2026

    @devswha
    Owner

    Fixed in #3342: hc connect is now started without the Herdr TUI pane and plugin variables (HERDR_ENV, HERDR_PANE_ID, HERDR_TAB_ID, HERDR_WORKSPACE_ID, HERDR_PLUGIN_*), so a core it starts no longer hands them to its terminals.

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