fix(ai): Codex CLI provider reliability fixes for DBX Desktop

* fix(ai): resolve Codex CLI from shell PATH on macOS

* fix(ai): hide Codex CLI subprocess windows on Windows

* feat(ai): allow to set environment variable for Codex CLI

* fix(ai): parse Codex MCP tool events

* fix(mcp): honor Postgres TLS settings in direct queries
This commit is contained in:
Oleksandr Liakhevych authored and GitHub committed 2026-06-25 22:31:14 +08:00
1 parent 2759480331
commit 034cce47e0
17 files changed
+613 -30

No files matched your search

+7 -3
View File
@@ -120,17 +120,21 @@ pub(crate) fn resolve_mcp_server_command() -> Option<(String, Vec<String>)> {
.or_else(|| installed_mcp_bin_script().map(|script| ("node".to_string(), vec![script])))
}
fn locate_mcp_bin() -> Option<String> {
pub(crate) fn locate_command(command: &str) -> Option<String> {
#[cfg(windows)]
{
return locate_windows_command("dbx-mcp-server");
return locate_windows_command(command);
}
#[cfg(not(windows))]
{
command_stdout("which", &["dbx-mcp-server"]).ok().and_then(first_non_empty_line)
command_stdout("which", &[command]).ok().and_then(first_non_empty_line)
}
}
fn locate_mcp_bin() -> Option<String> {
locate_command("dbx-mcp-server")
}
fn installed_mcp_bin_script() -> Option<String> {
let root = command_stdout("npm", &["root", "-g"]).ok()?;
let script = Path::new(root.trim()).join(MCP_PACKAGE_NAME).join("dist").join("index.js");