Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public CodexConfigurator() : base(new McpClient
name = "Codex",
windowsConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml"),
macConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml"),
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml")
linuxConfigPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".codex", "config.toml"),
SupportsHttpTransport = false
})
{ }

Expand All @@ -30,5 +31,8 @@ public override string GetSkillInstallPath()
"Paste the configuration TOML",
"Save and restart Codex"
};

private static readonly ConfiguredTransport[] StdioOnly = { ConfiguredTransport.Stdio };
public override IReadOnlyList<ConfiguredTransport> SupportedTransports => StdioOnly;
}
Comment on lines +35 to 37
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ public void ClaudeDesktop_SupportsStdioOnly()
CollectionAssert.DoesNotContain(claude.SupportedTransports.ToList(), ConfiguredTransport.Http);
}

[Test]
public void Codex_SupportsStdioOnly()
{
// Regression guard for #1193: Codex does not expose tools over the HTTP block, so it
// must advertise stdio only and let CoerceTransportFor pick stdio before Configure().
var codex = new CodexConfigurator();
CollectionAssert.Contains(codex.SupportedTransports.ToList(), ConfiguredTransport.Stdio);
CollectionAssert.DoesNotContain(codex.SupportedTransports.ToList(), ConfiguredTransport.Http);
Assert.IsFalse(codex.Client.SupportsHttpTransport, "Codex must not be treated as HTTP-capable");
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}

[Test]
public void Cursor_SupportsBothTransports()
{
Expand Down
Loading