feat(conductor): Archive External MCP, Project-Specific Conductor, and GUI Path Config tracks

This commit is contained in:
2026-03-12 20:10:05 -04:00
parent 5a8a91ecf7
commit befb480285
13 changed files with 437 additions and 23 deletions

View File

@@ -48,6 +48,13 @@ from src.paths import get_config_path
CONFIG_PATH = get_config_path()
def _clean_nones(data: Any) -> Any:
if isinstance(data, dict):
return {k: _clean_nones(v) for k, v in data.items() if v is not None}
elif isinstance(data, list):
return [_clean_nones(v) for v in data if v is not None]
return data
def load_config() -> dict[str, Any]:
with open(CONFIG_PATH, "rb") as f:
return tomllib.load(f)
@@ -55,6 +62,7 @@ def load_config() -> dict[str, Any]:
def save_config(config: dict[str, Any]) -> None:
import tomli_w
import sys
config = _clean_nones(config)
sys.stderr.write(f"[DEBUG] Saving config. Theme: {config.get('theme')}\n")
sys.stderr.flush()
with open(CONFIG_PATH, "wb") as f: