From ea4024b5d86fd593c9ecd541c41d11048a7a7eee Mon Sep 17 00:00:00 2001 From: Lennart Gulikers Date: Fri, 7 Aug 2026 16:36:34 +0200 Subject: [PATCH] fix(session): guard display.on_user() against None display in headless benchmark sub-turns Signed-off-by: Lennart Gulikers --- ctl/src/mas/ctl/session/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ctl/src/mas/ctl/session/controller.py b/ctl/src/mas/ctl/session/controller.py index 8c2182fc..7a046d3f 100644 --- a/ctl/src/mas/ctl/session/controller.py +++ b/ctl/src/mas/ctl/session/controller.py @@ -222,7 +222,8 @@ def _run_user_turn( ) self._turn += 1 tid = turn_id or f"u{self._turn}" - self.display.on_user(text, turn_id=tid) + if self.display is not None: + self.display.on_user(text, turn_id=tid) on_working = getattr(self.display, "on_working", None) if callable(on_working): on_working()