Classify status line provider failures and shorten error messages (#61990)

## What changed

Replace the generic provider error with concise status line messages for unavailable providers, timed-out reads, and other failures. Each message includes `/statusline` to help users reselect a provider.

Classify lookup, snapshot, transport, RPC, and resource validation failures, and log the failure category without carrying raw RPC errors or resource content.

## Testing

Update tests to assert specific resource validation errors and the displayed messages for invalid content, RPC failures, read timeouts, and provider lookup timeouts.

GitOrigin-RevId: 4ae4953cf2552c1c146d77463680655697d0d444
This commit is contained in:
Joe Savona
2026-11-17 07:54:43 +00:00
committed by copyberry
parent 568cccd4f5
commit a3fc418fb2
6 changed files with 166 additions and 96 deletions
@@ -99,7 +99,7 @@ async fn statusline_reads_the_selected_stdio_resource_on_the_displayed_thread()
}
fs::write(&barrier, "")?;
if mode == Setup::ProjectShadow {
terminal.wait_for_screen("Error loading statusline contents from sandbox_meta")?;
terminal.wait_for_screen("Status line unavailable · /statusline")?;
assert!(!receipt.exists());
assert!(!shadow.exists());
} else {
@@ -154,7 +154,7 @@ async fn statusline_reads_the_selected_stdio_resource_on_the_displayed_thread()
toml::Value::String("replacement".into());
fs::write(&local_config, toml::to_string(&config)?)?;
terminal.write_input(b"/new\r")?;
terminal.wait_for_screen("Error loading statusline contents from replacement")?;
terminal.wait_for_screen("Status line unavailable · /statusline")?;
}
assert_eq!(state["thread"]["workspace"], json!({"cwd": cwd}));
}