Skip to content

improve: tidy Chat and Settings navigation - #1566

Merged
karkarl merged 2 commits into
mainfrom
feature/settings-chat-navigation
Oct 1, 2026
Merged

karkarl merged 2 commits into
mainfrom
feature/settings-chat-navigation

Conversation

@karkarl

@karkarl karkarl commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Gateway management cluttered Chat, and Settings needed a reliable way to reopen or focus the main Chat window.

User Impact

  • Moved the Dashboard banner into its own Connection settings card.
  • Restored Chat in Settings navigation. It opens or foregrounds the main Chat window, including when minimized, without changing the selected Settings page or losing drafts.
  • Gave welcome suggestion buttons a subtle gray background with no border.

Gateway installation stays on WinGet from the Microsoft Store. Temporary GitHub MSIX pinning and its related copy, tests, and documentation are absent from the final diff.

Why This Change Was Made

ConnectionPage owns the management card and reuses the existing Dashboard action. HubWindow forwards a nonselecting Chat action through WorkspaceNavigation; WindowManager owns Workspace lifetime and foreground activation. Settings and the retained Chat composer are not recreated.

Evidence

Final-commit local validation passed: full build, 4,223 shared tests (34 skipped), 3,807 tray tests, and both interactive WinUI mouse/keyboard cases. The UI tests cover repeated activation, minimized restoration, and composer/draft retention. The developer also verified the updated local UX before the installer-only cleanup.

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: Connection card, Settings-to-Chat navigation, foreground/minimized behavior, and welcome button appearance.
  • windows-11-arm64: native ARM64 build and local WinUI execution.

Validation

Commit: 94b6cfd0621bf899111c339591e110bca85bd2ab. OPENCLAW_REPO_ROOT set to the checkout; interactive tests use isolated app data.

  • .\build.ps1: passed, all five targets.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 4,223 passed, 34 skipped, 0 failed.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 3,807 passed, 0 failed.
  • dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -r win-arm64 --filter 'FullyQualifiedName~SettingsChatLink_OpensWorkspaceWithoutChangingSettingsOrDiscardingDraft' --logger 'console;verbosity=normal': 2 passed, 0 failed, with screenshot capture.
  • Rubber-duck review: no blocking findings. Existing subtle hover/pressed resources and Dashboard disconnected-state behavior were deliberately retained; no adjacent redesign was added.
  • python .agents\skills\autoreview\scripts\autoreview --mode branch --base origin/main: blocked by Codex engine exit 1; not reported as a clean review.

Real behavior proof

  • Environment tested: local Windows ARM64 interactive desktop, isolated Companion profiles.
  • PR head or commit tested: 94b6cfd0621bf899111c339591e110bca85bd2ab.
  • Exact steps: focus Settings Connection; activate Chat using mouse and keyboard; repeat with Chat already open; minimize Chat and repeat. Assert actual foreground HWND, unchanged Connection page, restored window, and retained composer identity/draft.
  • Evidence after fix, copied from the final-commit live UI run:
    Passed SettingsChatLink_OpensWorkspaceWithoutChangingSettingsOrDiscardingDraft(useMouse: True) [16 s]
    Passed SettingsChatLink_OpensWorkspaceWithoutChangingSettingsOrDiscardingDraft(useMouse: False) [10 s]
    Test Run Successful. Total tests: 2. Passed: 2.
    
  • Observed result: local captures show the Chat item alongside selected Connection settings and the management card on Connection; the foreground Chat capture has no management banner and preserves the unsent test draft.
  • Screenshot or artifact links verified? N/A; captures inspected locally, no hosted media attached.
  • Not verified or blocked: the Connection capture has a fixture sandbox warning partially obscuring the Dashboard button; its presence is verified through UI Automation. Welcome hover/pressed states were not separately recaptured on this final commit. Structured autoreview engine unavailable. CI is separate from these completed local results. No new Gateway/MCP behavior is introduced.

Security Impact

  • New permissions or capabilities? No
  • Secrets or tokens handling changed? No
  • New or changed network calls? No
  • Command or tool execution surface changed? No
  • Data access scope changed? No
  • Risk and mitigation: N/A

Compatibility and Migration

  • Backward compatible? Yes
  • Config or environment changes? No
  • Migration needed? No
  • 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.

Remove temporary GitHub MSIX pinning while preserving the Connection dashboard card, Settings Chat navigation and focus, and subtle welcome buttons.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: e25a9525-6555-4534-a281-7ebc2ea2f66a
@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@karkarl karkarl added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codex review: needs changes before merge. Reviewed October 1, 2026, 4:03 AM ET / 08:03 UTC.

ClawSweeper review

What this changes

The PR moves Gateway dashboard access into Connection settings, restores a Chat link that focuses the retained main window, and gives welcome suggestions quieter button styling.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful, bounded navigation improvement that current main does not provide. No concrete introduced defect was found, but the captured evidence leaves current-head validation and visible UI proof unfinished.

Priority: P3
Reviewed head: 94b6cfd0621bf899111c339591e110bca85bd2ab

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and has useful regression coverage, but captured final-head runtime evidence is unfinished.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: 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.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 8 items Pinned introduced scope: Read the complete introduced diff across all 15 files. The final branch changes presentation, navigation, documentation, and tests; it does not introduce installer, dependency, workflow, credential, or Gateway protocol changes.
Existing navigation owner reused: The nonselecting Chat item queues NavigateTo("chat") after NavigationView focus handling. Existing WorkspaceNavigation routes that request to Workspace, and WorkspaceWindow.Navigate preserves the retained conversation when no session is specified.
Window restoration and foreground activation: The existing lifetime owner restores a minimized Workspace and activates it; the introduced call then requests foreground activation. Existing Workspace instances are reused rather than reconstructing the composer.
Findings None None.
Security None None.

How this fits together

Settings and Chat occupy separate native Windows windows. Settings navigation routes Chat requests through the existing window manager, which retains the conversation and restores or focuses its window.

flowchart TD
    A[Settings Chat link] --> B[Queued navigation action]
    B --> C[Existing window manager]
    C --> D{Chat window exists?}
    D -->|Yes| E[Retain conversation and restore window]
    D -->|No| F[Create Chat window]
    E --> G[Foreground Chat]
    F --> G
Loading

Before merge

  • Complete next step (P2) - Update the PR body with completed current-head validation and native WinUI evidence. Redact private details; the body update should trigger re-review, or a maintainer can request @clawsweeper re-review.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +56/-23; tests +116/-9; docs +17/-2 Production growth is explained by the relocated management card, navigation action, foreground request, and suggestion styling.
Native input coverage 2 added UI cases: mouse and keyboard Both cases check foreground activation, minimized restoration, and retained draft state.

Technical review

Best possible solution:

Keep one retained Chat window and the existing Dashboard launch owner, with Settings acting as a navigation entrypoint and management surface.

Do we have a high-confidence way to reproduce the issue?

Not applicable to this presentation cleanup; the added native UI cases define a concrete verification path, but their final-head execution results are still pending in the captured body.

Is this the best way to solve the issue?

Yes: the patch reuses existing routing, window lifetime, and Dashboard launch owners while keeping Chat out of the Settings content frame.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ab5c0ca6fe43.

Labels

Label changes:

  • add P3: This is bounded navigation and visual polish without evidence of an urgent runtime failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is bounded navigation and visual polish without evidence of an urgent runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Pinned introduced scope: Read the complete introduced diff across all 15 files. The final branch changes presentation, navigation, documentation, and tests; it does not introduce installer, dependency, workflow, credential, or Gateway protocol changes. (94b6cfd0621b)
  • Existing navigation owner reused: The nonselecting Chat item queues NavigateTo("chat") after NavigationView focus handling. Existing WorkspaceNavigation routes that request to Workspace, and WorkspaceWindow.Navigate preserves the retained conversation when no session is specified. (src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs:781, 94b6cfd0621b)
  • Window restoration and foreground activation: The existing lifetime owner restores a minimized Workspace and activates it; the introduced call then requests foreground activation. Existing Workspace instances are reused rather than reconstructing the composer. (src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:488, 94b6cfd0621b)
  • Current main still differs: Pinned main has no Chat navigation item or ItemInvoked handler in Settings and still places the Dashboard banner above Chat. The requested presentation and cross-window action are therefore not already implemented there. (src/OpenClaw.Tray.WinUI/Pages/ChatPage.xaml:15, ab5c0ca6fe43)
  • Release boundary: The supplied latest release, v2026.9.4, has an older selecting Chat item in HubWindow. That establishes prior Chat navigation, but does not establish the new nonselecting Settings-to-Workspace behavior. Release blobs unavailable locally were inspected through GitHub's contents API. (src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml:417, 3c43751b2bac)
  • Focused behavioral coverage: Two UI cases exercise keyboard and mouse activation through the native app, including repeated activation, minimized restoration, foreground HWND, retained composer identity, draft contents, and unchanged Connection page. Reading their implementation does not establish that the final-head runs passed. (tests/OpenClaw.Tray.UITests/WorkspaceWindowProofTests.cs:296, 94b6cfd0621b)

Likely related people:

  • karkarl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • bkudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record completed current-head shared/tray test results and the targeted ARM64 native UI run.
  • Attach current-head screenshots or copied UI diagnostics showing Chat foreground restoration, retained drafts, the Connection card, and welcome styling; redact private details.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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-review comments, 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-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@karkarl
karkarl merged commit f4122a8 into main Oct 1, 2026
23 checks passed
@karkarl
karkarl deleted the feature/settings-chat-navigation branch October 1, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant