mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
fix(web): correct Bridge import path in MessageDeleteHandler #2902
This commit is contained in:
@@ -4476,7 +4476,7 @@ class MessageDeleteHandler:
|
|||||||
# 2. Sync agent's in-memory context so its next turn sees the
|
# 2. Sync agent's in-memory context so its next turn sees the
|
||||||
# same history as the DB. Handled by the agent_bridge helper.
|
# same history as the DB. Handled by the agent_bridge helper.
|
||||||
try:
|
try:
|
||||||
from bridge import Bridge
|
from bridge.bridge import Bridge
|
||||||
Bridge().get_agent_bridge().sync_session_messages_from_store(session_id)
|
Bridge().get_agent_bridge().sync_session_messages_from_store(session_id)
|
||||||
except Exception as sync_err:
|
except Exception as sync_err:
|
||||||
logger.warning(f"[WebChannel] Failed to sync agent memory: {sync_err}")
|
logger.warning(f"[WebChannel] Failed to sync agent memory: {sync_err}")
|
||||||
|
|||||||
Reference in New Issue
Block a user