Skip to content

fix: migrate SSH relay bootstrap paths from ~/.cmux to ~/.programa (#15)#33

Merged
arzafran merged 1 commit into
mainfrom
fix/issue-15-relay-programa-paths
Jun 26, 2026
Merged

fix: migrate SSH relay bootstrap paths from ~/.cmux to ~/.programa (#15)#33
arzafran merged 1 commit into
mainfrom
fix/issue-15-relay-programa-paths

Conversation

@arzafran

Copy link
Copy Markdown
Member

What this does

SSH-remote panels' relay warmup and TTY reporting were silently broken. The SSH bootstrap script generators in CLI/cmux.swift still wrote to the old ~/.cmux/... paths and looked for a cmux binary on the remote host, while the rest of the daemon (Sources/Workspace.swift, daemon/remote/cmd/programad-remote/cli.go) already moved to ~/.programa/... and the programa binary. The result: the remote relay CLI was never found, and the remote wrote the TTY name to a directory the Mac app never reads. This realigns the bootstrap scripts so SSH-remote relay actually works.

Summary

16 remote-host string sites in CLI/cmux.swift migrated:

  • Relay auth read path ~/.cmux/relay/<port>.auth~/.programa/relay/...
  • Bootstrap/shell-state dirs and TTY writes ~/.cmux/relay/~/.programa/relay/
  • Relay CLI lookup + warmup ~/.cmux/bin/cmux / command -v cmux~/.programa/bin/programa / command -v programa
  • PATH injection and PROGRAMA_BUNDLED_CLI_PATH~/.programa/bin/programa

Scope: only remote-host shell path/binary literals. No Swift symbols, local-Mac paths, DispatchQueue labels, theme bundle IDs, or product/scheme names were touched.

Note: three adjacent command -v cmux sites (session-end hook, codex hook) are also stale for the remote but fall outside this issue's scope and are left for a follow-up.

Test Plan

  • CI build passes
  • tests_v2/test_ssh_remote_*.py suite green

Fixes #15

@arzafran arzafran merged commit bf9623a into main Jun 26, 2026
6 of 8 checks passed
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.

SSH-remote daemon is unmaintained — fix ~/.cmux→~/.programa relay split-brain before relying on it

1 participant