Repository navigation
Description
CreatePullRequest is forbidden for this account, so this is the write-up for the branch.
Branch: SebTardif:fix/f068-reject-bad-forward-ports
Head: fe0c60aa5771a571dd1144abc206bd0e293da88c
Connection Status accepted a blank SSH forward port as 18789 or 18790, and it kept a value such as 70000. Connect could then start the tunnel. The connection page already rejected those values.
SshForwardPorts.TryParse rejects a blank, unparsed, or out-of-range remote or local port. Both Connection Status and the connection page use it, and a bad port returns before ConnectAsync.
./build.ps1 passed. Shared 4263 passed, 34 skipped, 4297 total. Tray 4004 passed.
The Connection Status window was not opened on this head, and ssh.exe was not started.
Ref F068.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Oct 9, 2026
Codex review: this still needs some work.
Summary
Current main still has the validation defect, and an open maintainer-owned PR explicitly closes this issue.
Reproducibility: Current source establishes the path: enable SSH with valid URL, user, and host, then leave either forward port blank or enter 70000; Connection Status proceeds into ConnectAsync without field validation. No live reproduction was run.
Next step
Review and land #1729 (fix(connection): reject invalid SSH forward ports before connecting), then let its closing reference resolve this issue.
Review details
Best possible solution:
Apply consistent field-specific validation before the direct-connect transaction while preserving valid ports and existing service ownership.
Do we have a high-confidence way to reproduce the issue?
Current source establishes the path: enable SSH with valid URL, user, and host, then leave either forward port blank or enter 70000; Connection Status proceeds into ConnectAsync without field validation. No live reproduction was run.
Is this the best way to solve the issue?
The linked repair shares the existing Connection page validation contract and rejects invalid input before transaction entry; its tests and reported visible proof should be assessed in that PR.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 8115ba1c71cc.
Label changes
Label changes:
No label changes.
Label justifications:
P2: A bounded input-validation defect affects an optional SSH workflow and has downstream range enforcement.impact:ux-friction: Invalid fields silently become defaults or enter a connection transaction instead of receiving immediate correction.Evidence reviewed
What I checked:
src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs:418, 8115ba1c71cc)src/OpenClaw.Tray.WinUI/Pages/ConnectionPage.xaml.cs:2922, 8115ba1c71cc)src/OpenClaw.Shared/SshTunnelCommandLine.cs:60, 8115ba1c71cc)src/OpenClaw.Tray.WinUI/Windows/ConnectionStatusWindow.xaml.cs, f6544f446404)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 14, 2026, 10:22 PM ET / October 15, 2026, 02:22 UTC.
clawsweeper commentedon Oct 9, 2026
🦞🔧
ClawSweeper is automatically building a fix for this issue.
The issue review finished and no active implementation pull request was found.
Automatic implementation progress:
clawsweeper:manual-onlyorclawsweeper:human-review.shanselman commentedon Oct 15, 2026
@clawsweeper stop
shanselman commentedon Oct 15, 2026
Taking this into the maintainer landing queue at Scott's request. Thanks @SebTardif for the existing branch and validation. We will preserve your contribution, bring the narrow port-validation fix onto current main, and complete the invalid/boundary regression coverage and isolated Connection Status proof before landing. Coordinated with the other active Seb PR session; no competing implementation is needed. The stop request above is to avoid duplicating the previously queued automatic worker, not to reject the proposed fix.
clawsweeper commentedon Oct 15, 2026
Got it. ClawSweeper will leave this item for human review.
I added
clawsweeper:human-reviewand paused the automation trail until a maintainer asks again.