Skip to content

Onboarding: support plugin-owned interactive channel flows#27191

Merged
gumadeiras merged 4 commits intomainfrom
codex/pr-plugin-onboarding-interactive
Feb 26, 2026
Merged

Onboarding: support plugin-owned interactive channel flows#27191
gumadeiras merged 4 commits intomainfrom
codex/pr-plugin-onboarding-interactive

Conversation

@gumadeiras
Copy link
Member

Summary

  • add optional plugin onboarding hooks for interactive setup and configured-state flows
  • wire onboarding command to hand off to plugin-owned interactive handlers when provided
  • preserve existing generic flow as fallback when no plugin hook is defined

Validation

  • pnpm check

Copilot AI review requested due to automatic review settings February 26, 2026 04:54
@openclaw-barnacle openclaw-barnacle bot added commands Command implementations size: S maintainer Maintainer-authored PR labels Feb 26, 2026
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 26, 2026

Greptile Summary

Adds optional plugin-owned interactive onboarding hooks to the channel plugin system, allowing plugins to customize or completely replace the default onboarding flows.

Key changes:

  • Added configureInteractive hook: lets plugins handle the entire interactive onboarding flow (both configured and unconfigured states)
  • Added configureWhenConfigured hook: lets plugins customize behavior specifically when a channel is already configured
  • Onboarding command now checks for these hooks and delegates to plugin implementations when provided
  • Generic flow preserved as fallback when hooks are not defined
  • Return type ChannelOnboardingConfiguredResult allows plugins to return "skip" to opt out of configuration

The implementation properly integrates the new hooks as early returns, maintains backward compatibility through optional properties, and follows existing code patterns in the codebase.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are well-structured, type-safe, and backward compatible. New functionality is added through optional methods that don't affect existing implementations. The code follows established patterns in the codebase and maintains proper type narrowing. No logical errors or security concerns identified.
  • No files require special attention

Last reviewed commit: ce0d9ec

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds plugin-extensible onboarding behavior for channel setup, allowing channel plugins to fully own interactive configuration flows while preserving the existing generic onboarding behavior as a fallback.

Changes:

  • Introduces optional onboarding adapter hooks for interactive setup (configureInteractive) and already-configured flows (configureWhenConfigured).
  • Updates the channel onboarding command flow to delegate to plugin-owned hooks when provided, with early-return handling for "skip".
  • Extends onboarding type definitions to support the new hooks and interactive context.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/commands/onboard-channels.ts Wires setupChannels to call adapter-provided interactive/configured handlers and apply their results.
src/channels/plugins/onboarding-types.ts Adds new adapter hook types and context/result unions to support plugin-owned onboarding flows.

@gumadeiras gumadeiras self-assigned this Feb 26, 2026
@gumadeiras gumadeiras force-pushed the codex/pr-plugin-onboarding-interactive branch from ce0d9ec to c78eefc Compare February 26, 2026 05:49
@gumadeiras gumadeiras force-pushed the codex/pr-plugin-onboarding-interactive branch from c78eefc to 197e720 Compare February 26, 2026 05:58
@openclaw-barnacle openclaw-barnacle bot added the docs Improvements or additions to documentation label Feb 26, 2026
@gumadeiras gumadeiras merged commit f08fe02 into main Feb 26, 2026
23 checks passed
@gumadeiras gumadeiras deleted the codex/pr-plugin-onboarding-interactive branch February 26, 2026 06:14
@gumadeiras
Copy link
Member Author

Merged via squash.

Thanks @gumadeiras!

NOVA-Openclaw added a commit to NOVA-Openclaw/nova-openclaw that referenced this pull request Feb 26, 2026
Syncs 29 upstream commits including:
- Account-scoped bind and routing commands (openclaw#27195)
- Single-account config migration to accounts.default (openclaw#27334)
- Preserve agent-level apiKey/baseUrl during models.json merge (openclaw#27293)
- Plugin-owned interactive channel onboarding flows (openclaw#27191)
- Android notifications.list, invoke refactoring
- Daemon launchd restart hardening
- SSRF dispatcher fix, doctor improvements

Conflict resolution: 4 import-order conflicts in onboarding/channel
commands resolved by taking upstream (no custom code in those files).
steipete pushed a commit that referenced this pull request Feb 26, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
execute008 pushed a commit to execute008/openclaw that referenced this pull request Feb 27, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
r4jiv007 pushed a commit to r4jiv007/openclaw that referenced this pull request Feb 28, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
vincentkoc pushed a commit to Sid-Qin/openclaw that referenced this pull request Feb 28, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
vincentkoc pushed a commit to rylena/rylen-openclaw that referenced this pull request Feb 28, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
steipete pushed a commit to Sid-Qin/openclaw that referenced this pull request Mar 2, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
robertchang-ga pushed a commit to robertchang-ga/openclaw that referenced this pull request Mar 2, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
dorgonman pushed a commit to kanohorizonia/openclaw that referenced this pull request Mar 3, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
thebenjaminlee pushed a commit to escape-velocity-ventures/openclaw that referenced this pull request Mar 7, 2026
…27191)

Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 53872cf
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations 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.

2 participants