Repository navigation
Description
Bug type
Client bug (Windows Hub native chat + SSH tunnel lifecycle)
Beta release blocker
No
Summary
Windows Hub v2026.9.8-1 (latest stable) native chat against a 2026.10.5 gateway (1b58cb9) over the built-in SSH tunnel is unusable, with a cascade failure:
- Composer keyboard shortcuts are dead — Enter and Ctrl+Enter do not submit; only clicking the send button works.
- Clicking send delivers the message (gateway-side
chat.sendtriggers a full agent turn; model calls and the assistant reply are generated), but no reply ever renders in the Hub — the sent bubble stays gray indefinitely. - Within ~1–4 minutes the entire app freezes and must be force-closed.
- After force-close, the Hub's tunnel
ssh.exesurvives as an orphan holding local port 18789; the next Hub start fails the tunnel with port-in-use.Get-NetTCPConnection -LocalPort 18789reports an OwningProcess PID thattasklistcannot resolve (ghost socket) until the OS reclaims it.
Steps to reproduce
- Gateway: OpenClaw 2026.10.5 on Ubuntu (systemd user service,
bind: loopback,auth.mode: token). - Hub setup: SSH-tunnel connection type (key-based SSH auth to the gateway host), gateway token auth, device pairing approved via
openclaw devices approve. - Open a DM session in the Hub's native chat. Type a message. Try Enter / Ctrl+Enter (nothing happens). Click the send button.
- Observe: message reaches the gateway and the assistant turn completes (visible in gateway journal), but no reply appears; the bubble stays gray; the app freezes within minutes; force-close leaves
ssh.exeholding 18789.
Expected behavior
- Enter/Ctrl+Enter submit the composed message.
- The assistant reply renders in the chat.
- No app freeze; tunnel process is terminated with the app.
Actual behavior
See the four-point cascade above. Gateway-side journal evidence for step 2: the Hub's WebSocket connection polls sessions.list / sessions.preview successfully, chat.send starts the turn (model calls logged, reply generated), but zero reply/event deliveries reach the Hub connection in the same window.
Workaround that works: the gateway-served browser Control UI over the same tunnel renders the session and full bidirectional chat fine — suggesting the native client's event-stream consumption is what breaks, not the tunnel or the gateway.
Additional context
- Client: OpenClaw Windows Tray
cli v2026.9.8-1(from the standalone releases page, latest stable as of 2026-10-20). - Gateway: OpenClaw 2026.10.5 (1b58cb9), Ubuntu, loopback bind.
- Note: the stable channel (v2026.9.8-1, latest) currently has no build whose native chat works against a 2026.10.5 gateway — as reported here the feature is unusable, not degraded.
- The SSH tunnel recovery path did not clean up the orphaned
ssh.exeafter the freeze. - Happy to provide journal excerpts or run controlled reproductions on request.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 20, 2026
Codex review: this still needs some work.
Summary
Keep open narrowly for forced-exit tunnel cleanup: the reporter confirms restored chat and clean normal shutdown, but the original abrupt-termination case remains unverified and current SSH cleanup requires managed code to execute.
Reproducibility: No current-main reproduction was run; the official-release report is specific, the reporter confirms improved normal operation, and abrupt-exit cleanup still needs an isolated Windows observation.
Maintainer decision needed
Next step
Verify current-build tunnel ownership, port release, and restart after abrupt parent termination, including visible recovery if restart remains blocked.
Review details
Best possible solution:
The owned SSH tunnel should release port 18789 after abrupt app exit, with a visible recovery action if restart remains blocked.
Do we have a high-confidence way to reproduce the issue?
No current-main reproduction was run; the official-release report is specific, the reporter confirms improved normal operation, and abrupt-exit cleanup still needs an isolated Windows observation.
Is this the best way to solve the issue?
Verify the remaining process-lifetime boundary before changing code, preserving the released chat repairs and existing ownership checks.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 8393459317d0.
Label changes
Label changes:
impact:crash-loop: Current review impact labels areimpact:ux-release-blocker.impact:message-loss: Current review impact labels areimpact:ux-release-blocker.Label justifications:
P0: The remaining reported case blocks app restart and requires external process or port inspection; this preserves the reported recovery severity without claiming it reproduces on current main.impact:ux-release-blocker: The reported retained tunnel prevents reconnecting after restart without an established in-product recovery path.Evidence reviewed
Acceptance criteria:
What I checked:
src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs:552, 8393459317d0)src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1058, 8393459317d0)src/OpenClaw.Connection/SshTunnelService.cs:244, 8393459317d0)tests/OpenClaw.Connection.Tests/SshTunnelServiceTests.cs:187, 8393459317d0)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 December 2, 2026, 5:03 AM ET / 10:03 UTC.
willim-tuf commentedon Oct 25, 2026
Additional user report (2026-10-25): keyboard submission is unusable in Windows Hub native Windows chat, not browser Control UI.
The user explicitly reports that none of Enter, Shift+Enter, or Ctrl+Enter sends the composed chat message, and requested that this be reported upstream. Exact per-key effects (newline/no-op/caret movement) and mouse Send behavior have not yet been confirmed. This is a user observation, not a controlled reproduction by the reporting assistant.
Current Windows Hub version, Windows build, keyboard layout/IME state, and connection mode are unknown. Please do not infer the version or the SSH/freeze symptoms from the parent report; those additional symptoms are not asserted by this report.
Suggested reproduction/triage: open native chat, focus the composer, enter a short nonempty message, test Enter and Ctrl+Enter separately; also check Shift+Enter newline insertion and mouse Send independently. Verify with IME composition active and inactive if relevant.
Expected: the advertised send shortcut submits once; Shift+Enter preserves a normal newline, and a discoverable mouse Send action works. Shift+Enter not sending is not itself considered a defect.
Related: #1674 and closed #1766 document the OnKeyDown to OnPreviewKeyDown repair. This report does not establish a regression on a fix-containing version. Please clarify the currently supported stable build containing the repair and any version/reproduction details required to distinguish an older stable defect from a current regression.
168062576-tech commentedon Oct 28, 2026
Root cause of "Enter / Ctrl+Enter do not submit" + verified fix
Client:
2026.9.8-1(file version2026.9.8.0), Gateway2026.10.6, managed local gateway (no SSH tunnel), native chat (UseLegacyWebChat=false).Reported behaviour: plain Enter inserts a newline (does not submit).
Ctrl+Alt+Entersubmits. The send button works.Code path:
ReactorChatComposer.Rendercreates the composer as a ReactorTextBoxwithAcceptsReturn(true), then attaches its key handler viaMicrosoft.UI.Reactor.ElementExtensions.OnKeyDown(...), i.e. a bubblingKeyDownhandler.<Render>b__19(IL, decompiled body):Root cause: with
AcceptsReturn(true)theTextBoxclass handler consumes Enter (inserts the newline) and marks the event handled before it bubbles, so the instance-level bubblingKeyDownhandler never runs.Ctrl+Alt+Enteris not a text-editing chord, so theTextBoxleaves it alone and the handler does receive it. Same mechanism explains Ctrl+Enter being dead.Fix (verified on 2026.9.8.0): attach the same handler to the tunnelling event instead of the bubbling one —
ElementExtensions.OnPreviewKeyDown(same signature,Action<object, KeyRoutedEventArgs>) instead ofOnKeyDown. No other change needed: the handler already ignoresShift+Enter, soShift+Enterstill inserts a newline and bare Enter now submits.Alternatively
AddHandler(UIElement.KeyDownEvent, handler, handledEventsToo: true)should work equally.How I verified: applied the swap as a local IL patch to
OpenClaw.Tray.WinUI.dll(2026.9.8.0), restarted, and pressed Enter in the composer — the message submits and the composer clears;Shift+Enterstill produces a newline.Side note (may be a separate issue): in the same build,
chat.sendhas a hard-coded 5 s response timeout (OpenClaw.Shared.OpenClawGatewayClient.SendChatMessageForRunAsync,TimeSpan.FromSeconds(5)). When the gateway takes longer to ack (e.g.openclaw statusreportsreachable 6.17son this machine), the send is reported as "Timed out waiting for chat.send response from gateway" even though the message was delivered and the agent turn runs — and the draft is not cleared, so a retry can duplicate. Worth considering a longer timeout and/or clearing the draft on late ack.itanyplus commentedon Nov 3, 2026
Following up on this — the thread now has everything needed for a fix:
KeyDownhandler being pre-empted by theTextBoxclass handler (AcceptsReturn(true)), with a verified fix and the decompiled code path included.Current state for stable-channel users: native chat remains unusable against 2026.10.x gateways — the stable channel hasn't moved past
v2026.9.8-1, while the alpha line has already reachedv2026.10.8-alpha.20. Browser Control UI over the same tunnel works fine, so the gap is purely client-side.Is there anything we can add to help this land — e.g. validating the proposed fix against a specific alpha build, or testing a patched build if one becomes available? Happy to verify on a real 2026.10.8 gateway setup.
itanyplus commentedon Nov 17, 2026
Resolved for us after the stable-line catch-up — verification note from the reporter.
Environment: Windows Hub v2026.11.3 (stable channel; it resumed on Nov 7 with v2026.11.1 after six weeks stuck at 9.8-1), gateway 2026.11.4, native chat. Retested 2026-11-17.
All four symptoms from the original report retested:
The six-week stable-channel gap (9.8-1 → 11.x) was the root of the "no usable stable build" framing in this report, and it is closed now. Consider this resolved on our deployment; feel free to close the issue, or keep it open for tracking if useful.