fix(cli): verify forward listener before success#1880
Conversation
Wait for a connectable local forward listener before reporting foreground forwarding success. Fail background forwarding when the forked SSH process cannot be tracked, probe the listener before writing the PID file, and terminate the tracked SSH process if the listener never opens. Document that forwarded URLs are printed only after listener health is proven. Signed-off-by: Shiju <shiju@nvidia.com>
PR Review StatusValidation: This PR is project-valid because it directly fixes reproducible Review findings:
Docs: Fern docs were updated under Next state: |
Signed-off-by: Shiju <shiju@nvidia.com>
Re-check After Author UpdateI re-evaluated latest head Disposition: partially resolved. Resolved items:
Remaining items:
Non-blocking suggestion: consider adding a direct foreground regression test where fake Docs: Fern docs were updated under Next state: |
Signed-off-by: Shiju <shiju@nvidia.com>
1678fe7 to
4583b5d
Compare
Summary
This PR makes
openshell forwardreport success only after the local SSH forward listener is actually reachable. It also makes background forwards fail closed when the forked SSH process cannot be tracked, so OpenShell does not leave users with an unusable or unmanageable forward.Related Issue
Fixes #1878
Changes
0.0.0.0and::.forward listandforward stop.Testing
mise run pre-commitpassesChecklist