{"record":{"id":"2a6949a6f09aee8e","repo":"pbakaus/impeccable","slug":"try-restarting-live-server-stop-live","errorCode":null,"errorMessage":"Try restarting: {live-server} stop && {live}\n","messagePattern":"Try restarting: (.+?) stop && (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"crates/live/src/live_poll.rs","lineNumber":639,"sourceCode":"        .unwrap_or(false)\n}\n\nfn handle_event(mut event: Value, base: &str, token: &str, io: &mut Io) -> Value {\n    if let Value::Object(obj) = &mut event {\n        augment_event_with_accept_handling(obj, base, token, io);\n        write_carbonize_banner(obj, io);\n    }\n    print_poll_event(&mut event, io);\n    event\n}\n\nfn handle_poll_error(err: PollError, io: &mut Io) -> i32 {\n    let cwd = io.cwd.to_string_lossy().into_owned();\n    let env = io.env.clone();\n    match err {\n        PollError::Auth => {\n            io.err(\"Authentication failed. The server token may have changed.\\n\");\n            io.err(&format!(\n                \"Try restarting: {} stop && {}\\n\",\n                script_cmd(&env, &cwd, \"live-server\"),\n                script_cmd(&env, &cwd, \"live\")\n            ));\n            1\n        }\n        PollError::ConnRefused => {\n            io.err(&format!(\n                \"Live server not running. Start one with: {}\\n\",\n                script_cmd(&env, &cwd, \"live\")\n            ));\n            1\n        }\n        PollError::AckTimeout(m) => {\n            io.err(&format!(\"{}\\n\", m));\n            1\n        }\n        PollError::Other(m) => {","sourceCodeStart":621,"sourceCodeEnd":657,"githubUrl":"https://github.com/pbakaus/impeccable/blob/2bc2879276c1f321a53c4ca99d3371e411329b52/crates/live/src/live_poll.rs#L621-L657","documentation":"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.","triggerScenarios":"Always printed together with PollError::Auth in handle_poll_error; never thrown independently.","commonSituations":"Same as the authentication failure: stale token after server restart; user needs platform-correct command syntax (npm/pnpm/bun script forms).","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`)."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// The hint is informational; treat exit code 1 + this line as a signal to run the restart command\nif (exitCode === 1 && stderr.includes('Try restarting')) {\n  await exec(stderr.match(/Try restarting: (.+)\\n/)[1]);\n}","preventionTips":["Automate the documented restart sequence in scripts instead of poller reuse.","Surface this hint line in agent output so humans can act on it."],"tags":["authentication","token","recovery-hint","cli"],"backgroundTag":"authentication-required","analyzedSha":"2bc2879276c1f321a53c4ca99d3371e411329b52","analyzedAt":"2026-09-08T04:51:14.109Z","contentChangedAt":"2026-09-08T04:51:14.109Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}