fix(rust): the handoff says what the run did, not that a link exists (D156)
All checks were successful
PR Checks / rust-gates (pull_request) Successful in 58s
All checks were successful
PR Checks / rust-gates (pull_request) Successful in 58s
`install --game rust` ended every instance with "Rust server "alpha" is connected to its sidecar" — printed unconditionally, before the plugin had dialled anything, on a stopped server where it had not even loaded, and beside "No service was registered, so nothing is listening yet". The phase 18 walk read it as a claim and then found beta's plugin connected to the wrong sidecar. It now reads "Rust server "alpha" is set up." followed by either "The plugin loads now; `doctor --game rust --server-id alpha` confirms it connected." or "The plugin connects when the server next starts.". The top-level --help no longer describes `install` as the uo-link sidecar and overlay for both games, and says what `uninstall` removes for Rust. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -234,7 +234,7 @@ pub fn deploy(cli: &Cli, mode: Mode) -> Result<()> {
|
||||
.unwrap_or(false),
|
||||
)?;
|
||||
record.instances.insert(plan.id.clone(), instance);
|
||||
handoffs.push((plan.id.clone(), doc, registered));
|
||||
handoffs.push((plan.id.clone(), doc, registered, plan.running));
|
||||
}
|
||||
|
||||
// Instances this run did not touch still run the binary it just replaced.
|
||||
@@ -306,10 +306,17 @@ pub fn deploy(cli: &Cli, mode: Mode) -> Result<()> {
|
||||
match mode {
|
||||
Mode::Install => {
|
||||
let host = crate::install::resolve_host(cli);
|
||||
for (id, doc, registered) in &handoffs {
|
||||
for (id, doc, registered, running) in &handoffs {
|
||||
println!(
|
||||
"{}",
|
||||
sidecar::handoff(id, doc, &host, cli.site_url.as_deref(), *registered)
|
||||
sidecar::handoff(
|
||||
id,
|
||||
doc,
|
||||
&host,
|
||||
cli.site_url.as_deref(),
|
||||
*registered,
|
||||
*running
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user