pbakaus/impeccable · info
Try restarting: {live-server} stop && {live}
Error message
Try restarting: {live-server} stop && {live}
What it means
This is the remediation hint line printed by handle_poll_error immediately after the authentication-failure message (error 135). It interpolates the correct script commands (`live-server stop` and `live`) for the user's shell and platform.
Source
Thrown at crates/live/src/live_poll.rs:639
.unwrap_or(false)
}
fn handle_event(mut event: Value, base: &str, token: &str, io: &mut Io) -> Value {
if let Value::Object(obj) = &mut event {
augment_event_with_accept_handling(obj, base, token, io);
write_carbonize_banner(obj, io);
}
print_poll_event(&mut event, io);
event
}
fn handle_poll_error(err: PollError, io: &mut Io) -> i32 {
let cwd = io.cwd.to_string_lossy().into_owned();
let env = io.env.clone();
match err {
PollError::Auth => {
io.err("Authentication failed. The server token may have changed.\n");
io.err(&format!(
"Try restarting: {} stop && {}\n",
script_cmd(&env, &cwd, "live-server"),
script_cmd(&env, &cwd, "live")
));
1
}
PollError::ConnRefused => {
io.err(&format!(
"Live server not running. Start one with: {}\n",
script_cmd(&env, &cwd, "live")
));
1
}
PollError::AckTimeout(m) => {
io.err(&format!("{}\n", m));
1
}
PollError::Other(m) => {View on GitHub (pinned to 2bc2879276)
Solutions
- Copy and run the exact interpolated command shown: `<live-server> stop && <live>`.
- If the interpolated script name is wrong for your package manager, run the equivalent via your package runner (e.g. `bun run impeccable:live-server stop`).
Defensive patterns
Strategy: try-catch
Try / catch
// The hint is informational; treat exit code 1 + this line as a signal to run the restart command
if (exitCode === 1 && stderr.includes('Try restarting')) {
await exec(stderr.match(/Try restarting: (.+)\n/)[1]);
} Prevention
- Automate the documented restart sequence in scripts instead of poller reuse.
- Surface this hint line in agent output so humans can act on it.
When it happens
Trigger: Always printed together with PollError::Auth in handle_poll_error; never thrown independently.
Common situations: Same as the authentication failure: stale token after server restart; user needs platform-correct command syntax (npm/pnpm/bun script forms).
Related errors
- Authentication failed. The server token may have changed.
- concept-seed: --candidate-count must be an integer from 5 to
- Unknown ignore-rule flag: ${arg}
- Pass a rule id, e.g. ${IMPECCABLE_COMMAND} hooks ignore-rule
- overused-font is value-specific by default. Use ${IMPECCABLE
AI-assisted analysis of pbakaus/impeccable@2bc2879276 (2026-09-08).
Data as JSON: /api/errors/2a6949a6f09aee8e.
Report an issue: GitHub.