We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b379eb commit 0de1451Copy full SHA for 0de1451
crates/chat-cli/src/mcp_client/client.rs
@@ -361,7 +361,9 @@ impl McpClientService {
361
info!("Retry for http transport failed {e}. Possible reauth needed");
362
// This could be because the refresh token is expired, in which
363
// case we would need to have user go through the auth flow
364
- // again
+ // again. We do this by deleting the cred
365
+ // and discarding the client to trigger a full auth flow
366
+ tokio::fs::remove_file(&auth_client.cred_full_path).await?;
367
let new_transport =
368
get_http_transport(&os_clone, &url, None, &*messenger_dup).await?;
369
0 commit comments