Skip to content

feat(macos): show the web conversation in native chat windows - #159946

Merged
steipete merged 10 commits into
mainfrom
steipete/mac-native-web-conversation
Sep 28, 2026
Merged

steipete merged 10 commits into
mainfrom
steipete/mac-native-web-conversation

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS chat window renders conversations with the native Swift transcript and composer, which trail the web Control UI on nearly every rich surface: Mermaid and wide tables overflow their bubbles, paragraphs merge, and inline cards, message actions, side panels, slash commands, queue/steer, find, and export are missing or different. Keeping two renderers and two send pipelines at parity is not converging.

Why This Change Was Made

Native chat windows keep their native shell: sidebar roster, ⌘K palette, toolbar, menus, windows, and Gateway handling. The detail area now hosts the Gateway-served Control UI conversation pane (header, transcript, composer, side panels) in a WKWebView, the same surface the Dashboard already trusts.

  • Document host extraction (first commit, behavior-neutral for the Dashboard): WKWebView configuration, trusted document-start scripts, origin/mount-path navigation policy, dialogs, TLS pinning, auth/browser-session leases, and window-chrome handling move from DashboardWindowController into ControlUIDocumentHost, which both windows now use.
  • Conversation bridge (NativeConversationBridge, contract types in OpenClawKit NativeConversationContract): injects surface: "conversation", binds every message to the web document id (stale documents, reloads, and process termination cancel pending requests), and speaks the small command set the web side landed in feat(ui): add a native conversation surface for the macOS app #159739: navigate, presentation, and focus-composer from native; ready, state, route-changed, open-dashboard, and command-result from web.
  • One owner for the window’s conversation (ChatSendOwnership, ChatWebConversation): sessions shown in the web pane get no full-window native history load, message subscription, read acknowledgement, or send. Sessions with pending native outbox work stay on the Swift view until drained. Sidebar, palette, and New Thread selection switch the pane in place via navigate without reloading; web-originated moves (forks, session links) update the sidebar via route-changed, and the latest route wins when moves overlap.
  • Fallback: the Swift chat view remains for Gateways whose UI lacks the conversation surface, for load failures and ready timeouts (auth/TLS/network errors shown as such), and via Debug → "Use native conversation view". Quick Chat and iOS are unchanged.
  • Unified titlebar: in web mode the pane extends under the transparent titlebar and shares the Dashboard's window-drag handler and titlebar height, so the web header and the traffic lights sit in one row.
  • OPENCLAW_DEBUG_CONVERSATION_BRIDGE=1 logs bridge traffic for diagnosis.

Production growth is mostly the bridge, the web-mode view, and the ownership rules; the Dashboard shrinks by the extracted host. Web-side presentation of the titlebar row landed in #159932 as b3b74485057018b090b9b76a809b53a59cffd6f0; the merge dependency is satisfied.

Review follow-up: independent Quick Chat and Talk Mode sends continue through the shared Gateway connection; renderer exclusion is owned only by the full-window native conversation transport. Web-originated navigation inspects the destination's saved native draft before reserving web ownership, so a restored draft remains visible in the Swift fallback. The deferred web admission handshake is tracked in the review disposition comment.

Screenshots

Before: native Swift transcript on main. The diagram overflows into the message header and paragraphs merge.

Native chat window before

After: the same kind of thread in the web conversation pane, reached by clicking it in the native sidebar, with one titlebar row.

Native chat window with the web conversation pane

Evidence

  • Coordinator live rig before the review follow-up (dev Gateway serving the matching Control UI build, synthetic sessions): sidebar thread switch traced as navigate → state (rev 12) → result ok → focus-composer ok in one document, with no reload and no blank pane; one unified titlebar row. Existing inspected screenshots remain above. The coordinator also live-tested the rebased and fixed 0b91904b99dd29c3c954a5046e52848f94929cde build: the web pane loads with the unified titlebar, and the bridge reports ready → adopted → presentation ok → state.

  • Follow-up checks for 0b91904b99dd29c3c954a5046e52848f94929cde (wall times, all passed): swift build --package-path apps/macos --build-system native --product OpenClaw (40.93s), swift build --package-path apps/macos --build-system native --build-tests (24.02s), and swift build --package-path apps/macos --product OpenClaw (26.80s). macOS tests compiled only; neither the app nor the native suite was launched on the operator Mac.

  • swift test --package-path apps/shared/OpenClawKit --filter 'NativeConversation|ChatViewModelOutbox': 81 tests passed (9.58s). swift test --package-path apps/shared/OpenClawKit --filter 'ChatFileAdmission|ChatFileAttachmentRequest|ChatMessageMediaAttachment|ChatComposerPasteSupport|ChatViewModelAttachment|GatewayAttachmentLimits|ChatGatewayAgentCatalog|ChatViewModelAgentNavigation|ChatViewModelSessionAction': 108 tests passed, comprising 90 Swift Testing cases and 18 XCTest cases (7.46s).

  • The new NativeConversationDraftTests cases, returning from web mode keeps a restored native draft after its outbox drains and attachment staging keeps native ownership while a web pane is selected, both failed at the pending-native-work assertion on the pre-fix production code (23.21s wall including compilation). All four draft tests passed after the fix (45.04s wall including recompilation; 0.055s test execution). The new Dashboard smoke regression, dashboard refresh preserves titlebar chrome for the current endpoint and mount, compiled successfully. Its pre-fix evidence is source-level: refresh cleared all scripts without reinstalling host titlebar CSS. It was not executed under the macOS compile-only restriction.

  • scripts/lint-swift.sh macos (0.58s), scripts/format-swift.sh macos (0.46s), pnpm native:i18n:verify (4.01s), and pnpm test test/scripts/native-app-i18n.test.ts test/scripts/apple-app-i18n.test.ts (61 tests, 41.46s) passed. No user-visible strings or translation memory changed in the follow-up.

  • Codex autoreview through P2: the coordinator’s branch review supplied the accepted titlebar/draft findings above. Commit-scoped autoreview of 0b91904b99dd29c3c954a5046e52848f94929cde is scoped-clean, with no accepted/actionable P0–P2 findings. The Dashboard runtime-proof limitation is recorded above.

  • ClawSweeper follow-up 403d6b6eee5effd41713dee9d03995623280548d: swift build --package-path apps/macos --build-system native --product OpenClaw (107.65s), swift build --package-path apps/macos --build-system native --build-tests (43.98s), and swift build --package-path apps/macos --product OpenClaw (77.57s) passed. The same conversation/outbox filter above passed 82 tests (32.52s); the attachment/identity filter passed 108 tests (21.19s). Swift lint passed in 1.48s, format in 0.75s, native i18n verify in 5.00s, and the 61 i18n script tests in 86.30s.

  • web links inspect the destination native draft before changing selection failed with the original current-input-only admission behavior, then all five draft tests passed with destination lookup (24.02s wall, 0.134s execution). The new Mac socket-boundary tests cover independent sends under a web claim and all three native conversation send paths; local proof is compilation only. Hosted execution remains required. Codex autoreview through P2 for this follow-up: scoped-clean, with no accepted/actionable findings.

  • Hosted Mac run 36385613760 executed the native suite. The Dashboard titlebar-refresh regression passed (2.768s), independent chat sends under web ownership passed (0.015s), and all three full-window send paths retained their fence (27.306s). One separate layout test failed because it waited for an unrelated virtualized sidebar accessibility row. The test-only follow-up identifies and waits for its actual embedded detail view, retaining the geometry and toolbar assertions; The repair compiles with swift build --package-path apps/macos --build-system native --build-tests (184.35s), passes focused formatting and diff checks, and has a scoped-clean Codex autoreview through P2. Hosted run 36390110337 passed that readiness check, then exposed a later native-menu assertion. The next test-only follow-up waits for both native title and action menu and uses the existing selector’s label-or-title rule. The original toolbar/geometry assertions and timeout remain unchanged. Test compilation passed (34.14s), formatting/diff checks passed, and Codex autoreview is scoped-clean through P2; Hosted macOS execution on 932424e916f0bfd80617103b9d7c1aea63042bc0 is green: 2,308 main-suite tests, six named-profile tests, and two rendered tests passed, including the restored-toolbar layout regression (4.271s). macOS packages, iOS smoke, and iPhone screenshots passed. The iPad Settings root-readiness failure is retained in the CI disposition comment; its single unchanged-head failed-jobs rerun passed. Exact-head CI 36393462911, attempt 2 and openclaw/ci-gate are green on 932424e916f0bfd80617103b9d7c1aea63042bc0.

User Impact

macOS users on a current Gateway get the full web conversation experience inside the native window; older Gateways keep the Swift chat unchanged. Existing installations that selected Native experience retain the native shell and receive the web conversation detail by default; this renderer transition is intentional for the approved parity campaign. Native drafts, pinned attachments, and pending outbox work retain their Swift owner until resolved. The developer comparison override remains available. No config, protocol, or schema changes.

Keep native outbox work draining for unselected sessions and retain send
exclusion until the retiring web document commits about:blank or terminates.
Bind opening drafts to their source conversation and preserve native focus
during background readiness.

Keep the pane visible through bounded navigation, reconcile failed selections
with the web's settled state, defer sidebar updates beyond table callbacks,
and remove duplicate native title chrome. Add opt-in bridge metadata tracing
with OPENCLAW_DEBUG_CONVERSATION_BRIDGE=1.
Retain web route and state reports during asynchronous reservations. Recheck
the latest reported context after each await, reserve it before selecting it,
and let newer routes supersede both success and failure of an older attempt.

Read the bridge's current state when publishing the admitted route. Keep
native navigation and document retirement fences, without echoing web routes
back into the page. Cover B-to-C handoff during a paused reservation for both
admitted and refused B outcomes.
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos size: XL labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 28, 2026, 5:10 AM ET / 09:10 UTC (Revision 8).

ClawSweeper review

What this changes

The macOS app embeds the Gateway-served web conversation inside native chat windows, coordinates navigation and sending with the native shell, and retains a Swift fallback.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: current main has the web conversation surface, but the native-window integration remains unique. The earlier renderer-default and route-admission concerns were explicitly dispositioned; an existing-profile upgrade run remains the concrete merge evidence gap.

Priority: P2
Reviewed head: 932424e916f0bfd80617103b9d7c1aea63042bc0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual proof, a live navigation trace, and exact-head native validation support the feature, with existing-profile upgrade behavior still to verify.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
Evidence reviewed 7 items Current main still lacks the native integration: The fetched main revision has neither NativeConversationView.swift nor ChatWebConversation.swift; its macOS guide still describes the full Native-experience chat as SwiftUI.
Introduced ownership handoff: The PR reserves web ownership after checking native input and the durable outbox, then retains that claim for the window.
Existing-profile renderer change: A Gateway-backed native chat window now creates a web conversation owner unless the new developer override is set; the saved Native experience still controls the window shell.
Findings None None.
Security None None.

How this fits together

A native Mac chat window receives a selected Gateway session from its sidebar. Its conversation area then uses either the Gateway-served web pane or the Swift fallback, and sends messages through the corresponding chat path.

flowchart LR
  A[Native sidebar] --> B[Selected Gateway session]
  B --> C[Draft and outbox check]
  C --> D{Web pane available?}
  D -->|Yes| E[Control UI conversation]
  D -->|No| F[Swift conversation]
  E --> G[Gateway chat]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - No existing-profile upgrade run shows that a saved Native experience with native drafts or pending outbox work transitions as intended.
  • Complete next step (P2) - Capture an existing-profile Mac upgrade run with the saved Native experience and a native draft or pending outbox item before merge.
Agent review details

Security

None.

PR surface

Docs +32, Other +3174. Total +3206 across 53 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 33 1 +32
Config 0 0 0 0
Generated 0 0 0 0
Other 52 3800 626 +3174
Total 53 3833 627 +3206

Review metrics

Metric Value Why it matters
Production and test growth production net +2,154 lines; tests net +1,020 lines The PR attributes production growth to the bridge, web pane, and ownership cutover; the native-host extraction also removes Dashboard code.
Diagnostic controls 1 persisted developer toggle, 1 diagnostic environment variable The new controls affect renderer comparison and bridge logging without changing the normal user settings surface.

Merge-risk options

Maintainer options:

  1. Verify an existing-profile upgrade (recommended)
    Capture a Mac run that opens a saved Native-experience profile with a draft or pending outbox item and shows the expected web or Swift owner after upgrade.

Technical review

Best possible solution:

Use one Control UI conversation owner inside the native window, retain the Swift fallback, and handle the deferred web pre-send admission contract as a focused follow-up.

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

Not applicable: this is a feature PR. Current main's Mac guide and source establish the existing Swift conversation path, while the inspected screenshots show the proposed renderer difference.

Is this the best way to solve the issue?

Yes: reusing the Gateway's Control UI conversation within the native shell addresses renderer parity at one owner, with a Swift fallback for unavailable pages and pending native work.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded macOS experience improvement with exact-head native validation and a remaining upgrade-proof gap.
  • merge-risk: 🚨 compatibility: The approved renderer transition changes what existing Native-experience installations display, while an existing-profile upgrade run is still absent.
  • merge-risk: 🚨 message-delivery: The explicitly accepted deferred admission handshake leaves a narrow web-originated route window in which sending can precede native destination reservation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The native chat owner embeds the Gateway-served conversation: inspected Mac before/after images and a dev-Gateway trace show improved rendering and pane navigation, while exact-head hosted native tests cover send fences. An existing-profile upgrade recording remains a separate compatibility gap; no persisted schema or format changes.

Evidence

What I checked:

Likely related people:

  • steipete: 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 an upgrade of a saved Native-experience profile with a draft or pending outbox item.

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 (7 earlier review cycles)
  • reviewed 2026-09-27T23:07:54.188Z sha 788f1d3 :: needs real behavior proof before merge. :: [P1] Keep Quick Chat and Talk Mode sends working for web-owned sessions
  • reviewed 2026-09-27T23:43:07.131Z sha 0b91904 :: needs real behavior proof before merge. :: [P1] Preserve Quick Chat and Talk Mode sends for web-owned sessions | [P1] Admit web-originated destinations before their composer can send
  • reviewed 2026-09-28T05:23:26.576Z sha 0b91904 :: needs real behavior proof before merge. :: [P1] Preserve Quick Chat and Talk Mode sends to web-owned sessions | [P1] Wait for destination admission before web send | [P1] Surface restored native drafts on web-originated routes
  • reviewed 2026-09-28T06:24:29.867Z sha 403d6b6 :: needs real behavior proof before merge. :: [P1] Admit web-originated routes before enabling send | [P1] Preserve the existing Native renderer choice on upgrade
  • reviewed 2026-09-28T07:17:18.422Z sha 8557df5 :: needs real behavior proof before merge. :: [P1] Gate web-originated sends before changing sessions | [P1] Preserve the saved Native renderer during upgrade
  • reviewed 2026-09-28T07:53:38.243Z sha 932424e :: needs real behavior proof before merge. :: [P1] Gate web-originated sends before changing sessions | [P1] Preserve the saved Native renderer during upgrade
  • reviewed 2026-09-28T08:43:57.640Z sha 932424e :: needs real behavior proof before merge. :: [P1] Admit web-originated destinations before enabling send | [P1] Preserve the saved Native renderer on upgrade

@steipete

Copy link
Copy Markdown
Contributor Author

Review disposition: reject "secure destination ownership before acknowledging web navigation" for this change.

When the web pane reports route-changed, it has already displayed the linked session. Native code cannot gate that web composer without changing the web-side contract. The race requires an undrained native outbox for the destination session on a live connection, plus a web send during the single SQLite reservation read. After that read, the window falls back to the Swift view for that session.

Follow-up noted: add a contract in which the web pane waits for native admission before enabling send after a web-originated route change. No code change for this finding is included here.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Sep 28, 2026
@steipete
steipete marked this pull request as ready for review September 28, 2026 05:14
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

ClawSweeper follow-up for 403d6b6:

  • Fixed independent Quick Chat and Talk Mode delivery: renderer exclusion now belongs to the full-window native conversation transport. The shared GatewayConnection.chatSend entry remains available to those independent callers. The native transport retains exclusion through completion for plain, targeted, and leased/outbox sends; the existing SQLite enqueue fence is unchanged.
  • Fixed web-originated destination drafts: reservation now asks the native draft owner about the reported destination before selection restores its input. A saved draft refuses web ownership and takes the existing Swift fallback. The regression also checks another agent, another session, and clearing the current draft.
  • The web-side pre-send admission handshake remains the explicitly deferred contract follow-up recorded in feat(macos): show the web conversation in native chat windows #159946 (comment). This repair does not change that contract.

The renderer default in the experimental Native experience is the intended feature of this PR. No settings/schema migration is added. The coordinator supplied live pane/titlebar/bridge smoke on the preceding reviewed head; a separate existing-preferences upgrade run and live final-send traces have not been captured. Those proof requests are recorded as remaining limitations rather than claimed as completed.

Local proof for this follow-up: 82 conversation/outbox tests and 108 attachment/identity tests passed, along with both app builds, native test-bundle compilation, Swift lint/format, localization verification, and 61 i18n script tests. The new socket-boundary Mac tests compile locally and are left for hosted execution under the operator's compile-only restriction. Codex autoreview through P2: scoped-clean, with no accepted/actionable findings.

CI run https://github.com/openclaw/openclaw/actions/runs/36381064545 failed in checks-node-compact-large-11: plugin-legacy-listeners.test.ts hit EADDRINUSE on 127.0.0.1:61001. The native jobs were cancelled, so that run does not prove the new Mac regressions. The separate PR-context failure required the template's What Problem This Solves heading; the body headings are corrected without changing the problem statement. A new exact-head CI run will validate this pushed repair; no tests, timeouts, or baselines were weakened.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 28, 2026
@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 28, 2026
@clawsweeper clawsweeper Bot added the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Exact-head CI update for 932424e916f0bfd80617103b9d7c1aea63042bc0:

The macOS test and package lanes are green in https://github.com/openclaw/openclaw/actions/runs/36393462911. The native artifact records 2,308 main-suite tests plus six named-profile and two rendered tests passing, including the titlebar refresh, independent sends, all three native send-fence paths, and the restored-toolbar layout regression. iOS smoke and iPhone screenshots also passed.

The remaining failure is the iPad Settings screenshot startup check: testReleaseSettingsScreenshot found RootTabs.Ready but did not observe ready:gateway before its existing wait ended. Control, chat, and agent captures on the same iPad succeeded. The log also shows slow automation queries and a 58-second termination wait. This branch has no changes to the iOS Settings/root-readiness code or this screenshot test.

Treating this first observed hosted readiness failure as a transient candidate, I am rerunning failed jobs once on the same head. The failure remains recorded; no assertion, timeout, baseline, or product code is changed to make it pass. A passing replay alone will not be described as a root-cause repair.

@steipete

Copy link
Copy Markdown
Contributor Author

Remaining ClawSweeper policy dispositions for 932424e916f0bfd80617103b9d7c1aea63042bc0:

The pre-send web admission handshake remains deferred by the coordinator’s explicit decision, as recorded in #159946 (comment). No handshake or draft-storage migration is added here.

The approved parity campaign intentionally changes the conversation detail inside existing Native experience windows to the shared web renderer. The native shell, sidebar, menus, and Gateway selection remain native. Preserving the old Swift renderer as an upgrade default would change that approved behavior, so that proposed change is rejected for this PR. The User Impact section now states the existing-installation behavior explicitly; native drafts, pinned attachments, pending outbox work, and unsupported Gateway pages retain the Swift path.

Hosted Mac CI now passes on this head, including the titlebar refresh, independent sends, native-send exclusion, and web/native layout regressions (2,308 main-suite, six named-profile, and two rendered tests). The optional rank-up requests for additional live web-send/final-Gateway-effect traces and an existing-preference upgrade recording remain documented proof gaps; no such capture is claimed. The coordinator supplied the inspected rendering proof and live pane/bridge smoke. The one iPad readiness rerun is still a required CI gate before landing.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready validation for 932424e916f0bfd80617103b9d7c1aea63042bc0: https://github.com/openclaw/openclaw/actions/runs/36393462911 completed successfully on attempt 2, including the iPad screenshot rerun and openclaw/ci-gate. The rerun used the same head; the first readiness failure remains recorded in the preceding CI comment.

Hosted native proof includes 2,308 main-suite tests, six named-profile tests, and two rendered tests. The Dashboard refresh, independent-send, native-send exclusion, and web/native titlebar/layout regressions all pass. Local app builds, native test compilation, 82 conversation/outbox tests, 108 attachment/identity tests, Swift lint/format, localization verification, and 61 i18n script tests passed; exact commands and wall times are in the body. Independent Codex autoreviews are scoped-clean through P2.

The current-head ClawSweeper review is completed. Accepted implementation findings are fixed; the already-deferred admission handshake, approved renderer default, and additional live-send/upgrade proof gaps are explicitly dispositioned in #159946 (comment). The inspected before/after images and coordinator live smoke are in the body, and the titlebar companion #159932 is merged. Continuing through native preparation and pinned merge admission.

@clawsweeper clawsweeper Bot added 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 Sep 28, 2026
@steipete
steipete merged commit f319fd3 into main Sep 28, 2026
160 of 164 checks passed
@steipete
steipete deleted the steipete/mac-native-web-conversation branch September 28, 2026 09:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…aw#159946)

* refactor(macos): extract the Control UI document host from the Dashboard

* feat(macos): show the web conversation in native chat windows

* fix(macos): preserve web conversation state during navigation

Keep native outbox work draining for unselected sessions and retain send
exclusion until the retiring web document commits about:blank or terminates.
Bind opening drafts to their source conversation and preserve native focus
during background readiness.

Keep the pane visible through bounded navigation, reconcile failed selections
with the web's settled state, defer sidebar updates beyond table callbacks,
and remove duplicate native title chrome. Add opt-in bridge metadata tracing
with OPENCLAW_DEBUG_CONVERSATION_BRIDGE=1.

* fix(macos): reconcile the latest web conversation route

Retain web route and state reports during asynchronous reservations. Recheck
the latest reported context after each await, reserve it before selecting it,
and let newer routes supersede both success and failure of an older attempt.

Read the bridge's current state when publishing the admitted route. Keep
native navigation and document retirement fences, without echoing web routes
back into the page. Cover B-to-C handoff during a paused reservation for both
admitted and refused B outcomes.

* fix(macos): unify the web conversation titlebar

* refactor(macos): simplify conversation browser-store selection

* fix(macos): keep native drafts and Dashboard titlebar through web conversation handoffs

* fix(macos): preserve independent sends and web-route drafts

* test(macos): wait for the hosted conversation detail

* test(macos): wait for complete native toolbar restoration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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: XL 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.

1 participant