fix: isolate maintenance-session compaction notifications (#5874)
* fix: keep heartbeat compaction notices off user channels * refactor: centralize maintenance session identity
This commit is contained in:
1 parent
c8ed6a1209
commit
d149232621
7 files changed
+96
-17
No files matched your search
@@ -36,7 +36,11 @@ from nanobot.config.paths import is_default_workspace
|
||||
from nanobot.config.schema import Config
|
||||
from nanobot.gateway.runtime import GatewayInstance
|
||||
from nanobot.security.network import is_loopback_host
|
||||
from nanobot.session.keys import UNIFIED_SESSION_KEY, last_channel_from_metadata
|
||||
from nanobot.session.keys import (
|
||||
HEARTBEAT_SESSION_KEY,
|
||||
UNIFIED_SESSION_KEY,
|
||||
last_channel_from_metadata,
|
||||
)
|
||||
from nanobot.utils.evaluator import evaluate_response, resolve_evaluator_prompt
|
||||
from nanobot.utils.helpers import sync_workspace_templates
|
||||
from nanobot.webui.build import BuildMode
|
||||
@@ -648,7 +652,7 @@ def _run_gateway(
|
||||
await mcp_provider.connect()
|
||||
resp = await agent.process_direct(
|
||||
prompt,
|
||||
session_key="heartbeat",
|
||||
session_key=HEARTBEAT_SESSION_KEY,
|
||||
channel=channel,
|
||||
chat_id=chat_id,
|
||||
on_progress=_silent,
|
||||
|
||||
Reference in new issue
Block a user