Private
Public Access
0
0

fix(controller): remove 'persona_manager' from _LAZY_MANAGER_DEFAULTS

This commit is contained in:
2026-06-10 09:03:12 -04:00
parent bc4651d1e4
commit 4284ec6eba
+4 -4
View File
@@ -1261,12 +1261,12 @@ class AppController:
# Manager attributes that are initialized by init_state() but are absent
# on a bare AppController() (which some tests construct). Return None
# for these so test code that references them without calling init_state
# does not crash. hasattr() still returns False for non-mocked access
# paths because callers wrap in try/except for AttributeError when they
# need to distinguish "lazy" from "absent".
# does not crash. NOTE: callers that need to distinguish "lazy" from
# "absent" must use try/except AttributeError explicitly; hasattr()
# returns True because __getattr__ returns None (a valid attribute
# value).
_LAZY_MANAGER_DEFAULTS = {
"context_preset_manager",
"persona_manager",
"tool_preset_manager",
"preset_manager",
"vendor_state",