Skip to content

Commit d9798c7

Browse files
fix(dashboard): repair stale get_active_modes test double
_DummyAgent.get_active_modes() returned a bare list, but the real SerenaAgent.get_active_modes() returns an ActiveModes instance and dashboard._compute_config_overview() calls .get_modes() on it, so test_config_overview_includes_tool_stats_totals raised AttributeError. Return a stub exposing get_modes() to mirror the real API. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6392037 commit d9798c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/serena/test_dashboard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def get_context(self):
5858
return _DummyContext()
5959

6060
def get_active_modes(self):
61-
return []
61+
# mirror the real SerenaAgent.get_active_modes(), which returns an ActiveModes
62+
# instance exposing get_modes(); dashboard._compute_config_overview() calls it
63+
return SimpleNamespace(get_modes=lambda include_background_base_modes=False: [])
6264

6365
def get_active_tool_names(self):
6466
return []

0 commit comments

Comments
 (0)