Skip to content

feat(ui): group advanced settings by messaging channel - #130591

Merged
steipete merged 2 commits into
mainfrom
codex/group-channel-settings
Aug 27, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/group-channel-settings

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where operators opening Advanced → Communication → Channels must scroll through every channel's settings in one long form.

Why This Change Was Made

Add a labeled channel picker driven by the Gateway's config schema and UI hints, including custom channel plugins. Shared channel defaults and model overrides are grouped under Other. Both tabs and accordion layouts use the same grouping.

The existing form renderer receives only the selected group's schema while keeping original config values and patch paths. Switching groups never writes configuration. The existing kernel-owned channel-key classifier moves into a lightweight shared module so schema hints, redaction, and the browser use one definition; no plugin IDs are hardcoded. Raw mode remains unchanged.

User Impact

Operators can focus on one messaging channel at a time and find shared settings under Other. No config keys, defaults, migration, Gateway protocol, or plugin contracts change.

Release note: Control UI channel configuration now groups settings by messaging channel, with shared defaults and model overrides under Other.

Evidence

  • 241 focused tests passed across config view/form/navigation, schema generation, and system-agent redaction. New browser regressions cover both layouts, custom plugin schemas, shared fields, raw mode, and original patch paths; both fail against the original view.
  • Chromium: all 74 config-view and form tests passed. Initial CI exposed that native label association requires a connected fixture; the test now mounts and cleans up its container, with no production change.
  • UI typecheck, focused lint/format checks, assertion-safety guard, and i18n checks passed.
  • Chrome interaction proof used the actual Control UI with a local mock Gateway and synthetic fixture data. Verified channel selection and Other; this is browser behavior proof, not an authenticated live Gateway or channel-provider test. No provider or Gateway behavior changes.
  • Independent Codex autoreview completed without actionable findings.
  • Production delta: +75 lines; tests: +108; docs: +1. Growth implements the new picker and schema projection; the classifier is moved, not duplicated.

Before — every channel in one form:

Before: all channel settings in one long form

After — Telegram settings only:

After: Telegram selected

After — shared settings under Other:

After: shared defaults and model overrides

@steipete steipete self-assigned this Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 02:07
@steipete
steipete merged commit 31b26d0 into main Aug 27, 2026
205 checks passed
@steipete
steipete deleted the codex/group-channel-settings branch August 27, 2026 02:40
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. 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 Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 26, 2026, 10:28 PM ET / August 27, 2026, 02:28 UTC.

ClawSweeper review

What this changes

The PR adds a channel picker to Advanced settings that shows one schema-defined messaging channel at a time and places shared channel defaults and model overrides under Other.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: the schema projection removes the existing permissive path for dynamically keyed channel configuration, so an installed channel without a published schema becomes inaccessible in the form editor.

Priority: P1
Reviewed head: bf329706995df194f213d5df22a24b4ec65edd01

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The picker implementation is focused and documented, but it has a concrete compatibility regression for dynamic channel configuration.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the submitted screenshots are supplementary and were not used to clear the compatibility finding.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the submitted screenshots are supplementary and were not used to clear the compatibility finding.
Evidence reviewed 6 items Current main keeps custom channel keys permissive: The public configuration schema explicitly retains channels.additionalProperties = true, preserving dynamically keyed plugin configuration even when no typed schema property exists.
The patch prevents rendering that dynamic map: The projected Channels schema replaces its permissive additional-properties policy with false, omitting all unselected and dynamically keyed channel namespaces.
The picker has no group for untyped existing keys: Groups are enumerated only from schema.properties; a configured channel accepted only through additionalProperties cannot appear in the picker.
Findings 1 actionable finding [P1] Preserve dynamically keyed channel configuration
Security None None.

Live Verification

Entry: /settings/advanced?section=channels

Result: PASS (completed)

Steps:

  • PASS goto /settings/advanced?section=channels
  • PASS wait_for select.settings-select
  • PASS expect_text Channel settings

How this fits together

The Gateway supplies a configuration schema and UI hints to the Control UI, which renders editable form fields and sends patches back using original configuration paths. The change introduces navigation-time filtering of the Channels schema before that form renderer runs.

flowchart LR
  A[Gateway channel metadata] --> B[Configuration schema]
  B --> C[Control UI channel picker]
  C --> D[Filtered Channels schema]
  D --> E[Configuration form]
  E --> F[Configuration patch]
  F --> G[Gateway saved config]
Loading

Before merge

  • Preserve dynamically keyed channel configuration (P1) - channels is deliberately permissive on current main so a channel plugin can retain configuration without a typed schema property. This projection makes it closed, while the picker enumerates only schema properties, so those existing channel namespaces disappear from Form mode. Keep an editable dynamic route (and cover a configured schema-less channel) instead of forcing operators into raw JSON.
  • Resolve merge risk (P1) - Merging as written hides previously editable dynamically keyed channel configuration from the form editor, affecting existing custom or schema-less channel setups.
  • Complete next step (P2) - The concrete fix belongs on this maintainer-labeled PR; no separate repair job is appropriate.

Findings

  • [P1] Preserve dynamically keyed channel configuration — ui/src/pages/config/view.ts:205-211
Agent review details

Security

None.

PR surface

Source +75, Tests +108, Docs +1. Total +184 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 6 87 12 +75
Tests 1 108 0 +108
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 196 12 +184

Review metrics

Metric Value Why it matters
Production versus test delta production +75/-12, tests +108/-0, docs +1/-0 The feature's production growth is focused on picker and schema projection behavior; the compatibility regression is in that projection rather than an unjustified size increase.

Merge-risk options

Maintainer options:

  1. Preserve dynamic channel configuration (recommended)
    Retain a visible form-editor path for configured channel namespaces that are accepted through the permissive Channels schema but lack a typed property.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Restore an editable visible path for dynamically keyed channel configuration and add a regression test for a configured schema-less channel.

Technical review

Best possible solution:

Keep schema-defined channel groups, while retaining a visible editable route for channel keys accepted through the existing permissive Channels schema, with regression coverage for a configured schema-less channel.

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

Yes—source establishes the path: configure a channel key absent from channels.properties, then open the Channels form. Current main permits its dynamic map entry, while this projection neither groups nor renders it.

Is this the best way to solve the issue?

No. Filtering known channel properties is reasonable, but setting additionalProperties to false discards the existing dynamic configuration contract; preserve that route rather than requiring raw JSON for those users.

Full review comments:

  • [P1] Preserve dynamically keyed channel configuration — ui/src/pages/config/view.ts:205-211
    channels is deliberately permissive on current main so a channel plugin can retain configuration without a typed schema property. This projection makes it closed, while the picker enumerates only schema properties, so those existing channel namespaces disappear from Form mode. Keep an editable dynamic route (and cover a configured schema-less channel) instead of forcing operators into raw JSON.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: This patch would regress the existing form-editing path for configured dynamic channel namespaces.
  • add merge-risk: 🚨 compatibility: The Channels schema is intentionally permissive for plugin configuration, but the projected form schema turns that policy off.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the submitted screenshots are supplementary and were not used to clear the compatibility finding.

Label justifications:

  • P1: This patch would regress the existing form-editing path for configured dynamic channel namespaces.
  • merge-risk: 🚨 compatibility: The Channels schema is intentionally permissive for plugin configuration, but the projected form schema turns that policy off.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the submitted screenshots are supplementary and were not used to clear the compatibility finding.

Evidence

What I checked:

  • Current main keeps custom channel keys permissive: The public configuration schema explicitly retains channels.additionalProperties = true, preserving dynamically keyed plugin configuration even when no typed schema property exists. (src/config/schema-base.ts:121, c75616186224)
  • The patch prevents rendering that dynamic map: The projected Channels schema replaces its permissive additional-properties policy with false, omitting all unselected and dynamically keyed channel namespaces. (ui/src/pages/config/view.ts:211, bf329706995d)
  • The picker has no group for untyped existing keys: Groups are enumerated only from schema.properties; a configured channel accepted only through additionalProperties cannot appear in the picker. (ui/src/pages/config/view-navigation.ts:9, bf329706995d)
  • Form rendering depends on the map policy: The collection renderer emits dynamic map controls only when additionalProperties resolves to an object; the PR's false projection disables that path. (ui/src/components/config-form.node.collection.ts:119, c75616186224)
  • Current main does not already implement the requested grouping: Current main retains a null subsection for every configuration section, rather than channel-specific schema filtering. (ui/src/pages/config/view.ts:192, c75616186224)
  • Feature-history provenance: Blame ties the surrounding current-main configuration-view behavior to the recent UI fix commit, which is contained by local main; the proposed picker is new at the reviewed head. (ui/src/pages/config/view.ts:192, fc6cf5e6907d)

Likely related people:

  • steipete: Peter Steinberger authored the current-main configuration-view lines and the recent adjacent UI repair that history identifies as their provenance. (role: recent Control UI configuration owner; confidence: high; commits: fc6cf5e6907d, bf329706995d; files: ui/src/pages/config/view.ts, ui/src/pages/config/view-navigation.ts, src/config/schema-base.ts)

Rank-up moves

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

  • Restore an editable visible path for dynamically keyed channel configuration and add a regression test proving it remains available.

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
* feat(ui): group advanced settings by messaging channel

* test(ui): connect channel settings fixture for label checks
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant