Skip to content

fix(agents): register a stable sidecar copy for AppImage installs#10

Merged
anbturki merged 1 commit into
mainfrom
fix/appimage-sidecar-path
Jul 3, 2026
Merged

fix(agents): register a stable sidecar copy for AppImage installs#10
anbturki merged 1 commit into
mainfrom
fix/appimage-sidecar-path

Conversation

@anbturki

@anbturki anbturki commented Jul 3, 2026

Copy link
Copy Markdown
Owner
  • AppImage runtime mounts the bundle at an ephemeral per-launch path ($APPDIR), so the in-app Connect flow registered a /tmp/.mount_* command that dies when the app exits
  • When $APPIMAGE is set, sidecar_path now copies the bundled docsreader-mcp into the app data dir (bin/) via temp-file-plus-rename and registers that stable path
  • The copy refreshes on every resolution (settings open / connect click), so app updates self-heal; fs::copy preserves the executable bit
  • macOS, Windows, deb, and Homebrew installs are unchanged (no $APPIMAGE env)
  • Tests: copy lands and refreshes, executable bit preserved, loud error when the bundled binary is missing

AppImages mount at an ephemeral per-launch path, so the Connect flow
was writing the mounted /tmp/.mount_* sidecar path into client configs,
which dies as soon as the app exits. When APPIMAGE is set, copy the
bundled docsreader-mcp into the app data dir and register that path,
refreshing the copy on every resolution so app updates self-heal.
@anbturki anbturki merged commit 955a57d into main Jul 3, 2026
2 checks passed
@anbturki anbturki deleted the fix/appimage-sidecar-path branch July 3, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant