Skip to content

bug(sandbox): ImportProfile passes positional arg instead of --file flag #5241

Description

@maruiz93

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=..."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions