Skip to content

ci: add ssh remote-up shortcuts#9

Merged
mt4110 merged 3 commits intomainfrom
feat/eazy_action
Feb 25, 2026
Merged

ci: add ssh remote-up shortcuts#9
mt4110 merged 3 commits intomainfrom
feat/eazy_action

Conversation

@mt4110
Copy link
Copy Markdown
Owner

@mt4110 mt4110 commented Feb 25, 2026

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e0cf02f04

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

local remote_script

remote_args_q="$(quote_words "${remote_args[@]}")"
printf -v remote_script 'set -euo pipefail; cd %q; %q %s' "$project_dir" "$remote_cli" "$remote_args_q"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep remote ~ expansion when building SSH command

When --project-dir is omitted, the remote commands fall back to ~/dev/<repo>, but this line builds the SSH payload with cd %q, which turns that into cd \~/dev/<repo>. Because the tilde is escaped, the remote shell does not expand $HOME, so remote-register, remote-run-focus, and remote-up fail unless callers pass an explicit absolute path. This breaks the documented default-path behavior.

Useful? React with 👍 / 👎.

@mt4110 mt4110 merged commit 70a7d92 into main Feb 25, 2026
2 checks passed
@mt4110 mt4110 deleted the feat/eazy_action branch February 25, 2026 11:42
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 503b253151

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

local remote_script

remote_args_q="$(quote_words "${remote_args[@]}")"
printf -v remote_script 'set -euo pipefail; cd %q; %q %s' "$project_dir" "$remote_cli" "$remote_args_q"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow ~ expansion in remote CLI path

In run_remote_ci_self, remote_cli is interpolated with %q, which turns a user-supplied --remote-cli ~/.local/bin/ci-self into \~/.local/bin/ci-self on the remote side, so Bash treats it as a literal filename instead of expanding $HOME. This breaks remote-register, remote-run-focus, and remote-up for hosts where ci-self is installed but not on PATH (the common fallback is passing ~/.local/bin/ci-self).

Useful? React with 👍 / 👎.

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