Private
Public Access
0
0
Files
manual_slop/scripts/tier2
ed 052881ec20 fix(src): update load_context_preset to handle Result from load_all
After migrating ContextPresetManager.load_all to return Result[Dict],
the caller in app_controller.load_context_preset needs to extract
.data from the Result before checking 'name not in presets'.

Updates:
- src/app_controller.py:load_context_preset - check result.ok and
  extract result.data before iterating; raise RuntimeError if
  result.ok is False (consistent with the convention).
- tests/test_context_presets_manager.py:test_manager_load_all -
  extract result.data before assertions.

Tests verified:
- tests/test_context_presets_manager.py (4 tests) PASS
- tests/test_project_switch_persona_preset.py::
  test_load_context_preset_missing_raises_keyerror PASS (KeyError
  raised correctly when preset not found)
- tests/test_phase6_engine.py (3 tests) PASS
2026-06-17 23:15:57 -04:00
..