acp: Require gemini version 0.2.0 (#36960)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2025-08-27 02:01:51 +00:00
committed by GitHub
parent d0aef3cec1
commit e6e64017ea
8 changed files with 130 additions and 94 deletions
+9 -11
View File
@@ -789,15 +789,10 @@ pub enum ThreadStatus {
#[derive(Debug, Clone)]
pub enum LoadError {
NotInstalled {
error_message: SharedString,
install_message: SharedString,
install_command: String,
},
NotInstalled,
Unsupported {
error_message: SharedString,
upgrade_message: SharedString,
upgrade_command: String,
command: SharedString,
current_version: SharedString,
},
Exited {
status: ExitStatus,
@@ -808,9 +803,12 @@ pub enum LoadError {
impl Display for LoadError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
LoadError::NotInstalled { error_message, .. }
| LoadError::Unsupported { error_message, .. } => {
write!(f, "{error_message}")
LoadError::NotInstalled => write!(f, "not installed"),
LoadError::Unsupported {
command: path,
current_version,
} => {
write!(f, "version {current_version} from {path} is not supported")
}
LoadError::Exited { status } => write!(f, "Server exited with status {status}"),
LoadError::Other(msg) => write!(f, "{}", msg),