Skip to content

refactor: centralize channel streaming config hints - #115739

Merged
steipete merged 3 commits into
mainfrom
refactor/loc-streaming-config-ui-hints
Jul 29, 2026
Merged

steipete merged 3 commits into
mainfrom
refactor/loc-streaming-config-ui-hints

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Five bundled channel plugins separately maintained the same streaming.* configuration UI-hint family, while Microsoft Teams also duplicated the shared progress-hint group. That made label/help drift and incomplete updates likely whenever streaming configuration evolved.

Why This Change Was Made

createChannelConfigUiHints now accepts a typed streaming map that supplies the shared path/label construction while preserving channel-owned help text and label overrides. Discord, Slack, Telegram, Microsoft Teams, and Mattermost all use that builder; Teams and Slack retain their existing progress wording through narrow progress options. The generated channel metadata and Plugin SDK API baseline are regenerated.

User Impact

No runtime or configuration behavior changes. Existing labels and help strings are byte-identical for all five channels; only the ownership of their construction moves into the shared builder.

This PR is AI-assisted and was reviewed against the full affected code path.

Evidence

  • Shared builder and typed key map: src/plugin-sdk/channel-config-ui-hints.ts:102, src/plugin-sdk/channel-config-ui-hints.ts:155, src/plugin-sdk/channel-config-ui-hints.ts:213
  • Consumer migrations: extensions/discord/src/config-ui-hints.ts:9, extensions/slack/src/config-ui-hints.ts:17, extensions/telegram/src/config-ui-hints.ts:17, extensions/msteams/src/config-ui-hints.ts:25, extensions/mattermost/src/config-ui-hints.ts:9
  • Focused regression: src/plugin-sdk/channel-config-ui-hints.test.ts:36
  • Metadata comparison: every key and value is identical before/after for Discord (94 hints), Slack (57), Telegram (49), Microsoft Teams (12), and Mattermost (18); generated diff contains ordering/chunk movement only.
  • LOC (git diff --numstat): production +146/-222 (net -76); tests +22/-0 (net +22). Overall +168/-222 (net -54).
  • node scripts/run-vitest.mjs channel-config-ui-hints config-ui-hints — 1 file, 4 tests passed.
  • Testbox pnpm test src/plugins/bundled-plugin-metadata.test.ts src/plugins/contracts/config-footprint-guardrails.test.ts — 2 shards, 46 tests passed.
  • Testbox changed gate — passed formatting, bundled metadata drift, Plugin SDK API/export/surface checks, core and extension typechecks/tests, lint, dependency/boundary/dead-code/cycle guards: https://github.com/openclaw/openclaw/actions/runs/30430655853
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted --stream-engine-output — clean, no accepted/actionable findings (Codex, confidence 0.96).

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: telegram Channel integration: telegram size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete marked this pull request as ready for review July 29, 2026 07:36
@steipete
steipete force-pushed the refactor/loc-streaming-config-ui-hints branch 2 times, most recently from 1833435 to 36c2a6e Compare July 29, 2026 07:39
@steipete
steipete force-pushed the refactor/loc-streaming-config-ui-hints branch from 63cc6da to e7990d7 Compare July 29, 2026 08:16
@steipete
steipete merged commit 382ea7b into main Jul 29, 2026
123 of 127 checks passed
@steipete
steipete deleted the refactor/loc-streaming-config-ui-hints branch July 29, 2026 08:42
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main:
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
  fix(msteams): finalize sent replies after dispatch (#82354)
  fix(cron): deliver explicitly configured failure alerts (#115762)
  fix(hooks): resolve inbound claim conversation once (#115491)
  refactor: retire legacy provider and secret paths (#115655)
  fix(memory): reject malformed QMD result entries (#115705)
  fix(diagnostics): keep internal thinking out of telemetry [AI] (#115261)
  fix(ui): localize remaining control surfaces (#115730)
  fix(gateway): prevent model owner mismatch after plugin activation (#115747)
  fix(agents): run reply hooks for restart recovery (#115711)
  fix(cron): initialize detached hook run sessions (#115765)
  fix(ios): keep stop available for staged voice notes (#115744)
  fix(doctor): preserve config includes during cleanup (#115723)
  fix(memory): keep dreaming consolidation within project scope (#115721)
  fix(discord): keep tool rows under verbose progress (#111947)

# Conflicts:
#	ui/src/pages/custodian/custodian-surface.ts
#	ui/src/styles/custodian.css
vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (#115697)
  feat(media): probe duration and dimensions for playback metadata (#115728)
  fix(sandbox): scope runtimes by workspace (#115766)
  fix(ui): guide users through missing or broken AI setup (#115716)
  fix(sessions): return direct-agent replies to their active session (#115756)
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* refactor: centralize channel streaming config hints

* fix: repair code mode static checks

* fix: restore QA evidence validator import
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (openclaw#115697)
  feat(media): probe duration and dimensions for playback metadata (openclaw#115728)
  fix(sandbox): scope runtimes by workspace (openclaw#115766)
  fix(ui): guide users through missing or broken AI setup (openclaw#115716)
  fix(sessions): return direct-agent replies to their active session (openclaw#115756)
  fix(zalo): stop provider startup after gateway shutdown (openclaw#115763)
  fix(agents): bound completed background process retention (openclaw#115760)
  fix(plugins): bound hook execution and retire stale registrations (openclaw#115695)
  fix(ui): collapse custodian startup error gap (openclaw#115720)
  fix(gateway): reload edited hook transforms (openclaw#107875)
  refactor: centralize channel streaming config hints (openclaw#115739)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: slack Channel integration: slack channel: telegram Channel integration: telegram docs Improvements or additions to documentation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant