Skip to content

feat(raft): add gateway setup wizard (salvage #51786) - #56230

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-ee6e6368
Jul 1, 2026
Merged

teknium1 merged 1 commit into
mainfrom
hermes/hermes-ee6e6368

Conversation

@teknium1

@teknium1 teknium1 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

hermes gateway setup now runs a real interactive wizard for Raft instead of falling through to a generic env-var hint.

Raft was the only bundled platform plugin without a setup_fn — every sibling (IRC, Matrix, Feishu, DingTalk, Line, Photon, SimpleX…) already registers one. This closes that gap.

Changes

  • plugins/platforms/raft/adapter.py: add interactive_setup() — lazy-imports cli_output helpers, detects an existing RAFT_PROFILE, offers a reconfigure prompt, and persists via save_env_value(). Register setup_fn=interactive_setup (a documented forwarded PlatformEntry kwarg).
  • tests/gateway/test_raft_adapter.py: cover save, keep-existing-when-not-reconfigured, and setup_fn registration.

Validation

Result
tests/gateway/test_raft_adapter.py 18/18 pass
Base vs current main 0 commits behind
Diff exactly the 2 claimed files (+73/-0)
Core changes none

Salvage of #51786 by @xxchan — cherry-picked onto current main with authorship preserved.

Infographic

Raft Gateway Setup Wizard

Add an interactive Raft setup flow for hermes gateway setup. The wizard follows the existing platform adapter setup pattern, persists RAFT_PROFILE to the Hermes env file, preserves an existing profile when the user declines reconfiguration, and registers the flow via setup_fn.

Add focused Raft adapter coverage for saving RAFT_PROFILE, keeping an existing profile, and registering setup_fn.

Signed-off-by: skyzh <skyzh@mail.build>
Signed-off-by: HaoHao <HaoHao@mail.build>
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels Jul 1, 2026
@alt-glitch

Copy link
Copy Markdown

This was generated by AI during triage.
Salvage of #51786 (@xxchan), cherry-picked onto current main. Related, not a duplicate — this is the active rebased version.

@teknium1
teknium1 merged commit cc7d20d into main Jul 1, 2026
31 checks passed
@teknium1
teknium1 deleted the hermes/hermes-ee6e6368 branch July 1, 2026 09:45
@teknium1 teknium1 mentioned this pull request Jul 1, 2026
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants