Skip to content

fix(init): pass --relay-url through on the plain Kimi Work init path - #188

Merged
OBenner merged 1 commit into
mainfrom
fix/185-relay-url-init
Nov 29, 2026
Merged

OBenner merged 1 commit into
mainfrom
fix/185-relay-url-init

Conversation

@OBenner

@OBenner OBenner commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Problem

On the plain --host kimi-work init path (no per-role placements, no codex/zcode), runInit's final branch calls initializeTeam without relayUrl. The generated role channel configs therefore always point at the default http://127.0.0.1:4100 even when --relay-url is passed — a silent misroute on multi-project machines (a second project's channels would talk to another project's relay).

Found during the #169 cold-install acceptance: npx synloq@latest init --host kimi-work --relay-url http://127.0.0.1:62021 produced configs with relayUrl: http://127.0.0.1:4100.

Fix

One-line pass-through of relayUrl in the final branch (the reconcile/generic/opencode branches already pass it). Regression test asserts the option reaches the initialize engine; verified end-to-end that a generated mcp/<role>.json now carries the passed URL.

Verification

  • pnpm verify — 138 files / 1257 tests green, build OK
  • New regression test fails before the fix, passes after
  • Live check on built dist: init with --relay-url http://127.0.0.1:62021 → config contains exactly that URL

Closes #185.

…185)

The final branch of runInit (plain --host kimi-work without per-role
placements) called initializeTeam without relayUrl, so generated role
configs always pointed at the default http://127.0.0.1:4100 even when
--relay-url was given — a silent misroute on multi-project machines.
Adds the pass-through and a regression test asserting the option
reaches the initialize engine.
@OBenner
OBenner merged commit 962ebc0 into main Nov 29, 2026
5 checks passed
@OBenner
OBenner deleted the fix/185-relay-url-init branch November 29, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1] init --relay-url ignored on the --host kimi-work branch

1 participant