From 9d2800e691232164a8cd2019decee3cd1b609b23 Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Tue, 10 Mar 2026 16:43:40 -0700 Subject: [PATCH] fix(cli): add restart hint after allowed-hostname change The server builds its hostname allow-set once at startup. When users add a new hostname via the CLI, the config file is updated but the running server doesn't reload it. This adds a clear message telling users to restart the server for the change to take effect. Fixes #538 Co-Authored-By: Claude Opus 4.6 --- cli/src/commands/allowed-hostname.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/commands/allowed-hostname.ts b/cli/src/commands/allowed-hostname.ts index 942c464b..d47a3bba 100644 --- a/cli/src/commands/allowed-hostname.ts +++ b/cli/src/commands/allowed-hostname.ts @@ -26,6 +26,9 @@ export async function addAllowedHostname(host: string, opts: { config?: string } p.log.info(`Hostname ${pc.cyan(normalized)} is already allowed.`); } else { p.log.success(`Added allowed hostname: ${pc.cyan(normalized)}`); + p.log.message( + pc.dim("Restart the Paperclip server for this change to take effect."), + ); } if (!(config.server.deploymentMode === "authenticated" && config.server.exposure === "private")) {