[Bug]: Native chat vs 2026.10.5 gateway: Enter/Ctrl+Enter dead, reply never renders, app freezes, orphaned ssh.exe holds tunnel port 18789
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.
ClawSweeper status: review started.
Codex review: this still needs some work.
Summary Keep open: main contains keyboard, scrolling, and reply-reconciliation improvements, but the reported missing replies and forced-exit tunnel failure are not demonstrably resolved.
Reproducibility: The affected official release and SSH/chat steps are specific, but the full cascade has not been reproduced on current main; this read-only review ran no builds or tests, and WinApp CLI is unavailable on this host.
Maintainer decision needed
- Question: Do current Windows results establish that the remaining reply, hang, and forced-exit tunnel symptoms are resolved?
- Recommendation: Verify the remaining scenario: Use an isolated current build with the SSH Gateway connection, inspect the visible reply and responsiveness, then force-terminate only the owned parent and verify tunnel cleanup and restart.
- Why: Source improvements and confirmation of Enter submission cover portions of the report, but no supplied observation verifies the complete scenario on a current build.
Next step Verify current-build reply rendering and forced-exit tunnel ownership before selecting a repair, including a visible Doctor or recovery launcher for blocked restart.
Review details
Best possible solution:
Deliver verified end-to-end native chat and owned tunnel cleanup, with a visible Doctor or recovery launcher when the main UI cannot recover.
Do we have a high-confidence way to reproduce the issue?
The affected official release and SSH/chat steps are specific, but the full cascade has not been reproduced on current main; this read-only review ran no builds or tests, and WinApp CLI is unavailable on this host.
Is this the best way to solve the issue?
Retain the existing keyboard and scrolling repairs, verify current behavior, and establish separate failing regressions before changing reply delivery or forced-exit process ownership.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- No current-main observation establishes whether missing replies, UI freezing, and tunnel retention share a cause.
- The reported listener PID has not been tied to a surviving owned SSH process rather than residual socket state.
- Related scrolling candidates do not establish complete recovery for this issue's SSH connection scenario.
Codex review notes: model internal, reasoning medium; reviewed against 66b9b5a559a0.
Label changes
Label changes:
No label changes.
Label justifications:
P0: The reported ordinary chat workflow freezes the application and can block restart, requiring process or port inspection outside the product.impact:ux-release-blocker: A frozen native UI provides no usable in-product recovery for the reported restart failure.impact:crash-loop: The report describes whole-app hangs requiring forced termination.impact:message-loss: Completed assistant replies reportedly never appear in native chat despite successful server-side turns.
Evidence reviewed
Acceptance criteria:
- ./build.ps1
- dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
- dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
- dotnet test ./tests/OpenClaw.Connection.Tests/OpenClaw.Connection.Tests.csproj
- Current-build isolated Windows proof of visible replies, continued UI responsiveness, owned tunnel behavior after forced parent termination, and successful restart on port 18789.
What I checked:
- Concrete released-client failure: The report identifies Companion v2026.9.8-1, Gateway 2026.10.5, SSH configuration, successful server-side turns, missing native replies, whole-app hangs, and restart blocked on port 18789; browser Control UI works through the same tunnel.
- Keyboard repair is present: The multiline composer uses OnPreviewKeyDown, preserves Shift+Enter, and calls Send for Enter without Shift; native keyboard coverage checks newline placement, submission, draft clearing, and duplicate prevention. (
src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs:536, 66b9b5a559a0) - Keyboard provenance and release: Merged https://github.com/openclaw/openclaw-windows-node/pull/1674 (fix(chat): make Enter send from the multiline composer) changes bubbling to preview handling. Its commit is an ancestor of stable v2026.11.1. In https://github.com/openclaw/openclaw-windows-node/issues/2068, willim-tuf confirms Enter works after updating to the November version; this corroborates only the keyboard repair. (
src/OpenClaw.Tray.WinUI/Chat/ReactorChatComposer.cs, 037c17dcb581) - Current scrolling path differs from reported hang stacks: StartTailRequest now realizes through ItemsRepeater, observes bounded natural layout, and dispatches a direct element bring. The architecture ledger closes synchronous ItemsView realization, and ReactorTimeline_NeverUsesSynchronousItemsViewBring guards against restoring it; the previous review's description of that call remaining on main is outdated. (
src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:938, 66b9b5a559a0) - Reply recovery has improved: Current code reconciles terminal run state from history before publishing the result. Commit history identifies the recent stale-reply and stuck-activity repair; provider tests require independent history confirmation rather than treating an idle session hint as completion. (
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:861, 8b09e5faf6d3) - Graceful cleanup does not establish forced-exit cleanup: SshTunnelService launches ssh directly and kills its process tree when Stop executes; AppShutdownCoordinator calls Dispose during managed shutdown. These paths do not establish cleanup after forced parent termination or explain the reported unresolved listener PID. (
src/OpenClaw.Connection/SshTunnelService.cs:239, 66b9b5a559a0)
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
- Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Reviewed November 14, 2026, 7:46 PM ET / November 15, 2026, 00:46 UTC.
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.
Root cause of "Enter / Ctrl+Enter do not submit" + verified fix
Client: 2026.9.8-1 (file version 2026.9.8.0), Gateway 2026.10.6, managed local gateway (no SSH tunnel), native chat (UseLegacyWebChat=false).
Reported behaviour: plain Enter inserts a newline (does not submit). Ctrl+Alt+Enter submits. The send button works.
Code path: ReactorChatComposer.Render creates the composer as a Reactor TextBox with AcceptsReturn(true), then attaches its key handler via Microsoft.UI.Reactor.ElementExtensions.OnKeyDown(...), i.e. a bubbling KeyDown handler.
<Render>b__19 (IL, decompiled body):
// slash menu handling first (Tab/Enter/Up/Down/Esc) ...
if (e.Key != VirtualKey.Enter) return;
if (InputKeyboardSource.GetKeyStateForCurrentThread(VirtualKey.Shift) & Down) return; // Shift+Enter => newline
e.Handled = true;
Send(); // Send() no-ops when !vm.CanSend
Root cause: with AcceptsReturn(true) the TextBox class handler consumes Enter (inserts the newline) and marks the event handled before it bubbles, so the instance-level bubbling KeyDown handler never runs. Ctrl+Alt+Enter is not a text-editing chord, so the TextBox leaves 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 of OnKeyDown. No other change needed: the handler already ignores Shift+Enter, so Shift+Enter still 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+Enter still produces a newline.
Side note (may be a separate issue): in the same build, chat.send has a hard-coded 5 s response timeout (OpenClaw.Shared.OpenClawGatewayClient.SendChatMessageForRunAsync, TimeSpan.FromSeconds(5)). When the gateway takes longer to ack (e.g. openclaw status reports reachable 6.17s on 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.
Following up on this — the thread now has everything needed for a fix:
- @168062576-tech's root-cause analysis (Oct 28) pins the Enter-submission failure to the composer's bubbling
KeyDownhandler being pre-empted by theTextBoxclass handler (AcceptsReturn(true)), with a verified fix and the decompiled code path included. - @willim-tuf's Oct 25 report confirms keyboard submission is still broken for users on the stable channel, on top of the original render-freeze / ghost-tunnel symptoms.
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 reached v2026.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.
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:
- Keyboard submission (Enter / Shift+Enter) — works. The multiline-composer Enter fix (PR #1674) shipped in v2026.11.1 and is verified live.
- Reply rendering — replies render correctly in native chat across multi-turn sessions (consistent with the streaming-reply cluster in 11.3: #2134 / #2100 / #2174).
- App freezes — none across multiple conversation rounds plus a full app restart cycle.
- Orphan ssh.exe tunnels — clean lifecycle: after quitting the Hub, the background ssh.exe processes exit properly, no ghost port holds. (No specific PR identified for this one on our side; possibly a side effect of the general native-chat rework.)
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.