MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _save_preferences

Method _save_preferences

core/preferences.py:298–303  ·  view source on GitHub ↗

Save preferences to database.

(self)

Source from the content-addressed store, hash-verified

296 self._cache = {}
297
298 def _save_preferences(self):
299 """Save preferences to database."""
300 try:
301 self.state.set("user_preferences", json.dumps(self._cache))
302 except Exception as e:
303 warning(f"Failed to save preferences: {e}")
304
305 def learn_from_file(self, path: str, content: str) -> Dict[str, str]:
306 """

Callers 1

_update_preferenceMethod · 0.95

Calls 2

warningFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected