fix: add tool use doc to write note for using empty string or "/" for root folder by phernandez · Pull Request #339 · basicmachines-co/basic-memory · GitHub
Skip to content

fix: add tool use doc to write note for using empty string or "/" for root folder - #339

Merged
phernandez merged 2 commits into
mainfrom
tool-usage-write-note-empty-folder
Oct 8, 2025
Merged

fix: add tool use doc to write note for using empty string or "/" for root folder#339
phernandez merged 2 commits into
mainfrom
tool-usage-write-note-empty-folder

Conversation

@phernandez

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: phernandez <paul@basicmachines.co>
@github-actions

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

Users reported that folder="/" doesn't work for writing to project root.
The validate_project_path() function was blocking "/" before sanitization.

Changes:
- Normalize "/" to "" before path validation in write_note tool
- Update documentation to show both "/" and "" work for root
- Add test case verifying "/" works as root folder path

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown
Contributor

@phernandez
phernandez merged commit 73202d1 into main Oct 8, 2025
16 checks passed
@phernandez
phernandez deleted the tool-usage-write-note-empty-folder branch October 8, 2025 04:48
@phernandez phernandez changed the title fix: add tool use doc to write note for using empty string for root folder fix: add tool use doc to write note for using empty string or "/" for root folder Oct 8, 2025
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