Repository navigation
feat: keep Settings and Chat in one Companion window - #1911
Conversation
Extract HubWindow into SettingsShellView hosted by WorkspaceWindow with one canonical navigation history, retained chat, deferred navigation and request-slot fences, and retargeted callers, tests and ledger. Co-authored-by: Copilot App <[email protected]>
…une render is pending A pruned Settings fallback moves the logical destination before it renders. A repeat request for that destination bypassed modal deferral and rendered under the open dialog. Navigation now waits whenever an intent or pruned render is pending. Co-authored-by: Copilot App <[email protected]>
…tive setup under dialogs The required prune render is stored separately from the replaceable deferred intent, nothing drains while another dialog is open (the drain re-arms on it), and native Settings requests are never accepted under an open dialog. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR hosts Settings alongside retained Chat in one Companion window, sharing navigation history and isolating recording progress by invocation. Example: Open Settings while the research conversation contains the draft “Keep this draft behind the shared-root dialog”.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved window consolidation is absent from main, and this review found no actionable source defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherWindowManager routes Companion activations into WorkspaceWindow, which hosts ChatPage and SettingsShellView; shared history controls the visible destination, while VoiceService supplies recording-specific progress to Chat. flowchart TD
A[Tray and navigation requests] --> B[WindowManager]
B --> C[WorkspaceWindow]
C --> D[WorkspaceNavigationHistory]
C --> E[Retained ChatPage]
C --> F[SettingsShellView]
E --> G[VoiceService]
G --> H[Invocation AudioPipeline]
Technical reviewBest possible solution: Retain WindowManager and WorkspaceNavigationHistory as the existing lifetime and history owners, with Settings as a sibling view and recording progress scoped to each invocation. Do we have a high-confidence way to reproduce the issue? This is an intentional UX change; current main's separate-window behavior is directly established by WindowManager source. Is this the best way to solve the issue? The implementation reuses the existing window and history owners, removes the separate Settings window, and preserves the shipped voice API rather than adding a competing recording path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5daead32131b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 29, 2026, 8:35 AM ET / 12:35 UTC (Revision 3). |
…ures Keep accessibility MCP ports isolated, validate startup progress and modal disconnect routing, retain chat draft and focus through local Settings history, and supply the fixture's read-only question list contract. Co-authored-by: Copilot App <[email protected]>
|
Native proof for the source now committed as The captures below show Settings in the shared window, the retained draft after Back/Forward, and a real Settings dialog retaining its page during synthetic Gateway disconnect. Tests separately assert the actual destination HWND, composer identity, draft text, focus, history, and deferred navigation. The screenshots alone do not prove those invariants. Captured from All data shown is synthetic. Test-owned apps and profiles were cleaned up; real OpenClaw profile metadata was unchanged. No real Gateway, account, provider, WSL or installer was used. Remaining gaps: deterministic dialog A-close/B-open-before-drain scheduling and Channels/Skills native-setup binding under a modal. Debug/Release fixture-smoke and accessibility follow-up are still running; this is not a complete proof-pool or merge-readiness claim. Attached PNG SHA256:
|
|
Additional closeout on clean head |
…tion Cancel retained-chat capture before hiding, fence late callbacks, reject native setup binding behind any shared-root dialog, and restore the Settings Ctrl+F alias. Cover Chat and Settings dialog origins with native fixture regressions. Co-authored-by: Copilot App <[email protected]>
|
Review fixes are pushed in |
|
@clawsweeper re-review Updated head: The hidden-capture lifecycle, shared-root modal admission (including native Chat handoffs from either surface), and Settings-only Ctrl+F findings are addressed. The PR body now includes exact validation results, five passing native admission scenarios, passing Light/Dark keyboard/history evidence, current-source screenshots, source/binary provenance, and explicit remaining proof limits. The earlier CI crash was not reproduced by its seven-case suffix; fresh authoritative CI is running. Please review this head; no rating labels have been changed manually. |
|
🦞👀 Re-review progress:
|
|
Current-head CI is green: https://github.com/openclaw/openclaw-windows-node/actions/runs/40803535834 (head |
Route native chat progress through the invocation-owned audio pipeline so cancelled capture flushes cannot update a replacement preview. Preserve legacy global events and partial results. Add synthetic I/O red/green regressions and correct architecture guard classifications. Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review Pushed
Independent scoped review found no significant P0-P3 issue in the eight-file follow-up. Exact files matched the recorded passing validation snapshot before commit. Full build passed; Shared 4,770 passed/25 skipped; Tray 4,716 passed; focused audio 16 and composer 195 passed. The routing regression went from two intended failures/one compatibility pass to three passes. The red stage retained old broadcast routing with added I/O seams, not a pristine published binary. Tests exercise real VoiceService/AudioPipeline routing with synthetic capture/transcription I/O; they do not claim physical microphone or mounted ChatPage proof. Earlier physical-capture proof remains blocked by machine microphone consent; no OS permission was changed. Prior native screenshots and CI results retain their earlier source identities. New-head CI and this re-review are pending, not claimed passed. |
|
🦞👀 Re-review progress:
|
Hanselman review outcome: both actionable findings fixedWe ran another independent two-model Hanselman review and fixed both accepted findings in a7071d53. Reviewed scope: Models: Claude Opus 5.5 ( Neither reviewer found a CRITICAL or HIGH issue. There were no shared actionable findings; the two single-reviewer findings were verified and accepted:
Two other LOW notes were explicitly assessed rather than silently dropped: a normal-completion callback-ordering hypothesis was not demonstrated, and the fixture's probe-port release/bind race was retained as a test robustness limitation with no observed failure or shipping impact. They were not accepted as actionable defects in this review. Fix verification
Bottom line: both actionable findings from this Hanselman run are fixed and pushed. This is not a claim that every runtime proof requirement is complete: physical microphone cancellation through the shipped UI remains unproved because machine-level microphone consent blocked capture. No OS permission was changed. ClawSweeper has reviewed the new head and currently rates it Gold (3/6); we are not claiming Platinum. |
* Host Settings in the Workspace window Extract HubWindow into SettingsShellView hosted by WorkspaceWindow with one canonical navigation history, retained chat, deferred navigation and request-slot fences, and retargeted callers, tests and ledger. Co-authored-by: Copilot App <[email protected]> * fix(workspace): defer same-destination Settings navigation while a prune render is pending A pruned Settings fallback moves the logical destination before it renders. A repeat request for that destination bypassed modal deferral and rendered under the open dialog. Navigation now waits whenever an intent or pruned render is pending. Co-authored-by: Copilot App <[email protected]> * fix(workspace): retain pruned render apart from intents and reject native setup under dialogs The required prune render is stored separately from the replaceable deferred intent, nothing drains while another dialog is open (the drain re-arms on it), and native Settings requests are never accepted under an open dialog. Co-authored-by: Copilot App <[email protected]> * test: prove same-window Settings navigation with isolated native fixtures Keep accessibility MCP ports isolated, validate startup progress and modal disconnect routing, retain chat draft and focus through local Settings history, and supply the fixture's read-only question list contract. Co-authored-by: Copilot App <[email protected]> * fix: suspend hidden chat capture and defer shared-window modal navigation Cancel retained-chat capture before hiding, fence late callbacks, reject native setup binding behind any shared-root dialog, and restore the Settings Ctrl+F alias. Cover Chat and Settings dialog origins with native fixture regressions. Co-authored-by: Copilot App <[email protected]> * fix: keep voice capture progress scoped to its recording Route native chat progress through the invocation-owned audio pipeline so cancelled capture flushes cannot update a replacement preview. Preserve legacy global events and partial results. Add synthetic I/O red/green regressions and correct architecture guard classifications. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]>







What Problem This Solves
Settings should open in the existing Companion window without losing the current chat, unsent draft, or navigation history.
User Impact
User impact: Chat and Settings share one window and Back/Forward history; returning to Chat retains its composer and draft. Hiding Chat cancels pending/active microphone capture before hiding its controls; returning does not restart recording. Settings retains Ctrl+E, Ctrl+K and Ctrl+F search shortcuts.
Draft: awaiting authoritative CI and fresh ClawSweeper review on
fffa44cb. Broader proof limitations below remain explicit.Why This Change Was Made
Move the former
HubWindowcontent into a retainedSettingsShellViewhosted byWorkspaceWindow.WorkspaceNavigationHistoryis the sole history owner; Settings never mounts a second Chat page. Existing routes/callers useWindowManager, and Settings scopes/Debug activity are deactivated appropriately.Keep required history-prune rendering separate from replaceable deferred navigation. Modal admission applies to the shared root regardless of which surface opened the dialog, before either native destination branch binds or initializes. Rejected one-shot setup requests cannot bind on a later ordinary visit. Preserve main's startup-progress and setup-failure version fences.
The review follow-up cancels retained-chat capture and fences late callbacks without disposing the host or losing the draft, intersects host/render visibility so hidden rendering cannot restart capture, and restores Settings-only Ctrl+F.
This is the same-window Settings layer. Prerequisites #1906 and #1909 are already merged; their older versions are not reintroduced. No main-search, pins, profile display/avatar, or Windows account-prefill features are included.
Evidence
All three findings in the earlier ClawSweeper review are addressed in
fffa44cb17ee69106f114a3801c8fc5abb0b646c:ChatPage.SuspendSurfaceruns before collapse. Production session/controller tests use delayed fake capture to check cancellation, late-result fencing and retained draft. No physical microphone was used.Independent Copilot
code-reviewrole reviewed the implementation/proof plan and follow-up diffs. It found and verified fixes for a residual native-Chat modal bypass and two test defects. Final narrow reviews found no significant remaining source defect within those scopes. These are bounded reviews, not a claim that a complete fresh source review or every proof pool passed. The local Codex runner failed authentication and was waived by the author; fresh ClawSweeper review is requested separately.Current fix evidence and provenance
The setup-failure notification in the second image is expected rejection evidence, not an accepted native binding. Screenshots show the rendered state; the tests separately establish ordering, identity, focus and binding invariants.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: same-window navigation, retained Chat/focus, native modal lifecycle, setup admission, keyboard and accessibility. Targeted proof executed; the entire pool is not declared complete.Validation
Source:
eafb5a4dplus the reviewed 12-file delta subsequently committed asfffa44cb17ee69106f114a3801c8fc5abb0b646c(tree3524f908d9aace08e9ea9db160e34662007d985f), based on849cba5765c8b146c2e4d19dd998f138999cede0. All 12 file hashes matched before commit. Runs are associated with that exact source, not relabeled as post-commit invocations. Source manifest SHA256:329DDC8521ADCA22F12BD75A88C81D7A364FA05D24C565AD269C74C592D6630C.<run>and<ntfs-build>below denote task-owned local output directories, not public artifact links. All runs used isolated data/roaming/local roots and unset integration/GPU/E2E opt-ins. Process-onlyGitVersion_NoNormalizeEnabled=true,GitVersion_NoFetchEnabled=true, andMSBUILDDISABLENODEREUSE=1were set. Builds/Tray/native usedArtifactsPath=<ntfs-build>andUseArtifactsOutput=trueafter preserving generated-reference corruption on the worktree drive. Shared full-suite artifacts routing was explicitly unset for its repository-relative subprocess fixtures. No repository build configuration or type-checking was weakened..\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=required-shared-final.trx' --results-directory <run>dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=required-tray-final.trx' --results-directory <run>git diff --checkExact focused/native commands and results
That is eight distinct full-app cases passing across the two native reports, not a single all-green eight-case invocation. The earlier failed invocation is retained. The 25 Shared skips are not custom/native proof.
Current-head CI is authoritative for
fffa44cb; results are pending, not assumed from local checks. The earlier eafb5a4d CI crash occurred in the unchanged welcome harness after 139 UI passes and two skips. The bounded seven-case run above does not establish its cause or prove the whole CI shard fixed.Historical broader Debug smoke on
eafb5a4d: profile/app 34/34 passed; UI 28 passed, seven failed. Failure evidence includes a valid narrow-tail clipping capture and later foreground/blank-capture failures. Those are not converted into passes. Release smoke and the full accessibility inventory were not completed. Earlier same-window proof remains labeled with its original source identity.Real Behavior Proof
fffa44cb, captured aseafb5a4dplus its verified 12-file delta. Source manifest SHA256329DDC8521ADCA22F12BD75A88C81D7A364FA05D24C565AD269C74C592D6630C. Final Dark/welcome run app DLL SHA256B3152248ACCE4BEC91603C9021101F19BCD71C44B5BD0C4E44B9E875C78C1F6B; test DLLC382CCE9BD5E2761FF0688D23521BEDCD441722AD7F5E192FECD0BA216546023.Yes/No/N/A)Yes: all three current-fix GitHub images were retrieved through the authenticated attachment reader and visually inspected.Security Impact
Yes/No)NoYes/No)NoYes/No)Noproduction calls; synthetic read-only fixture status responses added for tests.Yes/No)Nonew commands; existing native navigation uses shared-root modal admission.Yes/No)NoYes, explain the risk and mitigation: N/A. Privacy hardening cancels pending/active capture before hiding controls and fences late callbacks. Rejected native setup requests cannot bind on a later visit. Existing endpoint/identity verification remains required.Compatibility and Migration
Yes/No)Yes: existing route names and Settings search aliases remain; Settings intentionally no longer creates a separate foreground window.Yes/No)Noproduct changes; test-only private ports/output routing are described above.Yes/No)NoReview Conversations
The earlier ClawSweeper findings are addressed in the pushed source and evidence; final acceptance is left to fresh review. No rating labels were manually changed.