ImportProfile in internal/sandbox/sandbox.go:123 invokes:
cmd := exec.CommandContext(importCtx, "openshell", "provider", "profile", "import", profilePath)
OpenShell expects --file <FILE> or --from <FROM>:
error: unexpected argument '.../.fullsend-cache/resources/sha256/.../content' found
Usage: openshell provider profile import [OPTIONS] <--file <FILE>|--from <FROM>>
The directory-based ImportProfiles (line 296) correctly uses --from dir. Only the single-file ImportProfile path is broken.
Fix:
cmd := exec.CommandContext(importCtx, "openshell", "provider", "profile", "import", "--file", profilePath)
Impact: Any harness using openshell: profiles: with URL-referenced profiles fails at import time. The profiles are fetched and cached correctly but the import command errors. Directory-based profiles (local profiles/ dir) are unaffected since they use ImportProfiles → --from dir.
Discovered via fullsend-ai/agents#211 — the first harness to use URL-referenced profiles.
Reproducer: Any harness YAML with:
openshell:
profiles:
- "https://...some-profile.yaml#sha256=..."
ImportProfileininternal/sandbox/sandbox.go:123invokes:OpenShell expects
--file <FILE>or--from <FROM>:The directory-based
ImportProfiles(line 296) correctly uses--from dir. Only the single-fileImportProfilepath is broken.Fix:
Impact: Any harness using
openshell: profiles:with URL-referenced profiles fails at import time. The profiles are fetched and cached correctly but the import command errors. Directory-based profiles (localprofiles/dir) are unaffected since they useImportProfiles→--from dir.Discovered via fullsend-ai/agents#211 — the first harness to use URL-referenced profiles.
Reproducer: Any harness YAML with: