Skip to content

The packaged app launched from a Herdr pane inherits a stale HERDR_BIN_PATH and never attaches #214

Closed

Description

@yansfil

What happened

Opening the installed app from a shell inside a Herdr pane (open /Applications/hide.app) passed that pane's environment to the desktop host, including the HERDR_BIN_PATH Herdr sets in every pane.
The pane was created by an older bundle whose Herdr lived at Contents/Resources/herdr-runtime/herdr, a path the current bundle no longer has.
Because the host passes an inherited HERDR_BIN_PATH through unchanged (desktop/src/main/host.ts bundledHerdr, D-07), the bundled CLI refused it on every attempt and the window never attached:

{"event":"discovery.start","attempt":1,"trigger":"launch","herdr":"inherited"}
{"event":"discovery.failed","attempt":1,"reason":"start_failed","detail":"HERDR_BIN_PATH: /Applications/hide.app/Contents/Resources/herdr-runtime/herdr is not an executable file; the Herdr that set it has moved, so unset it or n..."}

The window stayed up with nothing attached and the failure reached only desktop.log.
Relaunching with env -u HERDR_BIN_PATH ... open /Applications/hide.app attached at once with "herdr":"bundled".

What you expected

A packaged app launched from a terminal behaves like one launched from the Dock.
Either the packaged host ignores HERDR_BIN_PATH values that Herdr itself put in a pane environment (for example when HERDR_PANE_ID is also set) and uses its bundled Herdr, or it reports the refusal on screen with the one action that fixes it.
Agents in this repository routinely relaunch the app from a pane after an install, so this path is common here.

Steps to reproduce

  1. Keep a pane that was created while an older bundle layout was installed.
  2. Install a current package over /Applications/hide.app.
  3. From that pane run open /Applications/hide.app.

Versions

  • hide: 0.1.0-main.c6b0f187
  • Herdr: 0.9.1
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions