Skip to content

Conversation

@robch
Copy link
Owner

@robch robch commented Jan 11, 2026

Implements tilde (~) path expansion across all file operations:

Key Changes:

  • ✅ Add to core FileHelpers methods (ReadAllText, WriteAllText, FileExists, etc.)
  • ✅ Add tilde expansion to function calling tools (ViewFile, CreateFile, ListFiles, etc.)
  • ✅ Clean up redundant comments and code
  • ✅ Remove unnecessary test infrastructure

Functionality:

  • now works
  • now works
  • now works
  • All file operations support tilde paths consistently

Testing:

  • Manually verified all core functionality works
  • No complex test framework needed for basic file system features
  • Builds successfully with no breaking changes

This provides comprehensive tilde path support across the entire system without over-engineering.

Rob Chambers added 3 commits January 10, 2026 15:33
- Add PathHelpers.ExpandPath method to handle ~ and ~/path expansion
- Update all file operation functions to use path expansion:
  - ViewFile
  - CreateFile
  - ReplaceOneInFile
  - ReplaceFileContent
  - ReplaceMultipleInFile
  - Insert
  - UndoEdit
  - ListFiles
- Fixes issue where file functions couldn't handle tilde paths like ~/.bashrc
- Uses Environment.GetFolderPath(SpecialFolder.UserProfile) for cross-platform compatibility
@robch robch merged commit 914d309 into master Jan 11, 2026
1 check passed
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.

2 participants