Skip to content

feat: keep Settings and Chat in one Companion window - #1911

Merged
karkarl merged 6 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-same-window-settings
Oct 29, 2026
Merged

karkarl merged 6 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-same-window-settings

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 HubWindow content into a retained SettingsShellView hosted by WorkspaceWindow. WorkspaceNavigationHistory is the sole history owner; Settings never mounts a second Chat page. Existing routes/callers use WindowManager, 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:

Finding Change and evidence
Hidden microphone capture ChatPage.SuspendSurface runs before collapse. Production session/controller tests use delayed fake capture to check cancellation, late-result fencing and retained draft. No physical microphone was used.
Chat-origin modal bypass Admission now precedes all native bindings/initialization. Five real-app cases pass: ordinary Settings, native Channels, native Skills, native Chat behind Chat-origin and Settings-origin dialogs. Tests preserve HWND, prior conversation, draft and composer identity and reject later binding.
Missing Ctrl+F Restored as a Settings-only alias. Light keyboard/history case passed; Dark passed in a separate targeted rerun after an earlier input-injection failure, retained in the evidence.

Independent Copilot code-review role 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

Chat-origin dialog retains the prior conversation and draft

Settings-origin dialog rejects a native Chat handoff without replacing its page

Dark Settings after passing Ctrl+F and history verification

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

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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: eafb5a4d plus the reviewed 12-file delta subsequently committed as fffa44cb17ee69106f114a3801c8fc5abb0b646c (tree 3524f908d9aace08e9ea9db160e34662007d985f), based on 849cba5765c8b146c2e4d19dd998f138999cede0. 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-only GitVersion_NoNormalizeEnabled=true, GitVersion_NoFetchEnabled=true, and MSBUILDDISABLENODEREUSE=1 were set. Builds/Tray/native used ArtifactsPath=<ntfs-build> and UseArtifactsOutput=true after 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.

Exact command Observed result
.\build.ps1 Passed; documentation validation and all required projects passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=required-shared-final.trx' --results-directory <run> 4,770 passed, 25 skipped, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=required-tray-final.trx' --results-directory <run> 4,715 passed, 0 skipped, 0 failed
git diff --check Passed
Exact focused/native commands and results
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~GatewayFixtureProtocolTests.ReadOnlyScenarios_|FullyQualifiedName~GatewayFixtureProtocolTests.RealClient_InvalidOrUnknownParametersFailExplicitly|FullyQualifiedName~GatewayFixtureProtocolTests.RealClient_WritesAreRejectedWithoutChangingScenario|FullyQualifiedName~GatewayFixtureProtocolTests.RealClient_UnknownMethodIsRecordedAndNeverReturnsFallbackSuccessOrCredentials' --logger 'trx;LogFileName=fixture-status-contracts.trx' --results-directory <run>
# 32 passed, 0 failed/skipped. NTFS artifacts routing enabled.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build --no-restore -r win-x64 -p:Platform=x64 -p:DevBuild=false --filter 'FullyQualifiedName~SharedRootDialog_DefersNavigationAndRejectsNativeBinding|FullyQualifiedName~SettingsChrome_SearchAndBidirectionalHistory_StayBelowNativeTitle|FullyQualifiedName~ConfiguredFixtureChat_SettingsSections_GlobalBackForward_RetainSameWindowComposerDraftAndFocus' --logger 'trx;LogFileName=residual-native-status-fixed.trx' --results-directory <run>
# 7 passed, 1 failed, 0 skipped. The failure was Dark footer Escape input, before Ctrl+F.
# All 5 ordinary/native admission cases, Light shortcut/history, and retained-draft case passed.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build --no-restore -r win-x64 -p:Platform=x64 -p:DevBuild=false --filter 'FullyQualifiedName~SettingsChrome_SearchAndBidirectionalHistory_StayBelowNativeTitle&DisplayName~Dark' --logger 'trx;LogFileName=final-dark-keyboard.trx' --results-directory <run>
# 1 passed, 0 failed/skipped after fresh desktop/foreground preflight. No source/binary edits.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build --no-restore -r win-x64 -p:Platform=x64 -p:DevBuild=false --filter 'FullyQualifiedName=OpenClaw.Tray.UITests.ReactorChatLayoutProofTests.CodeBlock_PreservesLiteralContentAndCopiesExactText|FullyQualifiedName=OpenClaw.Tray.UITests.ReactorChatLayoutProofTests.Welcome_BundledCopyUsesUiLanguageAndSendsSelectedPrompt' --logger 'trx;LogFileName=final-welcome-seven.trx' --results-directory <run> --blame
# 7 passed, 0 failed/skipped. Actual order matches the earlier CI suffix, including Portuguese.
# Original native crash not reproduced or diagnosed; no speculative avatar fix was made.

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

  • Environment tested: Windows x64, actual WinUI app with synthetic Gateway fixtures, task-owned profiles/processes and private MCP ports. No real provider, credentials or hardware microphone used.
  • PR head or commit tested: exact source now fffa44cb, captured as eafb5a4d plus its verified 12-file delta. Source manifest SHA256 329DDC8521ADCA22F12BD75A88C81D7A364FA05D24C565AD269C74C592D6630C. Final Dark/welcome run app DLL SHA256 B3152248ACCE4BEC91603C9021101F19BCD71C44B5BD0C4E44B9E875C78C1F6B; test DLL C382CCE9BD5E2761FF0688D23521BEDCD441722AD7F5E192FECD0BA216546023.
  • Exact steps or command run: commands above. Keep a draft in a different conversation; open a real Chat- or Settings-origin dialog; request ordinary Settings or native Channels/Skills/Chat; verify the origin HWND/session/draft remains and later ordinary visits have no rejected one-shot binding. Exercise Settings search aliases and bidirectional history in Light/Dark. Use the real session/controller with delayed fake capture to verify suspension and late-result fencing.
  • Evidence after fix: five native admission cases, Light/Dark shortcut/history, retained draft, required unit suites and seven-case CI suffix passed as recorded. Current-source screenshots are embedded above and linked in the evidence comment.
  • Observed result: original surface/conversation/draft preserved under the dialog; rejected native requests do not bind later; Settings Ctrl+F restored; capture suspension regression passes without discarding the draft. No rating or overall CI success is inferred from this.
  • Screenshot or artifact links verified? (Yes/No/N/A) Yes: all three current-fix GitHub images were retrieved through the authenticated attachment reader and visually inspected.
  • Not verified or blocked: authoritative current-head CI and ClawSweeper rerating pending; deterministic real dialog A-close/B-open-before-queued-drain timing and same-destination Channels/Skills admission remain without specific native proof; earlier broad narrow-tail failure remains unclassified; production-shaped Release smoke/full accessibility inventory incomplete. No real provider/Gateway, WSL/MXC, installer, Store or ARM64 proof claimed. Owned processes/profiles were cleaned up and real-profile metadata remained unchanged.

Security Impact

  • New permissions or capabilities? (Yes/No) No
  • Secrets or tokens handling changed? (Yes/No) No
  • New or changed network calls? (Yes/No) No production calls; synthetic read-only fixture status responses added for tests.
  • Command or tool execution surface changed? (Yes/No) No new commands; existing native navigation uses shared-root modal admission.
  • Data access scope changed? (Yes/No) No
  • If any answer is Yes, 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

  • Backward compatible? (Yes/No) Yes: existing route names and Settings search aliases remain; Settings intentionally no longer creates a separate foreground window.
  • Config or environment changes? (Yes/No) No product changes; test-only private ports/output routing are described above.
  • Migration needed? (Yes/No) No
  • If yes, list the exact upgrade steps: N/A.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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.

bkudiess and others added 3 commits October 28, 2026 15:50
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]>
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This 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”.

  • Before: Settings opens in a separate window.
  • After: Settings opens in the existing window, and Back restores the retained conversation and draft.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and source review is clean; runtime confidence remains bounded.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Moving between Chat and Settings requires managing separate windows.
Reason: The collaborator-authored direction provides a coherent single-window experience while preserving conversation, draft and history; no additional product approval is required.

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
Reviewed head: a7071d531b7079a594ba84668ffc99508e4fb5a3

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Current-head mounted ChatPage capture suspension and replacement-preview isolation remain unproven; the reported red/green routing test uses synthetic I/O and an adapted broadcast-routing baseline.
Agent review details

How this fits together

WindowManager 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Barbara Kudiess: Raw commit 3a097bc adds src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3a097bc85f7b; files: src/OpenClaw.Tray.WinUI/Services/WindowManager.cs)
  • Scott Hanselman: Raw commit 20d29e1 adds src/OpenClaw.Tray.WinUI/Services/AudioPipeline.cs:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 20d29e1132c3; files: src/OpenClaw.Tray.WinUI/Services/AudioPipeline.cs)
  • Régis Brid: Raw commit b0ba9af adds src/OpenClaw.Tray.WinUI/Services/VoiceService.cs:72 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: b0ba9affa25d; files: src/OpenClaw.Tray.WinUI/Services/VoiceService.cs)

Review metrics

Metric Value Why it matters
Production versus validation growth Production +874/-541; tests and fixtures +1,504/-206; documentation +23/-20, recognizing the Settings rename. The growth supports the shared-window lifetime, deferred navigation and distinct recording, modal, history and isolation regressions.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful Companion navigation improvement with bounded user impact and no demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-28T20:22:59.244Z sha 85032a8 :: blocked before merge. :: [P2] Suspend microphone capture before hiding the retained Chat page | [P2] Defer Settings navigation for dialogs opened from Chat | [P3] Preserve the Ctrl+F Settings search shortcut
  • reviewed 2026-10-29T02:06:06.748Z sha fffa44c :: needs maintainer review before merge. :: none

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]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

Native proof for the source now committed as eafb5a4d55a61e0c194a06785e47bc790bab3fe9: 16 selected native cases passed, zero skips, plus 44 focused fixture/isolation checks.

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 85032a8e plus the exact 11-file test/support delta subsequently committed as eafb5a4d; every file hash was checked before commit. No production source changed in that follow-up. Source manifest SHA256: 0B7C9DA9B03DB5F2F30729CC8447A08CE56B8C181A3ED5ABE1DA3FD3693F5EA2. App DLL SHA256: BF56ACD5AE154DDE8FF3AAA0948196F2CAB85AF50D2B1429A140EB8B0F6A4386.

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:

  • Settings: F071A3295C0DF7AA375C6FB20A68B5B4EEFB50C68DCED8B29AD6DAAD205A7518
  • Retained draft: 4C2B24BC4ED790E027AA44E4524BC8064D41B7DD43DFD35B3C8D358E0B82F87D
  • Dialog retention: A67DAACC2F4229833312D0A496AB1446592AF7B8D7043992A74A729231606483

Settings in the shared Companion window

Retained draft after Back and Forward

Settings dialog retains its page during fixture disconnect

@bkudiess

Copy link
Copy Markdown
Collaborator Author

Additional closeout on clean head eafb5a4d: Debug fixture profile/app checks passed 34/34, but UI smoke failed 7/35 (28 passed, no skips). This is failed proof, not a pass. The attached nonblank capture shows the 240th-message heading with trailing text clipped beneath the composer at narrow width; cause and attribution are not yet established. Six later failures involved foreground activation or blank capture, with input-desktop access denied at closeout; that does not prove all six are solely environmental. Release smoke and accessibility were not run after this failure. All owned processes/profiles were cleaned up and real-profile metadata was unchanged. PNG SHA256: 6F0346B4F0DD5B10C736EED3CD2CA5EF3CCEA867B683D78218C5202BD7195629. Current CI also crashed in the unchanged Reactor welcome harness with Element is already the child of another element: https://github.com/openclaw/openclaw-windows-node/actions/runs/40779718593/job/123139121614 . PR remains a draft.

Failed narrow-width fixture proof with the final message clipped beneath the composer

…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]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

Review fixes are pushed in fffa44cb17ee69106f114a3801c8fc5abb0b646c: retained Chat capture is cancelled before hiding and late callbacks are fenced; shared-root modal admission precedes every native binding/initialization (including Chat); Settings-only Ctrl+F is restored. The production session/controller is tested with delayed fake capture, not real microphone input. Five native admission scenarios passed: ordinary Settings, native Channels, native Skills, native Chat behind Chat-origin and Settings-origin dialogs. Light shortcut/history and retained-draft cases passed; a separate Dark rerun passed after the prior input-injection failure, which remains recorded. That is eight distinct full-app cases across these reports, not a single all-green eight-case invocation. Build, Shared 4,770 passed/25 skipped, Tray 4,715 passed, and 32 fixture protocol checks passed. The seven-case CodeBlock+welcome suffix also passed in the same recorded order as the earlier CI crash, including Portuguese; the crash was not reproduced or diagnosed. No avatar fix was made. Captures used eafb5a4 plus the exact 12-file delta now committed as fffa44c; all source hashes matched manifest 329DDC8521ADCA22F12BD75A88C81D7A364FA05D24C565AD269C74C592D6630C. No production credentials/provider were used; owned cleanup verified, real profiles unchanged. The setup-failure notice in the Settings-origin capture is expected rejection evidence, not an accepted native binding. Authoritative current-head CI and ClawSweeper results are still pending.

Chat-origin dialog preserves the prior research conversation and draft

Settings-origin dialog rejects a native Chat handoff without replacing its page

Dark Settings after the passing Ctrl+F and history test

@bkudiess

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Updated head: fffa44cb17ee69106f114a3801c8fc5abb0b646c.

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.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 29, 2026
@bkudiess

Copy link
Copy Markdown
Collaborator Author

Current-head CI is green: https://github.com/openclaw/openclaw-windows-node/actions/runs/40803535834 (head fffa44cb17ee69106f114a3801c8fc5abb0b646c, tested merge/source 10632b8e27ff66c6dd22e7af9a8462255e596601). The UI job passed 19 Functional UI tests, 582 Tray UI tests with 37 declared skips, and all 23 Axe.Windows accessibility scans; CI Gate passed. This supersedes the older red CI result, not the retained failure history. The fresh ClawSweeper review clears all source findings and currently rates Gold (3/6); the remaining native capture-suspension proof is being collected with explicitly approved muted input and isolated model/profile storage. Skipped tests are not claimed as executed native proof.

@bkudiess
bkudiess marked this pull request as ready for review October 29, 2026 04:27
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]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Pushed a7071d531b7079a594ba84668ffc99508e4fb5a3, addressing both findings from the repeat Hanselman review:

  • Native Chat progress callbacks are attached to each invocation-owned AudioPipeline. A cancelled recording's shutdown text/audio levels cannot update the replacement recording's preview. The public two-argument listen API, legacy global events and buffered partial results remain intact.
  • The architecture ledger again references the consumption-once behavioral regression, and marks source-order guards as source-shape with explicit retirement conditions.

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.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@bkudiess

Copy link
Copy Markdown
Collaborator Author

Hanselman review outcome: both actionable findings fixed

We ran another independent two-model Hanselman review and fixed both accepted findings in a7071d53.

Reviewed scope: 85032a8e4d245c81f1ef59b83a0292e97ab09807..fffa44cb17ee69106f114a3801c8fc5abb0b646c: all 18 changed files, plus affected callers/tests and residual lifecycle risks. Both reviewers completed on the same unchanged revision, independently examined implementation first, then checked documentation and evidence.

Models: Claude Opus 5.5 (claude-opus-5.5, high reasoning, default context) and GPT-6 Astra (gpt-6-astra, high reasoning, long context), through separate read-only Copilot code-review agents. This was not a Codex CLI run.

Neither reviewer found a CRITICAL or HIGH issue. There were no shared actionable findings; the two single-reviewer findings were verified and accepted:

Finding Opus 5.5 GPT-6 Astra Fix and disposition
A cancelled capture's shutdown progress could enter a replacement recording's live preview through service-wide events Not flagged MEDIUM / P2 Fixed. Chat now receives callbacks from its invocation-owned AudioPipeline. Public two-argument API, legacy global events and buffered partial results are preserved. This concerned live preview/levels, not established draft corruption.
Architecture ledger called a source-text guard behavioral and omitted its retirement condition LOW / P3 Not flagged Fixed. Restored the consumption-once behavioral guard; separately labeled wiring guards as source-shape with concrete retirement conditions.

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

  • An independent scoped follow-up review covered all eight fix files and affected contracts: no significant P0–P3 issues found. This was a follow-up assessment, not a second complete dual-model review of the final head.
  • Routing regression: 2 intended failures + 1 compatibility pass before the routing fix; 3 passes after it. The red stage preserved old broadcast behavior with added I/O seams, not a pristine published binary. Real VoiceService and AudioPipeline performed routing/flush; only capture/transcription I/O was synthetic.
  • Final focused tests: 16 audio-routing passes + 195 composer/navigation passes.
  • Required build passed; Shared 4,770 passed / 25 skipped, Tray 4,716 passed. Exact source-file hashes matched the tested snapshot before commit.
  • CI on the pushed fix head: passed, head a7071d531b7079a594ba84668ffc99508e4fb5a3.

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.

@karkarl
karkarl merged commit 4e31031 into openclaw:main Oct 29, 2026
27 checks passed
larroy pushed a commit to larroy/openclaw-windows-node that referenced this pull request Oct 30, 2026
* 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]>
@bkudiess bkudiess mentioned this pull request Oct 30, 2026
5 of 16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants