Skip to content

Conversation

@carcinoma
Copy link

@carcinoma carcinoma commented Dec 12, 2025

When a tool call want's to list "." it is very likely refering to the current directory and not the root-directory ("/"). Also if the directory parameter is missing it makes more sense to list the current work dir, not root ("/").


Summary by cubic

Use "." as the default directory in lsTool so listings target the current working directory instead of "/". Prevents accidental root listings when the dir argument is missing or set to ".".

Written for commit b496e5c. Summary will update automatically on new commits.

@carcinoma carcinoma requested a review from a team as a code owner December 12, 2025 09:22
@carcinoma carcinoma requested review from sestinj and removed request for a team December 12, 2025 09:22
@continue
Copy link
Contributor

continue bot commented Dec 12, 2025

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 12, 2025
@github-actions
Copy link

github-actions bot commented Dec 12, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@carcinoma
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

When a tool call want's to list "." it is very likely refering to the current directory and not the root-directory ("/"). Also if the directory parameter is missing it makes more sense to list the current work dir, not root ("/").
@carcinoma carcinoma force-pushed the bugfix/ls-tool-must-not-default-to-root branch from 5ef51e4 to b496e5c Compare December 12, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant