Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions codex-rs/app-server/tests/suite/v2/marketplace_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const DEFAULT_TIMEOUT: Duration = Duration::from_secs(10);
#[tokio::test]
async fn marketplace_add_local_directory_source() -> Result<()> {
let codex_home = TempDir::new()?;
let source = codex_home.path().join("marketplace");
let source = codex_home.path().join("alice@example.com/marketplace");
std::fs::create_dir_all(source.join(".agents/plugins"))?;
std::fs::create_dir_all(source.join("plugins/sample/.codex-plugin"))?;
std::fs::write(
Expand All @@ -33,7 +33,7 @@ async fn marketplace_add_local_directory_source() -> Result<()> {

let request_id = mcp
.send_marketplace_add_request(MarketplaceAddParams {
source: "./marketplace".to_string(),
source: "./alice@example.com/marketplace".to_string(),
ref_name: None,
sparse_paths: None,
})
Expand Down
3 changes: 2 additions & 1 deletion codex-rs/core-plugins/src/marketplace_add/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ fn split_source_ref(source: &str) -> (String, Option<String>) {
if let Some((base, ref_name)) = source.rsplit_once('#') {
return (base.to_string(), non_empty_ref(ref_name));
}
if !source.contains("://")
if !looks_like_local_path(source)
&& !source.contains("://")
&& !is_ssh_git_url(source)
&& let Some((base, ref_name)) = source.rsplit_once('@')
{
Expand Down
Loading