Skip to content

fix(macos): make OpenClaw settings pane responsive - #128177

Merged
steipete merged 1 commit into
openclaw:mainfrom
TheAngryPit:fix/macos-openclaw-pane-layout
Aug 25, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
TheAngryPit:fix/macos-openclaw-pane-layout

Conversation

@TheAngryPit

Copy link
Copy Markdown
Contributor

Closes #128173

What Problem This Solves

The native macOS OpenClaw Settings pane leaves most of the detail area unused at normal window sizes and provides no reliable vertical scroll path when the window is short.

Why This Change Was Made

  • Give the OpenClaw chat a minimum height derived from the available detail viewport.
  • Place the pane in a vertical ScrollView so constrained content remains reachable.
  • Preserve the existing chat and quick-action behavior.

User Impact

The OpenClaw chat uses the available Settings window instead of staying as a compact card, and the pane scrolls when vertically constrained.

Evidence

  • swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests — 2/2 passed.
  • SwiftFormat with config/swiftformat — 0/2 files require formatting.
  • SwiftLint with config/swiftlint.yml — 0 violations.
  • git diff --check — passed.
  • OpenClaw autoreview — clean; confidence 0.90.
  • Before/after runtime screenshots will be attached in a PR comment.

AI assistance was used to investigate, implement, test, and review this change. The final diff and proof were inspected against current main.

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 3:35 AM ET / 07:35 UTC.

ClawSweeper review

What this changes

This PR makes the macOS OpenClaw Settings chat fill the available detail pane, adds vertical scrolling when constrained, and adds native layout tests.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking correctness finding: current main still renders this pane without a viewport-sized scroll container, while this PR adds that pane-local behavior with focused layout coverage and supplied before/after macOS proof.

Priority: P2
Reviewed head: ee4d512274dbe675abb5440520c75dd622bb9ab9

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-local repair with direct UI proof, targeted native layout coverage, and no blocking review finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR discussion supplies exact-setup before/after macOS screenshots showing the chat expanding and the reply field remaining reachable; screenshot URLs could not be refetched because reviewer DNS was unavailable, which does not invalidate the posted proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR discussion supplies exact-setup before/after macOS screenshots showing the chat expanding and the reply field remaining reachable; screenshot URLs could not be refetched because reviewer DNS was unavailable, which does not invalidate the posted proof.
Evidence reviewed 6 items Current-main behavior: Current main uses a plain vertical stack for the pane; it has neither a viewport geometry boundary nor an outer vertical scroll container.
Entry point and owned callee: The Settings root owns selection of this pane, and the embedded chat owns the transcript scroll view and reply field; the fix stays at their layout boundary.
Proposed owner-boundary repair: The PR wraps only this pane in a vertical ScrollView and derives its minimum content height from the available detail viewport, preserving the chat implementation itself.
Findings None None.
Security None None.

Live Verification

Command: swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests

Result: FAIL (failed) — step 1 run swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests: terminal command did not produce output within 20 seconds: "swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests"

swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128177-lQGLtM/target$ swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests
swift test --package-path apps/macos --filter SystemAgentSettingsLayoutTests
















































Assertions:

  • FAIL expect_output: Executed 2 tests, with 0 failures

How this fits together

The macOS Settings root selects the OpenClaw detail pane after inference is configured. That pane contains the onboarding chat, whose transcript and reply controls must remain usable as the Settings window changes size.

flowchart LR
A[Settings window] --> B[Settings detail pane]
B --> C[OpenClaw setup chat]
C --> D[Viewport sizing and scrolling]
D --> E[Reachable transcript and reply controls]
Loading

Before merge

  • Resolve merge risk (P1) - Production code grows by six lines; the geometry and scroll boundary should remain pane-local because no shared settings container owns this chat-specific viewport behavior.
Agent review details

Security

None.

PR surface

Other +106. Total +106 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 121 15 +106
Total 2 121 15 +106

Review metrics

Metric Value Why it matters
Production versus test LOC production +6 net; tests +100 The small pane-local production growth is justified by the new viewport and scrolling boundary; test growth exercises both normal and constrained layout behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: apps/macos/Sources/OpenClaw/SystemAgentSettings.swift. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #128173
Summary: This PR explicitly proposes the implementation for the linked macOS Settings-pane layout bug.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the viewport-sizing and scrolling policy in this pane, not in the shared settings container, then merge after normal exact-head maintainer validation.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the viewport-sizing and scrolling policy in this pane, not in the shared settings container, then merge after normal exact-head maintainer validation.

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

Yes, source establishes the path: current main renders the OpenClaw pane as a non-scrollable stack, while the PR’s AppKit-hosted tests cover normal-height expansion and constrained-height scrolling.

Is this the best way to solve the issue?

Yes. A local geometry and scrolling boundary repairs the pane that owns the chat without changing shared settings layout or the chat’s transcript behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8c5a12c112e6.

Labels

Label justifications:

  • P2: This is a bounded macOS settings usability fix without data loss, security impact, or core-runtime unavailability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The PR discussion supplies exact-setup before/after macOS screenshots showing the chat expanding and the reply field remaining reachable; screenshot URLs could not be refetched because reviewer DNS was unavailable, which does not invalidate the posted proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR discussion supplies exact-setup before/after macOS screenshots showing the chat expanding and the reply field remaining reachable; screenshot URLs could not be refetched because reviewer DNS was unavailable, which does not invalidate the posted proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR discussion supplies exact-setup before/after macOS screenshots showing the chat expanding and the reply field remaining reachable; screenshot URLs could not be refetched because reviewer DNS was unavailable, which does not invalidate the posted proof.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame and the feature introduction commit cover the pane, its Settings-root caller, and the embedded chat implementation. (role: current feature owner and recent area contributor; confidence: high; commits: 8f0503657c0b; files: apps/macos/Sources/OpenClaw/SystemAgentSettings.swift, apps/macos/Sources/OpenClaw/SettingsRootView.swift, apps/macos/Sources/OpenClaw/OnboardingSystemAgentChat.swift)

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-23T10:06:58.947Z sha 2ec3b55088a404b364d672a9697917785109b26b :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T10:45:59.297Z sha ee4d512 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T10:55:27.132Z sha ee4d512 :: needs maintainer review before merge. :: none

@TheAngryPit
TheAngryPit force-pushed the fix/macos-openclaw-pane-layout branch from 2ec3b55 to ee4d512 Compare August 23, 2026 10:41
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 23, 2026
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Runtime screenshots from the exact tested Mac setup:

Before — the conversation collapsed to its intrinsic height and left most of the pane unused

Screenshot 2026-08-23 at 08 29 24

After — the conversation fills the available pane and keeps the reply field anchored at the bottom

Screenshot 2026-08-23 at 09 19 57

@TheAngryPit
TheAngryPit marked this pull request as ready for review August 23, 2026 10:50
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit de969db into openclaw:main Aug 25, 2026
146 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Bug]: OpenClaw Settings chat does not fill or scroll with the window

2 participants