Skip to content

fix: resolve builtin skill reads - #4658

Merged
Re-bin merged 1 commit into
HKUDS:mainfrom
hamb1y:fix/4655-builtin-skill-read
Jul 6, 2026
Merged

Re-bin merged 1 commit into
HKUDS:mainfrom
hamb1y:fix/4655-builtin-skill-read

Conversation

@hamb1y

@hamb1y hamb1y commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4655.

Summary

  • Map workspace-relative skills/<name>/... reads to bundled skills when the workspace path is missing
  • Keep traversal and absolute-path reads unchanged
  • Add regression coverage for skills/long-goal/SKILL.md

Verification

uv run pytest tests/tools/test_filesystem_tools.py::TestReadFileTool::test_workspace_relative_builtin_skill_read_falls_back_to_packaged_skill -q
uv run ruff check nanobot/agent/tools/filesystem.py tests/tools/test_filesystem_tools.py

@hamb1y
hamb1y marked this pull request as ready for review July 2, 2026 17:52
@chengyongru chengyongru added priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal. bug Something isn't working labels Jul 3, 2026

@Re-bin Re-bin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This resolves bundled skill reads through a narrow fallback while keeping absolute paths and traversal blocked. The behavior is scoped, backward-compatible, and covered by tests. CI is green.

@Re-bin
Re-bin merged commit 10b52cf into HKUDS:main Jul 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: p2 Normal backlog: minor bug, enhancement, docs, cleanup, edge case, or unvalidated proposal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tool error — read_file: Error: File not found: skills/long-goal/SKILL.md

3 participants