context_server: Interpret context server command paths relative to the extension's work dir (#27201)

This PR fixes an issues where the commands returned from context server
extensions were being used as-is instead of interpreting them relative
to the extension's work dir.

Release Notes:

- Fixed an issue with context server paths not being interpreted
relative to the extension's work dir.

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Thomas Mickley-Doyle <tmickleydoyle@gmail.com>
This commit is contained in:
Marshall Bowers 2025-03-20 12:36:40 -04:00 committed by GitHub
parent 7feb50fafe
commit c60a7034c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -906,7 +906,10 @@ impl ExtensionStore {
.await
}
})
.await?;
.await
.inspect_err(|error| {
util::log_err(error);
})?;
let output_path = &extensions_dir.join(extension_id.as_ref());
if let Some(metadata) = fs.metadata(output_path).await? {