feat(controller): Add private _ai_status and _mma_status attributes to AppController
This commit is contained in:
@@ -168,6 +168,7 @@ class AppController:
|
|||||||
self._show_patch_modal: bool = False
|
self._show_patch_modal: bool = False
|
||||||
self._patch_error_message: Optional[str] = None
|
self._patch_error_message: Optional[str] = None
|
||||||
self.mma_status: str = "idle"
|
self.mma_status: str = "idle"
|
||||||
|
self._mma_status: str = "idle"
|
||||||
self._tool_log: List[Dict[str, Any]] = []
|
self._tool_log: List[Dict[str, Any]] = []
|
||||||
self._tool_stats: Dict[str, Dict[str, Any]] = {} # {tool_name: {"count": 0, "total_time_ms": 0.0, "failures": 0}}
|
self._tool_stats: Dict[str, Dict[str, Any]] = {} # {tool_name: {"count": 0, "total_time_ms": 0.0, "failures": 0}}
|
||||||
self._cached_cache_stats: Dict[str, Any] = {} # Pre-computed cache stats for GUI
|
self._cached_cache_stats: Dict[str, Any] = {} # Pre-computed cache stats for GUI
|
||||||
@@ -251,6 +252,7 @@ class AppController:
|
|||||||
self.proposed_tracks: List[Dict[str, Any]] = []
|
self.proposed_tracks: List[Dict[str, Any]] = []
|
||||||
self._show_track_proposal_modal: bool = False
|
self._show_track_proposal_modal: bool = False
|
||||||
self.ai_status: str = 'idle'
|
self.ai_status: str = 'idle'
|
||||||
|
self._ai_status: str = 'idle'
|
||||||
self.ai_response: str = ''
|
self.ai_response: str = ''
|
||||||
self.last_md: str = ''
|
self.last_md: str = ''
|
||||||
self.last_aggregate_markdown: str = ''
|
self.last_aggregate_markdown: str = ''
|
||||||
@@ -3185,3 +3187,4 @@ class AppController:
|
|||||||
else:
|
else:
|
||||||
self.active_tickets = []
|
self.active_tickets = []
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import src.app_controller as app_controller
|
||||||
|
|
||||||
|
def test_status_attributes_exist():
|
||||||
|
controller = app_controller.AppController()
|
||||||
|
assert hasattr(controller, '_ai_status')
|
||||||
|
assert hasattr(controller, '_mma_status')
|
||||||
|
assert controller._ai_status == 'idle'
|
||||||
|
assert controller._mma_status == 'idle'
|
||||||
Reference in New Issue
Block a user