Commit graph

8 commits

Author SHA1 Message Date
cte
1abf8c1dcc Fix API configuration profile switching 2025-03-16 11:24:58 -07:00
cte
4b6def5f31 ContextProxy fix - constructor should not be async 2025-03-11 14:24:21 -07:00
sam hoang
e21953e443 fix reset all state 2025-03-06 11:56:11 +07:00
sam hoang
b1b51f8f14 feat(contextProxy): add setValue and setValues methods to simplify state management
- Added new setValue method to ContextProxy to route keys to either secrets or global state
- Added setValues method to process multiple key-value pairs at once
- Updated ClineProvider to use new methods, reducing code duplication
- Added comprehensive test coverage for new methods

This change is part of the larger ClineProvider refactoring effort to improve state management and reduce complexity, as outlined in the refactoring plan documents.
2025-03-06 00:01:52 +07:00
Matt Rubens
f683e4530f Revert "Better encapsulation for API config"
This reverts commit 86401faa37.
2025-03-05 11:05:05 -05:00
Matt Rubens
86401faa37 Better encapsulation for API config 2025-03-05 10:04:48 -05:00
sam hoang
9bbd902d5d update new way to manage state 2025-03-05 00:06:30 +07:00
sam hoang
381b07849a Feat ContextProxy to improve state management
- Add ContextProxy class as a wrapper around VSCode's ExtensionContext
- Implement batched state updates for performance optimization
- Update ClineProvider to use ContextProxy instead of direct context access
- Add comprehensive test coverage for ContextProxy
- Extract SECRET_KEYS and GLOBAL_STATE_KEYS constants for better maintainability
2025-03-04 21:55:04 +07:00