fix(gateway): clear slash-confirm state during session boundary cleanup
This commit is contained in:
@@ -12803,6 +12803,20 @@ class GatewayRunner:
|
||||
if isinstance(update_prompt_pending, dict):
|
||||
update_prompt_pending.pop(session_key, None)
|
||||
|
||||
try:
|
||||
from tools import slash_confirm as _slash_confirm_mod
|
||||
except Exception:
|
||||
_slash_confirm_mod = None
|
||||
if _slash_confirm_mod is not None:
|
||||
try:
|
||||
_slash_confirm_mod.clear(session_key)
|
||||
except Exception as e:
|
||||
logger.debug(
|
||||
"Failed to clear slash-confirm state for session boundary %s: %s",
|
||||
session_key,
|
||||
e,
|
||||
)
|
||||
|
||||
try:
|
||||
from tools.approval import clear_session as _clear_approval_session
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user