Skip to content

cli: conversation edit changes admission settings; a stopped setup says how to finish it - #3098

Merged
colinmegill merged 1 commit into
edgefrom
cli-admin-settings
Oct 17, 2026
Merged

colinmegill merged 1 commit into
edgefrom
cli-admin-settings

Conversation

@colinmegill

Copy link
Copy Markdown
Member

Observable changes (CLI only, no server change):

  • polis conversation edit <id> gains --invite-only true|false and --external-id optional|required|allowlist. Both external-ID flags come from the one typed mapping, so they cannot be set apart; Node's refusal to change the allow-list after a conversation has started is reported plainly and never retried. The allow-list IDs themselves stay with their own commands.
  • When polis conversation new stops partway (exit 7), the error now says the conversation exists, is closed and invite-only, and gives the exact commands that finish it with the requested settings (still: never rerun new).
  • If the very first create request is refused, the wizard reports that error and its exit code (for example 4) with outcome rejected, instead of exit 7 "unknown", because nothing was created.

Tests: new mock-server cases in tests/pass5.rs and tests/setup_flow.rs, each failing against the previous code; scripts/test-polis-cli.sh passes.

🤖 Generated with Claude Code

…ys how to finish it

conversation edit accepts --invite-only true|false and
--external-id optional|required|allowlist, mapped to Node's flags by the
setup model, changing only what is asked and confirming it by read-back. When
the allow-list setting is fixed because participation has started, Node's 409
is reported as xid_allowlist_fixed (exit 5) and never retried.

A conversation new that stops partway now says the conversation exists, is
closed and invite-only, and lists in data.finish the edit and reopen commands
that apply the requested settings. If the first create is refused, nothing was
created, so the command reports that refusal and its own exit code instead of
exit 7 with an unknown outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018NVGBuYCk4EZmiz4csUv9s
@colinmegill
colinmegill merged commit 35c5db0 into edge Oct 17, 2026
28 checks passed
@colinmegill
colinmegill deleted the cli-admin-settings branch October 17, 2026 12:18
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.

1 participant