feat: small implementation change

ref: N25B-400
This commit is contained in:
Pim Hutting
2026-01-08 11:25:53 +01:00
parent 6b34f4b82c
commit b27e5180c4
2 changed files with 5 additions and 3 deletions

View File

@@ -106,8 +106,8 @@ class UserInterruptAgent(BaseAgent):
"Forwarded button press (override) with context '%s' to BDI Core.", "Forwarded button press (override) with context '%s' to BDI Core.",
event_context, event_context,
) )
else: elif asl_cond_norm := self._cond_norm_map.get(ui_id):
await self._send_to_program_manager(event_context) await self._send_to_bdi("force_norm", asl_cond_norm)
self.logger.info( self.logger.info(
"Forwarded button press (override) with context '%s' to BDIProgramManager.", "Forwarded button press (override) with context '%s' to BDIProgramManager.",
event_context, event_context,

View File

@@ -95,7 +95,9 @@ async def test_receive_programs_valid_and_invalid():
assert forwarded.phases[0].goals[0].name == "G1" assert forwarded.phases[0].goals[0].name == "G1"
# Verify history clear was triggered # Verify history clear was triggered
assert manager._send_clear_llm_history.await_count == 1 assert (
manager._send_clear_llm_history.await_count == 2
) # first sends program to UserInterrupt, then clears LLM
@pytest.mark.asyncio @pytest.mark.asyncio