From 25024223dfb2357a6ccc46d50b90920e717245cf Mon Sep 17 00:00:00 2001 From: "Ishan (OpenClaw)" Date: Sat, 7 Feb 2026 09:02:52 +0000 Subject: [PATCH] fix(typecheck): avoid targets shadowing in board memory notify --- backend/app/api/board_memory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/board_memory.py b/backend/app/api/board_memory.py index e861ba14..3d9271cd 100644 --- a/backend/app/api/board_memory.py +++ b/backend/app/api/board_memory.py @@ -110,8 +110,8 @@ async def _notify_chat_targets( # These are intended to be parsed verbatim by agent runtimes. if command in {"/pause", "/resume"}: statement = select(Agent).where(col(Agent.board_id) == board.id) - targets = list(await session.exec(statement)) - for agent in targets: + pause_targets: list[Agent] = list(await session.exec(statement)) + for agent in pause_targets: if actor.actor_type == "agent" and actor.agent and agent.id == actor.agent.id: continue if not agent.openclaw_session_id: