Skip to content

feat(macos): show web composer badges and session actions in the sidebar - #163193

Merged
steipete merged 4 commits into
mainfrom
steipete/mac-sidebar-bridge
Oct 2, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/mac-sidebar-bridge

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The native macOS sidebar could not show web composer drafts or outbox attention, and its row menus could not reach web-owned plugin actions and Stop cloud worker….

Related: #163001 (native sidebar session menus), which deferred these web-owned actions to More actions….

User Impact

With the Native experience and a supporting Gateway UI, session rows show the web sidebar's draft pencil and outbox attention count. More actions… selects that conversation and opens its existing web session menu. Confirmation, progress, errors, plugin execution, and worker stopping remain in the web conversation. iOS, Quick Chat, and the Swift fallback keep their existing behavior; the shared kit still compiles for iOS.

Why This Change Was Made

The web pane owns composer state and these operations. Contract v1 now negotiates session-facts-v1 and session-actions-v1, publishes bounded metadata-only snapshots, and hands menu opening back to that owner. Native projections and callbacks retire with their document. The native command waiter is 15 seconds; readiness remains 10 seconds. Menu opening is acknowledged independently of long-running operations.

Rebase integration preserves main's durable and attachment-only draft recovery, revision/identity fences, and unchanged-menu rendering. Cleared/no-attention rows are omitted from the bounded snapshot; they must not displace real badges. Native action presentation uses the existing header memoization pattern and current-row callback, while execution stays with the existing web owners. Three native tests now use main's canonical observed wait helper.

Production: +464/−45 (net +419). Tests: +619/−44. Tooling/budget metadata: +5/−5; docs: +7; generated native localization inventory: +6. Production growth implements the two new capabilities, bounded cross-language admission, document lifecycle cleanup, and native presentation. There is no second plugin execution or worker-reclaim path.

The original lane grew startup gzip by 90 B and raised the largest-chunk ceiling from 220,160 B to 222,350 B (+0.9947%). After rebasing, the largest chunk measures 183,515 B, so that obsolete ceiling increase is removed. The measured startup baseline/cap is now 372,878 B, versus 371,771 B before (+1,107 B, 0.298%), within the authorized sub-1% rule. The 512 B growth allowance and 64 B variance allowance are unchanged. The initial matched-toolchain main measures 372,406 B and the candidate 372,579 B (+173 B, 0.046%); main itself exceeded the old enforcement limit. The comparison passed in 45.49 s. Startup and route boot request budgets pass.

Evidence

Check Result / wall time
Focused bridge, outbox, projection, menu, and shell UI suites 182 passed after conflict reconciliation, 11.99 s
Durable facts regression before repair 1 failed / 10 passed in 11.91 s; after repair all 11 passed
Control UI production build Passed after conflict reconciliation, 12.16 s
Strict startup/chunk/boot budgets Passed after conflict reconciliation, 0.49 s; 938 precompressed sidecars verified before that rebase
Performance guard tests 54 passed, 5.83 s
UI types Passed after conflict reconciliation, 22.01 s
Changed-file UI lint Passed after conflict reconciliation, 106.29 s including declaration preparation
Line-cap / max-lines ratchets Passed; line-cap rechecked after conflict reconciliation in 1.55 s
Native / plain macOS app builds Passed after conflict reconciliation, 57.47 / 40.15 s
Native test compilation Passed after conflict reconciliation, 122.70 s
Shared test compilation Passed after conflict reconciliation, 83.82 s
Sandboxed shared contract, row, menu, ownership, and routing tests 64 passed across seven suites including menu/hover siblings, 1.19 s
iOS simulator shared ChatUI compilation Passed after conflict reconciliation, 32.04 s
Explicit changed-file SwiftLint / SwiftFormat Passed after conflict reconciliation, 0.22 / 0.35 s; SwiftLint has style warnings, no errors
Native i18n baseline / verification Regenerated and verified, 4,420 entries
Fresh independent Codex autoreview Completed 21 passes in 4,150.49 s; all four findings dispositioned below

The lane's recorded pre-change proof failed at absent capabilities (18.82 s), and its baseline Swift decoder rejected session facts (0.84 s). The lane also recorded six native-conversation web E2Es passing (57.85 s), 33 Stop/startup-owner checks passing, and a real Foundation/Node byte-count regression: slash-heavy JSON was incorrectly counted as 121,547 B instead of 61,547 B before .withoutEscapingSlashes.

The supplied live rig served this branch's Control UI build through gateway.controlUi.root while the native build drove it. The captures below show the native draft badge, native More actions…, and the resulting web menu. They are pre-rebase rig evidence; no browser or browser automation was used during landing. Native WebKit/WebChat runtime tests are compiled locally and run on the exact-head disposable macOS CI worker, not on the operator desktop.

An initial local UI lint prerequisite detected files appearing during the concurrent iOS build; after native compilation finished, the unchanged lint preparation and checks passed. Initial stale Mermaid dependencies were refreshed with the frozen lockfile before rebuilding.

All screenshot data is synthetic; avatars are blurred. The draft-badge capture uses dark appearance, while the before/menu captures use light appearance.

Autoreview returned a nonzero findings result for the mixed index/working-tree target. Three INDEX-only findings (removed Swift wait helper, inactive facts, and account-less test fixture) explicitly recognized their fixes in the working tree; those tested fixes are included in the final commit. The agent-identity finding is rejected: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionSidebar+ContextMenu.swift:24 resolves the key-first agent plus mutation-target fallback before constructing the private row menu. Repeating that policy inside the menu would duplicate its owner. No accepted finding remains unresolved; this is a dispositioned review, not an unqualified scoped-clean result.

Before: native sidebar without web composer facts

After: web composer draft badge on the greeting row

Native row menu with More actions

More actions opens the web session menu
After GitHub reported a real conflict, the branch was rebased once onto main 81f65e98ad4e. The only manual resolution preserves the new pull-request menu wrapper and places More actions… after it; the range diff shows no other bridge behavior change. All affected checks above were repeated. Startup remeasured 372,863 B gzip, with zero budget violations; chat/new boot requests remain 32/27 against the 35 limit. The original CI run 36958028303 was superseded by this conflict repair, not rerun to obtain green. The fresh autoreview dispositions remain applicable to the unchanged bridge logic.

CI run 36959763696 completed with the macOS packages and runtime test jobs green; the Swift runtime test step ran successfully for 8m13s. Its three iOS failures all reported the same branch-owned multiline_arguments warning in the badge initializer, promoted to an error by CI’s --strict. The warning was reproduced locally, then fixed by placing count on its own line. Strict lint now passes for every touched production Swift file under the macOS and iOS configs (0.10/0.14 s), with SwiftFormat (0.27 s) and i18n verification green. A fresh single-pass autoreview of this formatting-only diff is scoped-clean at P2 (195.66 s). This code-fix push uses head 81d69b8c5ef9d077661368b0d69433b48050c5bb; no workflow or job was manually rerun.

@clawsweeper

clawsweeper Bot commented Oct 2, 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 app: web-ui App: web-ui scripts Repository scripts size: XL labels Oct 2, 2026
@steipete
steipete marked this pull request as ready for review October 2, 2026 02:57
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 11:44 PM ET / October 2, 2026, 03:44 UTC (Revision 3).

ClawSweeper review

What this changes

The PR adds web-owned draft and outbox badges to the macOS sidebar and lets its session menus open the selected conversation’s web actions.

Merge readiness

✅ Ready for maintainer review

This remains a useful continuation of the landed native-menu work. Current main lacks the requested capability, the inspected proof supports the visible behavior, and no actionable introduced defect was found.

Priority: P2
Reviewed head: 81d69b8c5ef9d077661368b0d69433b48050c5bb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with strong visible native proof and no supported blocking finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected native-rig screenshots directly show the sidebar draft projection and More actions selecting the conversation and opening its web menu. The captured body documents the real branch setup and pre-rebase capture timing; focused runtime and contract results supplement that visible proof. The latest change is formatting-only, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected native-rig screenshots directly show the sidebar draft projection and More actions selecting the conversation and opening its web menu. The captured body documents the real branch setup and pre-rebase capture timing; focused runtime and contract results supplement that visible proof. The latest change is formatting-only, and no stored-data contract changes.
Evidence reviewed 9 items Pinned introduction and review continuity: Inspected the introduced delta from 81f65e9 to the exact head. GitHub’s compare endpoint confirms that the change since the previous reviewed head only places the badge count argument on its own line. The previous completed review retained no findings.
Current main still lacks the bridge capabilities: Read the canonical bridge at the fetched main SHA through GitHub’s contents API. It advertises navigate, presentation, and focus-composer, with no session-facts publication or open-session-actions command. The existing web capability therefore does not already satisfy the native request.
Latest release boundary: Read NativeConversationContract.swift at v2026.9.7 through GitHub’s contents API. Its command and message enums lack openSessionActions and sessionFacts, so the latest supplied release does not contain this capability.
Findings None None.
Security None None.

How this fits together

The macOS conversation bridge connects the native sidebar to the Gateway’s embedded web chat. It projects composer metadata into native rows and returns action-menu requests to the web owners that execute them.

flowchart LR
  A[Web composer and outbox] --> B[Bounded metadata snapshot]
  B --> C[Document-bound conversation bridge]
  C --> D[Native sidebar badges]
  E[Native More actions selection] --> C
  C --> F[Selected web session menu]
  F --> G[Existing plugin and worker actions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +249, Tests +421, Docs +7, Other +330. Total +1007 across 33 files.

View PR surface stats
Area Files Added Removed Net
Source 11 274 25 +249
Tests 6 464 43 +421
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 15 356 26 +330
Total 33 1101 94 +1007

Review metrics

Metric Value Why it matters
Bridge capability additions 2 negotiated capabilities; 1 new message and 1 new command The additive features retain contract version 1 and leave featureless documents on their existing path.
Production versus test growth production +464/−45; tests +619/−44 Production growth is explicitly justified by cross-language admission, lifecycle cleanup, and native presentation.

Technical review

Best possible solution:

Keep native presentation as a document-bound projection while composer state, confirmations, and action execution remain with the existing web owners.

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

Not applicable as a defect reproduction: this adds a capability absent from current main, and inspected native screenshots demonstrate the visible after-change flow.

Is this the best way to solve the issue?

Yes. Negotiated metadata projection and menu handoff extend the existing bridge without creating another composer, plugin execution, or worker-stop owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded macOS conversation usability improvement without evidence of an urgent runtime regression.
  • 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): Inspected native-rig screenshots directly show the sidebar draft projection and More actions selecting the conversation and opening its web menu. The captured body documents the real branch setup and pre-rebase capture timing; focused runtime and contract results supplement that visible proof. The latest change is formatting-only, and no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected native-rig screenshots directly show the sidebar draft projection and More actions selecting the conversation and opening its web menu. The captured body documents the real branch setup and pre-rebase capture timing; focused runtime and contract results supplement that visible proof. The latest change is formatting-only, and no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected native-rig screenshots directly show the sidebar draft projection and More actions selecting the conversation and opening its web menu. The captured body documents the real branch setup and pre-rebase capture timing; focused runtime and contract results supplement that visible proof. The latest change is formatting-only, and no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and review continuity: Inspected the introduced delta from 81f65e9 to the exact head. GitHub’s compare endpoint confirms that the change since the previous reviewed head only places the badge count argument on its own line. The previous completed review retained no findings. (apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatSessionSidebarRowFacts.swift:142, 81d69b8c5ef9)
  • Current main still lacks the bridge capabilities: Read the canonical bridge at the fetched main SHA through GitHub’s contents API. It advertises navigate, presentation, and focus-composer, with no session-facts publication or open-session-actions command. The existing web capability therefore does not already satisfy the native request. (ui/src/app/native-conversation-bridge.ts, 2fc571a22758)
  • Latest release boundary: Read NativeConversationContract.swift at v2026.9.7 through GitHub’s contents API. Its command and message enums lack openSessionActions and sessionFacts, so the latest supplied release does not contain this capability. (apps/shared/OpenClawKit/Sources/OpenClawKit/NativeConversationContract.swift, c074824a27c9)
  • Bounded projection and document retirement: Facts contain only agent/session identifiers, draft presence, and attention counts; oversized or invalid snapshots become unavailable. Native callbacks capture the admitted document and both facts and action callbacks clear when it retires. (apps/macos/Sources/OpenClaw/NativeConversationView.swift:167, 81d69b8c5ef9)
  • Existing execution owners retained: The header forwards plugin actions to runControlUiPluginAction with the current session incarnation and cancellation signal; worker stopping calls the existing reclaimHeaderPlacement owner. The shared plugin runner rechecks registration, cancellation, and resolver availability before invoking the action. No plugin SDK or stored-data format changes are introduced. (ui/src/pages/chat/chat-pane-session-menu.ts:218, 81d69b8c5ef9)
  • Inspected native visual proof: Inspected all four prepared PNGs from the media manifest. They show the before sidebar, a draft pencil matching visible composer input, native More actions, and the selected greeting conversation’s open web menu. The captured body identifies a real native build serving the branch UI through gateway.controlUi.root and explicitly dates these captures before the rebase; the subsequent head comparison is formatting-only. Screenshots establish the visible badge/menu handoff, not independent plugin execution or worker-stop results.

Likely related people:

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

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 (2 earlier review cycles)
  • reviewed 2026-10-02T03:04:02.748Z sha 046e75eaf4eb0c1b7b56e065a966d604844e6e12 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T03:27:08.421Z sha 3b05933 :: needs maintainer review before merge. :: none

…ve app

Keep conversation contract 1 and negotiate sidebar facts/actions with host features.
Forward the existing sidebar's document-bound, bounded draft/attention projection
without composer or transcript content. Open the current web session menu through
the existing navigation path; plugin execution and worker Stop stay with web owners.

The chat header previously lacked sidebar plugin/Stop entries. Expose their existing
owners only for negotiated native hosts. A quick menu selection confirms opening
before its animation ends. Compact menu reset stays with the existing open hook.

Follow-up: Control UI durable-draft badges after reload. The current sessionStorage
projection does not enumerate IndexedDB drafts until their pane restores them
(outbox-store-projection.ts; composer-draft-store.runtime.ts; durable-composer-persistence.ts).
This deliberately preserves the web sidebar's current behavior on both surfaces.

Validation: focused web tests, native-conversation E2E, Stop ordering regressions,
UI/core/root typechecks, localization/performance tests, and P2 autoreview.
Render web-owned draft pencils and outbox attention counts for sidebar sessions.
Retire facts and actions with the trusted document, and hide More actions for older
UI documents. Reserve the clicked target before navigating to its web actions menu.
Keep keyboard focus in that menu and leave plugin/worker execution with web owners.

Align the native command waiter with the web's 15-second deadline; retain the
separate 10-second document readiness timeout. Match web slash encoding when
enforcing the snapshot byte limit, so valid snapshots do not retain stale badges. Quick Chat and iOS retain their
existing Swift ownership and behavior.

Validation: native/default app builds, macOS test compilation, focused Swift
contract/row/menu and ownership/draft/outbox/route suites, localization checks,
and P2 autoreview. Native app launch and full native tests remain with the
coordinator's isolated live-proof rig; no push or publication.
Preserve durable draft ownership, omit inactive badge rows, and memoize native action presentation without duplicating web execution. Reconcile native test waits and record the measured startup budget within the approved sub-1% allowance.
@steipete
steipete force-pushed the steipete/mac-sidebar-bridge branch from 046e75e to 3b05933 Compare October 2, 2026 03:20
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready review for 81d69b8c5ef9d077661368b0d69433b48050c5bb.

The web composer/outbox remain authoritative. Native rows receive bounded, capability-negotiated facts; More actions… uses the existing web navigation and action owners. The canonical projection preserves account/revision fences and omits inactive facts. The only conflict resolution retained main's pull-request menu wrapper. Final production delta is +464/−45; tests +619/−44. The native/shared/iOS builds and focused checks are recorded in the body.

Final-head CI: https://github.com/openclaw/openclaw/actions/runs/36961125051. The earlier iOS smoke and screenshot failures all came from one strict-lint warning; it was reproduced and fixed by splitting the badge arguments, followed by a single code-fix push. No workflow/job reruns or main-chasing refreshes were used.

The latest ClawSweeper review is on this exact head, with no actionable/security findings and no published rank-up moves. Its proof confidence is 5/6. The full independent review's three INDEX-only findings were already corrected in the committed candidate; the agent-identity finding was disproved at the canonical caller. The final formatting-only review is scoped-clean at P2.

All four PNGs were visually inspected, embedded in the body, and downloaded from their uploaded URLs: 200 image/png, with SHA-256 equal to each original. The captures are synthetic, include the documented light/dark difference, and predate the preserved mechanical rebase. Native runtime verification ran on disposable macOS CI; no browser automation or operator app was launched by this landing worker.

Local verification commands
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
node scripts/run-vitest.mjs --config ui/vitest.config.ts --project unit --project unit-mock-registry ui/src/app/native-conversation-bridge.test.ts ui/src/lib/chat/outbox-store.test.ts ui/src/lib/chat/outbox-store-projection.test.ts ui/src/pages/chat/chat-pane-session-menu.test.ts ui/src/pages/chat/components/chat-header-session-menu.test.ts ui/src/app/app-host-native-shell.test.ts ui/src/app/app-host-pairing-access.test.ts
pnpm ui:build
pnpm ui:check-performance --json
pnpm tsgo:ui
node scripts/run-vitest.mjs test/scripts/control-ui-performance.test.ts
swift build --package-path apps/macos --build-system native --product OpenClaw
swift build --package-path apps/macos --product OpenClaw
swift build --package-path apps/macos --build-system native --build-tests
swift build --package-path apps/shared/OpenClawKit --build-system native --build-tests
swift build --package-path apps/shared/OpenClawKit --build-system native --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator27.0.sdk --triple arm64-apple-ios18.0-simulator --target OpenClawChatUI
pnpm native:i18n:baseline
pnpm native:i18n:verify

Changed production Swift files were passed explicitly to swiftlint lint --strict --config config/swiftlint.yml --quiet (macOS) and swiftlint lint --strict --config apps/ios/.swiftlint.yml --quiet (shared), followed by swiftformat --lint --config config/swiftformat. Changed UI files were passed explicitly to node scripts/run-oxlint.mjs --tsconfig tsconfig.ui.json. The 64 audited shared tests ran in an OS sandbox with no operator-home, Keychain, WindowServer, network, or arbitrary-child access; macOS bridge/WebChat runtime coverage used the repository's isolated CI launcher.

Startup gzip is 372,863 B; the approved baseline/cap adjustment is 0.298%. Chat/new boot requests are 32/27 against 35. The obsolete largest-chunk ceiling increase was removed.

@steipete
steipete merged commit 35b8a1a into main Oct 2, 2026
120 of 122 checks passed
@steipete
steipete deleted the steipete/mac-sidebar-bridge branch October 2, 2026 04:15
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…bar (openclaw#163193)

* feat(ui): publish sidebar facts and open session actions for the native app

Keep conversation contract 1 and negotiate sidebar facts/actions with host features.
Forward the existing sidebar's document-bound, bounded draft/attention projection
without composer or transcript content. Open the current web session menu through
the existing navigation path; plugin execution and worker Stop stay with web owners.

The chat header previously lacked sidebar plugin/Stop entries. Expose their existing
owners only for negotiated native hosts. A quick menu selection confirms opening
before its animation ends. Compact menu reset stays with the existing open hook.

Follow-up: Control UI durable-draft badges after reload. The current sessionStorage
projection does not enumerate IndexedDB drafts until their pane restores them
(outbox-store-projection.ts; composer-draft-store.runtime.ts; durable-composer-persistence.ts).
This deliberately preserves the web sidebar's current behavior on both surfaces.

Validation: focused web tests, native-conversation E2E, Stop ordering regressions,
UI/core/root typechecks, localization/performance tests, and P2 autoreview.

* feat(macos): show web composer badges and session actions in the sidebar

Render web-owned draft pencils and outbox attention counts for sidebar sessions.
Retire facts and actions with the trusted document, and hide More actions for older
UI documents. Reserve the clicked target before navigating to its web actions menu.
Keep keyboard focus in that menu and leave plugin/worker execution with web owners.

Align the native command waiter with the web's 15-second deadline; retain the
separate 10-second document readiness timeout. Match web slash encoding when
enforcing the snapshot byte limit, so valid snapshots do not retain stale badges. Quick Chat and iOS retain their
existing Swift ownership and behavior.

Validation: native/default app builds, macOS test compilation, focused Swift
contract/row/menu and ownership/draft/outbox/route suites, localization checks,
and P2 autoreview. Native app launch and full native tests remain with the
coordinator's isolated live-proof rig; no push or publication.

* fix(macos): reconcile sidebar bridge with current UI owners

Preserve durable draft ownership, omit inactive badge rows, and memoize native action presentation without duplicating web execution. Reconcile native test waits and record the measured startup budget within the approved sub-1% allowance.

* style(macos): format sidebar badge arguments for strict lint
steipete added a commit that referenced this pull request Oct 2, 2026
* fix(ui): wait for native session actions to become ready

35b8a1a (#163193) introduced a readiness race: the native command
queries the session menu before metadata renders it. A settled route and
Lit update do not guarantee that the selected session's header exists,
so valid commands can return unavailable.

Wait for the menu within the existing command deadline and cancellation
scope, then retain the acknowledgement after the menu actually opens.
Cover delayed readiness, superseded selection, and retired documents.

* fix(ui): finish native session menu contract migration

Update the sibling popup-boundary test to pass the containing pane and
await the dropdown's Lit update. Keep all four outcomes and assertions.
Rename the observer callback bindings to avoid shadowing the resolved menu.

Fixes the type, lint, and UI unit failures introduced by eb1cdec.
Validated the UI-chat test graph, touched-file and boundary lint, 59 unit
tests across both owner files, and all six native-conversation e2e cases.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…3351)

* fix(ui): wait for native session actions to become ready

584d1b0 (openclaw#163193) introduced a readiness race: the native command
queries the session menu before metadata renders it. A settled route and
Lit update do not guarantee that the selected session's header exists,
so valid commands can return unavailable.

Wait for the menu within the existing command deadline and cancellation
scope, then retain the acknowledgement after the menu actually opens.
Cover delayed readiness, superseded selection, and retired documents.

* fix(ui): finish native session menu contract migration

Update the sibling popup-boundary test to pass the containing pane and
await the dropdown's Lit update. Keep all four outcomes and assertions.
Rename the observer callback bindings to avoid shadowing the resolved menu.

Fixes the type, lint, and UI unit failures introduced by eb1cdec.
Validated the UI-chat test graph, touched-file and boundary lint, 59 unit
tests across both owner files, and all six native-conversation e2e cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui docs Improvements or additions to documentation 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. scripts Repository scripts 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