Skip to content

🐛 fix(builtin-tool-local-system): honor glob scope in local system tool#13875

Merged
Innei merged 1 commit into
canaryfrom
fix/local-system-glob-scope
Apr 16, 2026
Merged

🐛 fix(builtin-tool-local-system): honor glob scope in local system tool#13875
Innei merged 1 commit into
canaryfrom
fix/local-system-glob-scope

Conversation

@Innei

@Innei Innei commented Apr 16, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

N/A

🔀 Description of Change

The local system globLocalFiles tool previously dropped the user-provided scope when delegating to the desktop glob implementation. Relative glob patterns were effectively resolved without a search root, so searches could fall back to the process working directory instead of the intended folder.

This change maps IPC scope through ComputerRuntime using the normalized directory field and denormalizes it back to scope for localFileService.globFiles, while keeping the glob pattern unchanged. A regression test asserts the service receives pattern and scope together.

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

Ran: bunx vitest run --config vitest.config.mts in packages/builtin-tool-local-system.

📸 Screenshots / Videos

N/A (non-UI)

📝 Additional Information

None.

Made with Cursor

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry @Innei, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@vercel

vercel Bot commented Apr 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Apr 16, 2026 7:55am

Request Review

@codecov

codecov Bot commented Apr 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.75%. Comparing base (a7339be) to head (f11079c).
⚠️ Report is 16 commits behind head on canary.

Additional details and impacted files
@@           Coverage Diff           @@
##           canary   #13875   +/-   ##
=======================================
  Coverage   66.75%   66.75%           
=======================================
  Files        2043     2043           
  Lines      174015   174015           
  Branches    20440    20443    +3     
=======================================
  Hits       116170   116170           
  Misses      57721    57721           
  Partials      124      124           
Flag Coverage Δ
app 59.05% <ø> (ø)
database 92.42% <ø> (ø)
packages/agent-runtime 79.72% <ø> (ø)
packages/context-engine 83.22% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.86% <ø> (ø)
packages/model-runtime 84.20% <ø> (ø)
packages/prompts 69.24% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.34% <ø> (ø)
packages/web-crawler 88.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 66.11% <ø> (ø)
Services 52.13% <ø> (ø)
Server 66.76% <ø> (ø)
Libs 51.29% <ø> (ø)
Utils 91.12% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Innei Innei merged commit e487bcd into canary Apr 16, 2026
30 checks passed
@Innei Innei deleted the fix/local-system-glob-scope branch April 16, 2026 14:09
canisminor1990 added a commit that referenced this pull request Apr 16, 2026
* 🔨 chore: update .vscode/settings.json (#13894)

* 🐛 fix(builtin-tool-local-system): honor glob scope in local system tool (#13875)

Made-with: Cursor

* 📝 docs: Update changelog docs and release skills (#13897)

- Update changelog documentation format across all historical changelog files
- Merge release-changelog-style skill into version-release skill
- Update changelog examples with improved formatting and structure

Made-with: Cursor

---------

Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
Co-authored-by: Innei <i@innei.in>
Innei added a commit that referenced this pull request Apr 16, 2026
* 🔖 chore(release): release version v2.1.50 [skip ci]

* 📝 docs: Update changelog docs and release skills (#13897) 

* 🔨 chore: update .vscode/settings.json (#13894)

* 🐛 fix(builtin-tool-local-system): honor glob scope in local system tool (#13875)

Made-with: Cursor

* 📝 docs: Update changelog docs and release skills (#13897)

- Update changelog documentation format across all historical changelog files
- Merge release-changelog-style skill into version-release skill
- Update changelog examples with improved formatting and structure

Made-with: Cursor

---------

Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
Co-authored-by: Innei <i@innei.in>

* 🐛 fix: resolve merge conflicts in sync main to canary

Restore canary versions of skill docs that were overwritten during
main-to-canary sync, keeping #13899 improvements intact.

---------

Co-authored-by: CanisMinor <i@canisminor.cc>
Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
Co-authored-by: Innei <i@innei.in>
Co-authored-by: Innei <tukon479@gmail.com>
mrsimpson added a commit to mrsimpson/lobehub that referenced this pull request May 8, 2026
* 🔨 chore: update .vscode/settings.json (lobehub#13894)

* 🐛 fix(builtin-tool-local-system): honor glob scope in local system tool (lobehub#13875)

Made-with: Cursor

* 📝 docs: Update changelog docs and release skills (lobehub#13897)

- Update changelog documentation format across all historical changelog files
- Merge release-changelog-style skill into version-release skill
- Update changelog examples with improved formatting and structure

Made-with: Cursor

---------

Co-authored-by: YuTengjing <ytj2713151713@gmail.com>
Co-authored-by: Innei <i@innei.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant