acp: Update error matching (#36898)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-08-25 14:07:10 -06:00 committed by GitHub
parent 0470baca50
commit 9cc006ff74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 10 deletions

View file

@ -266,7 +266,9 @@ impl AgentConnection for AcpConnection {
match serde_json::from_value(data.clone()) {
Ok(ErrorDetails { details }) => {
if suppress_abort_err && details.contains("This operation was aborted")
if suppress_abort_err
&& (details.contains("This operation was aborted")
|| details.contains("The user aborted a request"))
{
Ok(acp::PromptResponse {
stop_reason: acp::StopReason::Cancelled,