fix: set_default_project skips config file update in cloud mode - #486
Conversation
- Validate project exists in database before updating (fail-fast) - Only update config file in local mode; cloud mode uses database only - Raise ValueError if project not found instead of just logging error - Update tests to expect ValueError for non-existent projects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 2m 10s —— View job PR #486 Code Review: set_default_project Cloud Mode FixReview SummaryThis PR improves the Code Quality & Standards ✅Passes all checks:
Code improvements identified:
Testing & Documentation ✅Test coverage:
Code formatting cleanup:
Documentation: Basic Memory Architecture ✅Architectural correctness:
Logic flow improvement:
This is better than the old approach which updated config first, then logged an error if database was out of sync. Security & Performance ✅Security:
Performance:
Compatibility ✅Windows compatibility:
Detailed Review by File
|
Summary
ValueErrorif project not found instead of just logging errorTest plan
ValueErrorfor non-existent projects🤖 Generated with Claude Code