Release Notes: - Fixed not telling the user what went wrong when spawning ACP agents
Unified · Split
| @@ -104,7 +104,7 @@ impl ThreadError { · 103 unmodified lines | ||
| 104 | 104 | { |
| 105 | 105 | Self::AuthenticationRequired(acp_error.message.clone().into()) |
| 106 | 106 | } else { |
| 107 | − let string = error.to_string(); | |
| 107 | + let string = format!("{:#}", error); | |
| 108 | 108 | // TODO: we should have Gemini return better errors here. |
| 109 | 109 | if agent.clone().downcast::<agent_servers::Gemini>().is_some() |
| 110 | 110 | && string.contains("Could not load the default credentials") |
| @@ -113,7 +113,7 @@ impl ThreadError { · 2 unmodified lines | ||
| 113 | 113 | { |
| 114 | 114 | Self::AuthenticationRequired(string.into()) |
| 115 | 115 | } else { |
| 116 | − Self::Other(error.to_string().into()) | |
| 116 | + Self::Other(string.into()) | |
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | } |
| @@ -795,7 +795,8 @@ impl AcpThreadView { · 675 unmodified lines | ||
| 795 | 795 | if let Some(load_err) = err.downcast_ref::<LoadError>() { |
| 796 | 796 | self.thread_state = ThreadState::LoadError(load_err.clone()); |
| 797 | 797 | } else { |
| 798 | − self.thread_state = ThreadState::LoadError(LoadError::Other(err.to_string().into())) | |
| 798 | + self.thread_state = | |
| 799 | + ThreadState::LoadError(LoadError::Other(format!("{:#}", err).into())) | |
| 799 | 800 | } |
| 800 | 801 | if self.message_editor.focus_handle(cx).is_focused(window) { |
| 801 | 802 | self.focus_handle.focus(window) |