Repository navigation
🤖 feat: bash AI proxy for SSH and Coder hosts through reverse forwards - #5774
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7bb3c0dff
ℹ️ 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".
# Conflicts: # src/node/services/bashAiProxy/bashAiProxyService.test.ts
…ient failures, keep restore data current
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cdb1e8f1f3
ℹ️ 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".
# Conflicts: # docs/config/providers.mdx # src/node/services/agentSkills/builtInSkillContent.generated.ts
# Conflicts: # src/node/services/bashAiProxy/proxyState.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4e7a4f9e2
ℹ️ 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".
# Conflicts: # docs/config/providers.mdx # src/node/services/agentSkills/builtInSkillContent.generated.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0b85b71d89
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad557e732d
ℹ️ 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".
…wards when another backend shares the Xum home
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21700046b9
ℹ️ 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".
Summary
Bash commands on SSH and Coder hosts now get the proxy variables too. Xum opens a reverse SSH forward to each host, on the host's
127.0.0.1.PR 3 of 4. It builds on PR 2.
Implementation
SSHTransport.openReverseForward:ssh -N -RwithControlPath=none.forwardInon a dedicated connection. Sharing the exec connection stalled against sshd keepalives.ReverseForwardManager(reverseForwards.ts) opens one forward per host and checks it end to end with a nonce challenge on the proxy's health path. It keeps the remote port in the state file, so a restart reuses it.AllowTcpForwarding no) gets no variables. Xum tries it again after 5 minutes. Connection or probe failures retry after 30 seconds.-R: it starts withClearAllForwardings=yes, and Xum adds the-Rwithssh -O forward, so forwards in~/.ssh/configcannot make it exit.usedAtfresh.stop()is bounded.ps.Validation
SSH2Transport.reverseForward.test.tsruns against an in-process ssh2 server.tests/runtime/bashAiProxyReverseForward.test.ts(integration, Docker sshd) passes for both transports: 2 of 2 on the tested head.Risks
Medium, but only with the switch on. SSH transport changes add a new method and a dedicated-connection path in
SSH2ConnectionPool. Existing exec paths do not change. Known limits:ssh -Runtil the host drops it.XUM_ALLOW_MULTIPLE_INSTANCES=1, or another process's livexum serverlock), SSH and Coder commands get no variables, and Xum restores and saves no forwards. Normal single-backend use is unchanged. Desktop withXUM_NO_API_SERVER=1next toxum serveris not detected: 🤖 Bash AI proxy: SSH forwards when several backends share one Xum home #5794.Generated with
xum• Model:anthropic:claude-opus-5-5• Thinking:high• Cost:$32.63