Skip to content

feat: add contextual plugin help to Ask OpenClaw - #149330

Merged
Patrick-Erichsen merged 12 commits into
mainfrom
codex/claw-882-contextual-help
Sep 17, 2026
Merged

Patrick-Erichsen merged 12 commits into
mainfrom
codex/claw-882-contextual-help

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Plugin settings cannot open a contextual explanation in the existing Ask OpenClaw conversation; users must reconstruct the plugin and setting context themselves.

User Impact

Ask opens the existing sidebar and appends an unsent “Help me understand …” question while preserving the current conversation and draft. Sensitive values—including URL credentials in a retained failed-save draft—are redacted before truncation. Only the operator sends the question. Installed overviews may open help once per Gateway on wide screens; narrow/catalog views require an explicit action, and dismissal is respected.

Why This Change Was Made

The page publishes a bounded plugin reference with name/id and optional structural setting path/label. Configuration values stay out of context metadata. The server treats the reference as untrusted and uses the canonical owner for current authored schema. Setting callbacks retain their originating selection/Gateway; navigation, disconnect or late work cannot append an old setting to another conversation.

The existing bounded value scan uses the canonical URL redactor for values and serialized map keys before the 512-character limit, refusing a sensitive value whole as <redacted>. Its 1,000-node bound remains; benign URLs stay useful, and Settings input sensitivity/editability is unchanged. Composer sizing keeps Send reachable and notices preserve transcript layout.

This follows skill bundles and uses openclaw.chat. Direct sibling Codex inspection (codex-rs/app-server-protocol/src/protocol/v2/turn.rs:152, codex-rs/app-server/src/request_processors/turn_processor.rs:499) confirms no additional Codex protocol/session path. Production +833/−113 (net +720) owns bounded context and draft lifecycle, including the startup-owner repair. Tests/support +1,002/−124, tooling +1/−1, package/build metadata +7/−1. Pure owner moves are discounted; no runtime setting/default or persistent schema is added.

Evidence

  • 354 owner/sibling cases cover protocol sanitization, conversation/store/panel lifecycle, setting/credential controls and preview integration. Retained-menu actions, retired contexts, local-catalog identity and layout regressions fail before and pass after.
  • Failed Save→Ask→explicit Send fails before URL redaction at both widths. 55 canonical URL-policy cases, 33 store/controller cases and 6 built Ask routes pass (94 total), covering encoded/nested URLs, dictionary keys, benign values, unchanged input and the actual redacted chat payload.
  • Five existing Custodian page/route fixtures reproduce missing required router context; using the canonical context fixture passes all 145 cases across 12 files without production guards or weakened assertions. Settings-menu Escape remains owned by the preceding layer: dismiss/focus first, navigation second.
  • Integrated local validation passes 128 focused tests and the 59-step static plan, including core/core-test/UI types, full typed lint, three dead-export scans, styles and repository guards. Madge reports zero cycles. The later numeric keyboard repair passes 98 focused cases, all 7 integrated built keyboard flows, and the final changed-path gate (core-test/UI types, typed lint, formatting, i18n and all three dead-export scans). These recorded runs retain their original execution versions; current landing validation is below.

Real built Control UI with the same synthetic Workboard/stateful MockGateway at 1440px and 390px. The existing sidebar/draft are seeded through its normal toggle; the candidate uses the setting-menu action. No real Gateway, model or operator-state calls. Both widths retain the conversation/draft, show a hit-testable Send button and avoid overflow; no automatic chat request or config write occurs.

State Before After
1440px setting menu Before: 1440px setting menu After: 1440px setting menu
1440px existing draft and plugin context Before: 1440px existing draft and plugin context After: 1440px existing draft and plugin context
390px setting menu Before: 390px setting menu After: 390px setting menu
390px existing draft and plugin context Before: 390px existing draft and plugin context After: 390px existing draft and plugin context

After a rejected save, the synthetic credential-bearing URL stays editable in Settings while the generated question and explicit chat payload contain <redacted>:

Viewport Before After
1440 × 1000 Before: synthetic URL credentials in Ask draft After: Ask value redacted
390 × 1000 Before: synthetic URL credentials in Ask draft After: Ask value redacted

All public proof images were inspected and anonymously verified HTTP 200 with matching SHA-256 bytes.

Tracks CLAW-882, Cycle 3.

Punchcard-Session: crisp-summit-lantern-qk

Landing validation

Checkpoint 19c5131fa1c8c8a019df0371321ce860072f59a1 integrates current main 035227797aa635cd0d154006af0ce6caec1e6ddd while preserving the previously reviewed help commits. The only conflict combines the existing draft-owner import with main's setup-navigation import. Utility-only setup still directs regular chats to primary-model setup; contextual help still preserves drafts and requires explicit Send. The final cleanup removes one redundant local while retaining synchronous session-ID assignment followed by persistence. No help-owned runtime option, default, protocol version or persistent schema is added.

Independent source review found no actionable issue. All 47 help-path changes and all 518 inherited main-path changes were preserved before the one-local cleanup. Main's stronger Qwen elapsed-budget regression remains intact; this PR contributes no Qwen change. Wrapper inventory removes one duplicate entry while preserving the same 1,129 unique dependencies as current main.

The integration tree before the cleanup passed 73 UI owner cases, 200 core/RPC cases and six built help browser cases, plus protocol generation/check, UI types and i18n verification. Its same-toolchain standalone-help startup measured 360,126 gzip JS bytes / seven requests, below the unchanged 362,588-byte limit; CSS measured 48,355 bytes, below 51,200. Root inspected the actual desktop/mobile redacted drafts and unsent-question capture. These are the production UI with a stateful MockGateway, not live-model or production-Gateway evidence.

The final checkpoint tree passed the full canonical changed-source gate, UI types, all 73 UI owner cases, and all six built help routes. Its fresh paired build measures 360,127 gzip JS bytes / seven requests and 48,355 gzip CSS bytes, below the same limits. Root inspected the fresh desktop/mobile redacted drafts and unsent-question capture. The completed 200 core/RPC, protocol and i18n checks cover unchanged source. Exact-head hosted CI and native landing checks remain required; historical screenshots retain their recorded versions.

ClawSweeper's revision 9, reviewed at 03:41 UTC on September 17, found no remaining correctness/security issue and listed no before-merge or Rank-up action. The URL-credential finding stays resolved. Its then-current mergeability observation is superseded by this reviewed main integration. The separate install-authority repair belongs to the later UI layer; it must complete before that layer and progress land.

The immediate predecessor 369d389c4a00 completed hosted CI with 167 passed checks and nine skips. The earlier af51548ad37e CI run also completed green (167 checks passed, nine skipped) after one unchanged CUA failed-job retry. Its original 76-file shard also passed locally, and source-equivalent Linux peers passed. No code, assertion or deadline changed. Named follow-up: CUA Linux relay-exit delivery exceeds cleanup deadline; cause remains unproved. This historical control does not substitute for the new checkpoint's CI.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Sep 15, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from 46b24c5 to 29bce39 Compare September 15, 2026 18:40
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from 0bc5d78 to b312c55 Compare September 15, 2026 18:40
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 12:31 AM ET / 04:31 UTC (Revision 10).

ClawSweeper review

What this changes

Adds contextual plugin and setting help to the existing Ask OpenClaw sidebar, preserving drafts, redacting sensitive values, and attaching bounded references to explicitly submitted questions.

Merge readiness

✅ Ready for maintainer review

This remains useful work absent from current main and the latest release. No blocking introduced defect remains; the earlier URL-credential finding is resolved.

Priority: P2
Reviewed head: 19c5131fa1c8c8a019df0371321ce860072f59a1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, coherent implementation with inspected UI evidence, meaningful boundary coverage, and no remaining blocking finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected built-UI desktop before/after images show the setting action preserving the existing conversation and appending an unsent question; supplied browser-run results cover explicit submission and redacted payloads through the stateful MockGateway. Historical images retain their original versions, and no live-model proof is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected built-UI desktop before/after images show the setting action preserving the existing conversation and appending an unsent question; supplied browser-run results cover explicit submission and redacted payloads through the stateful MockGateway. Historical images retain their original versions, and no live-model proof is claimed.
Evidence reviewed 9 items Feature still absent from current main: Current main contains the editor’s optional Ask callback but no plugin-help owner or plugin-reference wiring; its chat context schema still carries only the page hint.
Latest-release comparison: The supplied latest release, v2026.9.4, also has page-only chat context, without the proposed plugin reference.
Draft ownership and stale callbacks: Help requests capture Gateway scope and selection generation, recheck after lazy loading, and append an unsent draft. The existing conversation store retains responsibility for admission and sending.
Findings None None.
Security None None.

How this fits together

Plugin pages supply setting references and prepared questions to OpenClaw’s existing setup-and-repair conversation. Explicit submission passes through Gateway sanitization, and the assistant uses existing plugin discovery and configuration-schema operations.

flowchart LR
  A[Plugin page or setting] --> B[Bound reference and redact value]
  B --> C[Existing conversation draft]
  C --> D[Operator sends question]
  D --> E[Gateway sanitizes context]
  E --> F[Assistant reads plugin schema]
  F --> C
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +720, Tests +878, Config +6, Other 0. Total +1604 across 47 files.

View PR surface stats
Area Files Added Removed Net
Source 29 833 113 +720
Tests 14 1002 124 +878
Docs 0 0 0 0
Config 2 7 1 +6
Generated 0 0 0 0
Other 2 1 1 0
Total 47 1843 239 +1604

Review metrics

Metric Value Why it matters
Production and test growth Production net +720 lines; tests/support net +878 lines The stated growth supplies bounded context and draft lifecycle ownership while preserving existing conversation and configuration contracts.
Model-facing bounds 1,024-character reference; 512-character value preview; 2,000-character read body Context metadata and plugin read output have explicit limits, with sensitive-value checks preceding preview truncation.

Technical review

Best possible solution:

Keep contextual help within the existing conversation and schema owners, with redacted drafts, bounded ephemeral references, and explicit operator submission.

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

Not applicable to the feature request; current-main inspection confirms the missing contextual wiring, and supplied built-UI evidence demonstrates the added flow.

Is this the best way to solve the issue?

Yes. Extending the existing Ask conversation and active schema reader avoids competing conversation, configuration, or authorization owners.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Contextual plugin help is a bounded usability improvement without evidence of an urgent broken workflow.
  • 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 built-UI desktop before/after images show the setting action preserving the existing conversation and appending an unsent question; supplied browser-run results cover explicit submission and redacted payloads through the stateful MockGateway. Historical images retain their original versions, and no live-model proof is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected built-UI desktop before/after images show the setting action preserving the existing conversation and appending an unsent question; supplied browser-run results cover explicit submission and redacted payloads through the stateful MockGateway. Historical images retain their original versions, and no live-model proof is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected built-UI desktop before/after images show the setting action preserving the existing conversation and appending an unsent question; supplied browser-run results cover explicit submission and redacted payloads through the stateful MockGateway. Historical images retain their original versions, and no live-model proof is claimed.

Evidence

What I checked:

  • Feature still absent from current main: Current main contains the editor’s optional Ask callback but no plugin-help owner or plugin-reference wiring; its chat context schema still carries only the page hint. (ui/src/pages/plugins/settings-editor.ts:72, 4018b125e924)
  • Latest-release comparison: The supplied latest release, v2026.9.4, also has page-only chat context, without the proposed plugin reference. (packages/gateway-protocol/src/schema/openclaw.ts:38, 3a9d69db306c)
  • Draft ownership and stale callbacks: Help requests capture Gateway scope and selection generation, recheck after lazy loading, and append an unsent draft. The existing conversation store retains responsibility for admission and sending. (ui/src/pages/custodian/plugin-help.ts:89, 19c5131fa1c8)
  • Earlier credential finding resolved: The value formatter checks nested values and serialized dictionary keys with the canonical URL redactor before truncation. The built-browser regression exercises rejected Save → Ask → explicit Send, checks the outgoing message for credential absence, and verifies the editable setting remains unchanged. (ui/src/e2e/plugins-help.e2e.test.ts:36, 19c5131fa1c8)
  • Inspected visual proof and execution scope: Inspected all four prepared desktop images: the setting menu gains Ask OpenClaw, and the existing conversation and draft remain alongside the appended unsent setting question. The captured body reports six built help routes passing with a stateful MockGateway at the reviewed checkpoint. Mobile and URL-redaction images were outside the prepared four-image manifest and were not independently viewed; no live Gateway or model result is claimed. (19c5131fa1c8)
  • Security and implementation boundary: The sanitizer accepts only bounded reference fields, excludes configuration values, and drops delegated UI context. The router treats the reference as untrusted input after approval classification; existing authorization and mutation owners remain unchanged. The schema read reuses current plugin metadata rather than introducing another schema owner or Codex protocol path. (src/system-agent/chat-turn-router.ts:363, 19c5131fa1c8)

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-17T00:19:48.114Z sha 54f5cb9d45cec695ee08cb2a261781208f63eaac :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T00:45:26.925Z sha 7edb9c86695850a0bcb5be30c96042b5a240a683 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T01:22:37.579Z sha a46380e46eb3d4b71c6013f06b81916e8e9cc350 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T01:57:45.927Z sha 81515be314cf441dc7632ec1fa7eb09cc706b3a9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T02:24:23.094Z sha 2283f5dad1e4436dc1b90aefedbf81197d628243 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T03:06:19.507Z sha af51548 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T03:24:05.978Z sha af51548 :: blocked before merge. :: none
  • reviewed 2026-09-17T03:41:47.201Z sha 369d389 :: needs maintainer review before merge. :: none

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from 29bce39 to f4dc0eb Compare September 15, 2026 20:03
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from b312c55 to 16ef821 Compare September 15, 2026 20:03
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Addressed the URL-credential finding and Rank-up move. Setting-help context now applies the canonical URL redactor recursively to strings and dictionary keys before display truncation, and withholds a sensitive setting value as a whole. A retained failed-save draft cannot copy its embedded URL credentials into the generated question.

The actual failed Save → setting menu → Ask → explicit Send regression fails before the repair and passes afterward. The 94 owner/store/built cases cover retained drafts, bounded context, no automatic submission, and no extra configuration writes. Desktop before → after; phone before → after. Published head 16ef8213071d also removes the type-only editor/help import cycles and uses the complete Custodian test context. Integrated static gates pass; new hosted checks remain pending.

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from f4dc0eb to 25f46bd Compare September 15, 2026 20:33
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from 16ef821 to dbe8b7d Compare September 15, 2026 20:33
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from 25f46bd to 1b719d5 Compare September 15, 2026 21:04
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from dbe8b7d to 97228e2 Compare September 15, 2026 21:04
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from 1b719d5 to 267d34c Compare September 15, 2026 21:24
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from 97228e2 to f6664fb Compare September 15, 2026 21:24
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-881-skill-files branch from 267d34c to f6241d3 Compare September 15, 2026 21:39
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from f6664fb to 798b4b7 Compare September 15, 2026 21:39
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 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:

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from 7edb9c8 to a46380e Compare September 17, 2026 01:15
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head a46380e46eb3d4b71c6013f06b81916e8e9cc350 preserves all 45 previously reviewed feature files after refreshing onto main. It adds three required existing source modules to the canonical PR-wrapper inventory and updates one skill-read test hook to the current fs-safe contract. Original owner/sibling proof now passes 225 tests with two skips for the wrapper and 51 tests for skill/package/playback reads; assertions, lock authority and application behavior are unchanged. The complete updated stack passes 20 built-browser cases and the unchanged startup budget. Current-head CI is running; no merge has been attempted.

@clawsweeper

clawsweeper Bot commented Sep 17, 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:

@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch 3 times, most recently from 93aebe0 to 2283f5d Compare September 17, 2026 02:11
Punchcard-Session: crisp-summit-lantern-qk
Reuse the canonical URL policy in the bounded help-value scan, including
serialized map keys. Keep the editable config value intact and prove
rejected Save → Ask → Send on desktop and phone.

Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Accept only the loaded selection facts consumed by the help controller, removing its type dependency on the complete page renderer model.

Punchcard-Session: crisp-summit-lantern-qk
Separate synchronous dock state and session ownership from lazy question preparation and session persistence helpers. Register plugin-only English copy with its lazy consumers while preserving source catalog order.

Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
Punchcard-Session: crisp-summit-lantern-qk
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-882-contextual-help branch from 2283f5d to af51548 Compare September 17, 2026 02:57
Preserve the new utility-only setup navigation alongside plugin-specific drafts and bounded help context. Resolve the shared navigation import and remove a redundant session-id local to keep the combined store within its line cap.
@Patrick-Erichsen
Patrick-Erichsen merged commit b34f48c into main Sep 17, 2026
231 of 233 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-882-contextual-help branch September 17, 2026 05:00
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
* feat: add contextual plugin help to Ask OpenClaw

Punchcard-Session: crisp-summit-lantern-qk

* fix(ui): redact URL credentials from plugin Ask drafts

Reuse the canonical URL policy in the bounded help-value scan, including
serialized map keys. Keep the editable config value intact and prove
rejected Save → Ask → Send on desktop and phone.

Punchcard-Session: crisp-summit-lantern-qk

* test: reuse the complete Custodian context fixture

Punchcard-Session: crisp-summit-lantern-qk

* refactor(ui): narrow plugin help selection input

Accept only the loaded selection facts consumed by the help controller, removing its type dependency on the complete page renderer model.

Punchcard-Session: crisp-summit-lantern-qk

* perf(ui): keep plugin help preparation off startup

Separate synchronous dock state and session ownership from lazy question preparation and session persistence helpers. Register plugin-only English copy with its lazy consumers while preserving source catalog order.

Punchcard-Session: crisp-summit-lantern-qk

* style: normalize contextual help rebase spacing

Punchcard-Session: crisp-summit-lantern-qk

* perf(ui): keep attachment media preparation off startup

Punchcard-Session: crisp-summit-lantern-qk

* test(qwen): fix the clock for default timeout assertions

Punchcard-Session: crisp-summit-lantern-qk

* test(ui): wait for side-chat opening focus

Punchcard-Session: crisp-summit-lantern-qk

* chore(pr): deduplicate wrapper dependency inventory

Punchcard-Session: crisp-summit-lantern-qk

* test(qwen): drop superseded default-clock workaround
steipete added a commit that referenced this pull request Oct 13, 2026
Share route decoding, attachment retention, gallery preparation, transient
identity encoding, override copying, and extension classification. Remove
duplicate admission/schema mirrors and obsolete supported-browser fallbacks.
Both Lit and Solid paths remain; no rendering change is intended. No config,
protocol, persisted shape, dependency, or public SDK change.

Best-effort tradeoffs accepted

- Malformed internal native requests (#140988): all callers are typed and
  native hosts validate at the effect; their error replaces the renderer mirror.
- Worker replacement during an identity query (#140484): added for synthetic
  autoreview interleavings, not a human incident. Return false; normal worker
  announcements and foreground recovery observe the next active worker.
- Native readiness changing between synchronous checks (#140484/#109719):
  rely on queued events. A broken native event can require another worker event
  or reload; camera readiness retains its existing five-second error deadline.
- Overlapping application-root health reporters (#152638): startup mounts one
  root. Unsupported overlapping roots are last-publication-wins; the actual
  reported health/status feature and native trusted-document checks remain.
- Polling after stop (#139704): its sole owner retires eligibility first.
  Scheduling now uses that owner admission, not a separate read-only generation.
- Resetting an observer without retiring its connection (#116887): no production
  caller does this. Canonical connection epochs remain the sole retirement owner;
  unsupported direct live-scope reset no longer fences an old response separately.
- Upload policy changing during local reads (#158567): decoded/hash work can
  finish. Draft publication and every upload request retain live policy checks.
- Missing supported browser primitives (#105240/#151388/#100024/#102745):
  unsupported runtimes error instead of code-point initials, skipped input yield,
  wall-clock timing, or approximate microtask paint. The human progress-card fix
  in #151386 keeps its browser yield and durable FIFO handoff unchanged.
- URL APIs disappearing after URL creation (#100024/#149330): supported browsers
  keep paired APIs. An unsupported replaced global can throw during cleanup;
  undefined URLs, creation fallback, cancellation and release ordering remain.
- Malformed internal MCP calls bypassing AppBridge (#161747): may throw. The SDK
  still rejects malformed wire blocks before dispatch, proved over real in-memory
  App/AppBridge transport. UI content, authority, confirmation and custody policy
  remain. The introducing PR cites no human incident for the second mirror.

Production: +176/-394, net -218 lines across 21 eligible old files. Tests: +30.
Focused owner/sibling tests, targeted types/lint/format, lint-suppression and
independent P0-P2 review pass. Import edges are unchanged; runtime/Madge cycle
proof remains zero. Whole-tree Knip timed out at existing limits; heavy gallery
renderer runs did not reach assertions, while its owning controller suite passed.
steipete added a commit that referenced this pull request Oct 13, 2026
* refactor(apple): simplify old shared and macOS bookkeeping

Replace redundant generations with existing cancellation or actual owner
identity, consolidate parallel fallback/policy paths, and remove test-only
forwarding layers. Preserve authority, FIFO, durable state, resource bounds,
public protocol/config shapes, signing, permissions, and visible rendering.

Reuse canonical session-key normalization for Voice Wake delivery selection:
opaque Signal group IDs remain case-sensitive and main aliases are not added.
Use canonical IP-literal policy for discovery labels and remote CLI validation.

Best-effort tradeoffs accepted

- Palette generation (#159350): synthetic direct completions bypassed the sole cancellation-owning caller; unsupported future callers can show stale results until the next search. Current cancellation/request/agent checks remain.
- Link preview generation (#160710): synthetic URL replacement without caller cancellation is outside the SwiftUI task lifecycle; a late cosmetic result can remain until the next refresh. Network/SSRF checks and bounded caches remain.
- Sidebar preview generation (#147197): same-request overlapping cache reads can finish out of order; no linked human failure report, and a later refresh replaces the cosmetic projection. Owner/request checks remain.
- Source-preview producer revision (#148906): duplicate of exact task cancellation, with no human failure report. Consumer revision and authenticated resource authority remain.
- Mermaid generations (#135470/#135746): feature stress fixtures, no linked human race report. Exact subscriber cancellation and job/WebView identity retain the same admission; no extra failure accepted.
- Camera JPEG UUID (#107879): duplicates exact task cancellation; #107804 was a human feature request, not a generation-specific incident. Captured session/agent/route and attachment admission remain.
- Discovery generation (#145435): speculative queued callbacks, no linked human incident. A stopped browser may publish one late discovery projection; next discovery/refresh repairs it. Connection authority remains separate.
- FSEvents generation (#145453): synthetic stop/restart fixtures, no linked human incident. An old callback after restart may cause one extra refresh; serial lifecycle ownership and pending-work cancellation remain.
- Menu generations (#139688): feature-local late-result fixtures, no linked human incident. Exact task cancellation replaces duplicate tokens; drain-before-disconnect and real consumer/window authority remain.
- Cron generation (#131466/#137502): #138209 cut every load over to one cancel-and-drain chain. No direct concurrent load caller remains; cancellation and physical source leases stay checked after awaits.
- WebChat visibility acknowledgement/retry (#113634/#137089): synthetic timeout/reconnect interleavings, no linked human incident. A timed-out visibility update is best effort until the next transition/reconnect; FIFO and live socket leases remain.
- WebChat cleanup UUID (#113634/#137089): retain one bounded completed Task handle per live connection instead of matching cleanup tokens. Completion releases captures; replacement/retirement removes the handle.
- Child-exit polling (#145437): synthetic missed-notification coverage, no linked human report. A lost OS exit notification may wait for the existing deadline; final non-reaping liveness/status checks and cleanup remain.
- Realtime iterator borrowing trap (#156772): every real consumer awaits its own iterator sequentially. Unsupported concurrent next calls no longer get a custom custody protocol; bounded stream/cancellation/socket checks remain.
- Receipt projection admission (#161745): both real callers already match receipt and row identity immediately before synchronous projection. Those effect checks remain; no unsupported internal caller is defended twice.
- Recap attribution heuristics (#112188/#113084): synthetic guard matrix, no linked human race report. Missing initial rows or very late unrelated completion may supply a cosmetic footer; per-session freshness, failed-turn handling and settled results remain.
- PortGuardian per-write schema scans (#110527): synthetic live-handle version advance, no linked human incident. Concurrent external schema upgrades are best effort until reopen; initial admission, migration locks, receipts, transactions and durability remain.
- Unread queue counter (#110019): actual Task equality replaces the duplicate integer token. Exact-tail reclamation, bounded bookkeeping, FIFO and route authority remain unchanged.

Review dispositions: the claimed Task compilation failure is disproved by the
selected SDK's Equatable conformance and native builds. Repeated receipt
identity admission is unnecessary at its internal projector because both real
callers retain it immediately before projection. Per-write schema revalidation
was declined under the explicit best-effort policy above.

Proof and scope

Net production reduction: 369 lines (148 added, 517 deleted), excluding tests.
Fresh seven-day census permits all substantive production edits; the only
recent caller change is the unavoidable one-line fallback-to-parse rename.

Shared Swift build passed. Final focused shared tests passed 396 cases in six
suites (6.683s execution), Watch decoder tests passed five cases (0.003s), and
isolated whole-owner native tests passed 16 cases. macOS SwiftPM compiled all
products and the test bundle. Final macOS and iOS/Watch xcodebuild builds passed
(89.60s and 120.87s wall), without signing changes or app launches.

Canonical Apple lint/format checks passed; the initial iOS format failure in
WatchCommands was ours and corrected, with no gate weakened. Lint-suppression
tests passed 3/3 (14.09s wall). Earlier runtime cycles and Madge each reported 0;
the TypeScript graph is unchanged. Native localization stayed at 4476 entries.
The 45 original packaging/elevation timeout cases passed one focused retry
(94.79s wall), with no assertion/budget change and no claim of a diagnosed fix.

Known gaps: seven issues remained in the earlier ChatStreamReplayTests
narration=false package cases; causality/current-main attribution is unproven.
App-hosted macOS tests were not executed on the operator desktop. No hosted CI
or PR was started: the explicit BELOW-500 rule requires a branch-only handoff.

* refactor(ui): consolidate old UI owners and validation

Share route decoding, attachment retention, gallery preparation, transient
identity encoding, override copying, and extension classification. Remove
duplicate admission/schema mirrors and obsolete supported-browser fallbacks.
Both Lit and Solid paths remain; no rendering change is intended. No config,
protocol, persisted shape, dependency, or public SDK change.

Best-effort tradeoffs accepted

- Malformed internal native requests (#140988): all callers are typed and
  native hosts validate at the effect; their error replaces the renderer mirror.
- Worker replacement during an identity query (#140484): added for synthetic
  autoreview interleavings, not a human incident. Return false; normal worker
  announcements and foreground recovery observe the next active worker.
- Native readiness changing between synchronous checks (#140484/#109719):
  rely on queued events. A broken native event can require another worker event
  or reload; camera readiness retains its existing five-second error deadline.
- Overlapping application-root health reporters (#152638): startup mounts one
  root. Unsupported overlapping roots are last-publication-wins; the actual
  reported health/status feature and native trusted-document checks remain.
- Polling after stop (#139704): its sole owner retires eligibility first.
  Scheduling now uses that owner admission, not a separate read-only generation.
- Resetting an observer without retiring its connection (#116887): no production
  caller does this. Canonical connection epochs remain the sole retirement owner;
  unsupported direct live-scope reset no longer fences an old response separately.
- Upload policy changing during local reads (#158567): decoded/hash work can
  finish. Draft publication and every upload request retain live policy checks.
- Missing supported browser primitives (#105240/#151388/#100024/#102745):
  unsupported runtimes error instead of code-point initials, skipped input yield,
  wall-clock timing, or approximate microtask paint. The human progress-card fix
  in #151386 keeps its browser yield and durable FIFO handoff unchanged.
- URL APIs disappearing after URL creation (#100024/#149330): supported browsers
  keep paired APIs. An unsupported replaced global can throw during cleanup;
  undefined URLs, creation fallback, cancellation and release ordering remain.
- Malformed internal MCP calls bypassing AppBridge (#161747): may throw. The SDK
  still rejects malformed wire blocks before dispatch, proved over real in-memory
  App/AppBridge transport. UI content, authority, confirmation and custody policy
  remain. The introducing PR cites no human incident for the second mirror.

Production: +176/-394, net -218 lines across 21 eligible old files. Tests: +30.
Focused owner/sibling tests, targeted types/lint/format, lint-suppression and
independent P0-P2 review pass. Import edges are unchanged; runtime/Madge cycle
proof remains zero. Whole-tree Knip timed out at existing limits; heavy gallery
renderer runs did not reach assertions, while its owning controller suite passed.

* refactor(ui): remove obsolete Fetch capability branch

The supported Control UI browser floor includes Fetch. Start attachment
metadata reads directly rather than leaving an unsupported runtime in a
permanent checking state.

Best-effort tradeoffs accepted

- Missing global Fetch: the guard originated in #64104, whose feature report
  cites no human missing-Fetch incident. An unsupported runtime that replaces
  Fetch now reaches the existing rejected-request/unavailable path. Metadata
  validation, auth/tickets, allow POST, cancellation, resource admission,
  expiry and bounded retry remain unchanged. No intended rendering change.

Unchanged lifecycle baseline: 21/21, 25.09 s. Final lifecycle and attachment
siblings: 50/50, 14.77 s. UI types, typed lint, formatting and lint-suppression
checks pass. This cut removes five production lines including formatter
reflow, bringing the lane to 223 net production lines removed.
Fresh independent P0-P2 review is scoped-clean with no actionable findings.

* fix(ui): use global frame scheduling APIs

Preserve double-frame paint timing and cancellation without requiring a Window object in renderer-free hosts that supply the standard global APIs. The existing access suite reproduces seven unhandled errors before this fix and passes on main; all 130 affected cases plus 262 timing/state/send sibling cases now pass without test changes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…#170823)

* refactor(apple): simplify old shared and macOS bookkeeping

Replace redundant generations with existing cancellation or actual owner
identity, consolidate parallel fallback/policy paths, and remove test-only
forwarding layers. Preserve authority, FIFO, durable state, resource bounds,
public protocol/config shapes, signing, permissions, and visible rendering.

Reuse canonical session-key normalization for Voice Wake delivery selection:
opaque Signal group IDs remain case-sensitive and main aliases are not added.
Use canonical IP-literal policy for discovery labels and remote CLI validation.

Best-effort tradeoffs accepted

- Palette generation (openclaw#159350): synthetic direct completions bypassed the sole cancellation-owning caller; unsupported future callers can show stale results until the next search. Current cancellation/request/agent checks remain.
- Link preview generation (openclaw#160710): synthetic URL replacement without caller cancellation is outside the SwiftUI task lifecycle; a late cosmetic result can remain until the next refresh. Network/SSRF checks and bounded caches remain.
- Sidebar preview generation (openclaw#147197): same-request overlapping cache reads can finish out of order; no linked human failure report, and a later refresh replaces the cosmetic projection. Owner/request checks remain.
- Source-preview producer revision (openclaw#148906): duplicate of exact task cancellation, with no human failure report. Consumer revision and authenticated resource authority remain.
- Mermaid generations (openclaw#135470/openclaw#135746): feature stress fixtures, no linked human race report. Exact subscriber cancellation and job/WebView identity retain the same admission; no extra failure accepted.
- Camera JPEG UUID (openclaw#107879): duplicates exact task cancellation; openclaw#107804 was a human feature request, not a generation-specific incident. Captured session/agent/route and attachment admission remain.
- Discovery generation (openclaw#145435): speculative queued callbacks, no linked human incident. A stopped browser may publish one late discovery projection; next discovery/refresh repairs it. Connection authority remains separate.
- FSEvents generation (openclaw#145453): synthetic stop/restart fixtures, no linked human incident. An old callback after restart may cause one extra refresh; serial lifecycle ownership and pending-work cancellation remain.
- Menu generations (openclaw#139688): feature-local late-result fixtures, no linked human incident. Exact task cancellation replaces duplicate tokens; drain-before-disconnect and real consumer/window authority remain.
- Cron generation (openclaw#131466/openclaw#137502): openclaw#138209 cut every load over to one cancel-and-drain chain. No direct concurrent load caller remains; cancellation and physical source leases stay checked after awaits.
- WebChat visibility acknowledgement/retry (openclaw#113634/openclaw#137089): synthetic timeout/reconnect interleavings, no linked human incident. A timed-out visibility update is best effort until the next transition/reconnect; FIFO and live socket leases remain.
- WebChat cleanup UUID (openclaw#113634/openclaw#137089): retain one bounded completed Task handle per live connection instead of matching cleanup tokens. Completion releases captures; replacement/retirement removes the handle.
- Child-exit polling (openclaw#145437): synthetic missed-notification coverage, no linked human report. A lost OS exit notification may wait for the existing deadline; final non-reaping liveness/status checks and cleanup remain.
- Realtime iterator borrowing trap (openclaw#156772): every real consumer awaits its own iterator sequentially. Unsupported concurrent next calls no longer get a custom custody protocol; bounded stream/cancellation/socket checks remain.
- Receipt projection admission (openclaw#161745): both real callers already match receipt and row identity immediately before synchronous projection. Those effect checks remain; no unsupported internal caller is defended twice.
- Recap attribution heuristics (openclaw#112188/openclaw#113084): synthetic guard matrix, no linked human race report. Missing initial rows or very late unrelated completion may supply a cosmetic footer; per-session freshness, failed-turn handling and settled results remain.
- PortGuardian per-write schema scans (openclaw#110527): synthetic live-handle version advance, no linked human incident. Concurrent external schema upgrades are best effort until reopen; initial admission, migration locks, receipts, transactions and durability remain.
- Unread queue counter (openclaw#110019): actual Task equality replaces the duplicate integer token. Exact-tail reclamation, bounded bookkeeping, FIFO and route authority remain unchanged.

Review dispositions: the claimed Task compilation failure is disproved by the
selected SDK's Equatable conformance and native builds. Repeated receipt
identity admission is unnecessary at its internal projector because both real
callers retain it immediately before projection. Per-write schema revalidation
was declined under the explicit best-effort policy above.

Proof and scope

Net production reduction: 369 lines (148 added, 517 deleted), excluding tests.
Fresh seven-day census permits all substantive production edits; the only
recent caller change is the unavoidable one-line fallback-to-parse rename.

Shared Swift build passed. Final focused shared tests passed 396 cases in six
suites (6.683s execution), Watch decoder tests passed five cases (0.003s), and
isolated whole-owner native tests passed 16 cases. macOS SwiftPM compiled all
products and the test bundle. Final macOS and iOS/Watch xcodebuild builds passed
(89.60s and 120.87s wall), without signing changes or app launches.

Canonical Apple lint/format checks passed; the initial iOS format failure in
WatchCommands was ours and corrected, with no gate weakened. Lint-suppression
tests passed 3/3 (14.09s wall). Earlier runtime cycles and Madge each reported 0;
the TypeScript graph is unchanged. Native localization stayed at 4476 entries.
The 45 original packaging/elevation timeout cases passed one focused retry
(94.79s wall), with no assertion/budget change and no claim of a diagnosed fix.

Known gaps: seven issues remained in the earlier ChatStreamReplayTests
narration=false package cases; causality/current-main attribution is unproven.
App-hosted macOS tests were not executed on the operator desktop. No hosted CI
or PR was started: the explicit BELOW-500 rule requires a branch-only handoff.

* refactor(ui): consolidate old UI owners and validation

Share route decoding, attachment retention, gallery preparation, transient
identity encoding, override copying, and extension classification. Remove
duplicate admission/schema mirrors and obsolete supported-browser fallbacks.
Both Lit and Solid paths remain; no rendering change is intended. No config,
protocol, persisted shape, dependency, or public SDK change.

Best-effort tradeoffs accepted

- Malformed internal native requests (openclaw#140988): all callers are typed and
  native hosts validate at the effect; their error replaces the renderer mirror.
- Worker replacement during an identity query (openclaw#140484): added for synthetic
  autoreview interleavings, not a human incident. Return false; normal worker
  announcements and foreground recovery observe the next active worker.
- Native readiness changing between synchronous checks (openclaw#140484/openclaw#109719):
  rely on queued events. A broken native event can require another worker event
  or reload; camera readiness retains its existing five-second error deadline.
- Overlapping application-root health reporters (openclaw#152638): startup mounts one
  root. Unsupported overlapping roots are last-publication-wins; the actual
  reported health/status feature and native trusted-document checks remain.
- Polling after stop (openclaw#139704): its sole owner retires eligibility first.
  Scheduling now uses that owner admission, not a separate read-only generation.
- Resetting an observer without retiring its connection (openclaw#116887): no production
  caller does this. Canonical connection epochs remain the sole retirement owner;
  unsupported direct live-scope reset no longer fences an old response separately.
- Upload policy changing during local reads (openclaw#158567): decoded/hash work can
  finish. Draft publication and every upload request retain live policy checks.
- Missing supported browser primitives (openclaw#105240/openclaw#151388/openclaw#100024/openclaw#102745):
  unsupported runtimes error instead of code-point initials, skipped input yield,
  wall-clock timing, or approximate microtask paint. The human progress-card fix
  in openclaw#151386 keeps its browser yield and durable FIFO handoff unchanged.
- URL APIs disappearing after URL creation (openclaw#100024/openclaw#149330): supported browsers
  keep paired APIs. An unsupported replaced global can throw during cleanup;
  undefined URLs, creation fallback, cancellation and release ordering remain.
- Malformed internal MCP calls bypassing AppBridge (openclaw#161747): may throw. The SDK
  still rejects malformed wire blocks before dispatch, proved over real in-memory
  App/AppBridge transport. UI content, authority, confirmation and custody policy
  remain. The introducing PR cites no human incident for the second mirror.

Production: +176/-394, net -218 lines across 21 eligible old files. Tests: +30.
Focused owner/sibling tests, targeted types/lint/format, lint-suppression and
independent P0-P2 review pass. Import edges are unchanged; runtime/Madge cycle
proof remains zero. Whole-tree Knip timed out at existing limits; heavy gallery
renderer runs did not reach assertions, while its owning controller suite passed.

* refactor(ui): remove obsolete Fetch capability branch

The supported Control UI browser floor includes Fetch. Start attachment
metadata reads directly rather than leaving an unsupported runtime in a
permanent checking state.

Best-effort tradeoffs accepted

- Missing global Fetch: the guard originated in openclaw#64104, whose feature report
  cites no human missing-Fetch incident. An unsupported runtime that replaces
  Fetch now reaches the existing rejected-request/unavailable path. Metadata
  validation, auth/tickets, allow POST, cancellation, resource admission,
  expiry and bounded retry remain unchanged. No intended rendering change.

Unchanged lifecycle baseline: 21/21, 25.09 s. Final lifecycle and attachment
siblings: 50/50, 14.77 s. UI types, typed lint, formatting and lint-suppression
checks pass. This cut removes five production lines including formatter
reflow, bringing the lane to 223 net production lines removed.
Fresh independent P0-P2 review is scoped-clean with no actionable findings.

* fix(ui): use global frame scheduling APIs

Preserve double-frame paint timing and cancellation without requiring a Window object in renderer-free hosts that supply the standard global APIs. The existing access suite reproduces seven unhandled errors before this fix and passes on main; all 130 affected cases plus 262 timing/state/send sibling cases now pass without test changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR 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