Skip to content

Imported symlinked skills are listed but their details and files fail to load #5555

Closed

Description

@dillonzq

Summary

An imported skill reached through a symlinked directory appears in Skills → My skills, but opening it shows Failed to load SKILL.md. Both bb skill show and bb skill files fail with HTTP 502. The target directory and SKILL.md exist and are readable.

Versions and environment

  • BB 0.46.0, installed desktop app; local macOS server/host daemon, accessed through BB Connect.
  • macOS 27.0.1 (26A434), arm64.
  • Pi 1.2.0; the affected entry is a provider-user skill under ~/.pi/agent/skills.
  • Source investigation started at d722659a2c89fdf371fdb5d9f09fdd1ba3d0cba7. Latest upstream main checked: 05771e3c82404328854468f0fff7f0f8203e2076.
  • Source regression tests use Node 22.19.0 and pnpm 9.15.0. No agent turn is needed to reproduce.

Steps to reproduce

With the Pi provider enabled, run this against a BB project that lists provider skills (jq is used to extract the opaque skill ID):

probe_dir="$(mktemp -d)"
skill_name="bb-linked-detail-probe-$(date +%s)"
mkdir -p "$probe_dir/$skill_name" "$HOME/.pi/agent/skills"
printf -- '---\nname: %s\ndescription: Linked skill detail probe\n---\n# Linked skill probe\n' "$skill_name" > "$probe_dir/$skill_name/SKILL.md"
ln -s "$probe_dir/$skill_name" "$HOME/.pi/agent/skills/$skill_name"
skill_id="$(bb skill list --json | jq -r --arg name "$skill_name" '.skills[] | select(.provider == "pi" and .name == $name) | .id' | head -n 1)"
bb skill show "$skill_id" --json
bb skill files "$skill_id" --json

Alternatively, open that entry in Skills → My skills. For cleanup:

rm "$HOME/.pi/agent/skills/$skill_name"
rm -r "$probe_dir"

Expected vs actual

Expected: the skill detail and file list load from the resolved skill directory, with relative reads still confined to that directory.

Actual UI: Failed to load SKILL.md.

Actual CLI output from the original research entry:

{
  "ok": false,
  "error": {
    "code": "invalid_path",
    "message": "HTTP 502: Root path \"/Users/dillon/.pi/agent/skills/research\" must not be a symlink"
  }
}

The file-list command reports:

HTTP 502: Path "/Users/dillon/.pi/agent/skills/research" must not be a symlink

Evidence

The original directory is a valid link: ~/.pi/agent/skills/research → ../../../.agents/skills/research. realpath resolves its SKILL.md successfully. Discovery includes the logical path and marks the entry non-manageable.

An owner-boundary regression with host-files.ts taken from latest main fails with:

CommandDispatchError: Path "/tmp/bb-vt-hS37R4/bb-dispatch-linked-skill-d6vTCn/research" must not be a symlink

It passes with the proposed explicit root-symlink opt-in. The same regression checks SKILL.md, a nested reference file, hidden-file filtering, traversal rejection, and rejection of a nested link escaping the resolved root.

Investigation thread: https://dillonzq.getbb.app/projects/proj_atgmn3hmjt/threads/thr_mg3atqii27 (requires access to the reporting BB instance; the reproduction and evidence above are self-contained).

What I ruled out

Suggested priority and effort

Medium priority, low effort: linked provider skills cannot be inspected through the UI or CLI. No data loss observed.

AGENT GENERATED

Activity

  1. added theissue type on Oct 15, 2026
  2. added
    providers
    provider-pi
    confirmed-repro
    on Oct 15, 2026
  3. bb-slop-cop commented on Oct 15, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium · labels: providers, provider-pi.
    • Report: Reproduction and root-cause analysis.
    • Verdict: REPRODUCED · confidence: high · reproduction label: confirmed-repro.
    • Root cause: Discovery retains the linked skill directory’s logical path, but the host file-list and relative-read handlers reject symbolic-link roots before resolving them.
    • Evidence: The same newly authored regression ran on trusted main 05771e3c8240 in two clean checkouts: both linked-directory operations fail while both ordinary-directory controls pass. All 48 existing file/discovery tests pass. Installed macOS UI and live HTTP were not exercised.
    • No new PR: Existing open PR Fix skill details for symlinked skill directories #5556 already links this issue; no duplicate fix was opened or linked PR code executed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-piproviders

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions