fix: address review feedback for PR #43
- Add missing clifmt.RenderMarkdown to fix compilation
- Unify resolveWritePath with tools/builtin/write_file.go logic:
- Add fileStateDir field to chatSession
- Use pathroots + pathutil for alias/absolute/relative resolution
- Enforce containment checks for absolute paths
- Fix snapshotProjectFiles performance:
- Cap at 500 files / 10MB total
- Skip snapshot for read-only bash commands (ls, cat, git status, etc.)
- Fix diff rendering for new/deleted files:
- write_file creating new file now shows full content diff
- bash deleting files now shows deletion notice
- bash creating new files now detected and shown
- Fix repl.go to use raw output for LLM history while keeping
rendered output for terminal display only
- gofmt formatting + go mod tidy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
authored by