Integrate reviewed full action pack admission and bounded idle scheduling

This commit is contained in:
zenord
2026-10-13 07:19:34 +08:00
parent 97f87e2409
commit f0620ddd65
21 changed files with 285 additions and 75 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ from history import History
from face_context import FaceContext
from reply_emotion import SYSTEM_FRAGMENT, parse_reply
from action_reply import ACTION_FRAGMENT, ExpressionPrefix, parse_action_reply
from action_protocol import ActionPlans, negotiate
from action_protocol import ActionPlans, negotiate, configured_packs
from guest_sessions import GuestSessions, COOKIE
from tts_debug import DebugStore
from persona_resolver import resolve_persona
@@ -754,7 +754,7 @@ async def dialogue(ws: WebSocket):
session.synthesis_mode = synthesis_mode
session.owner = owner or 'admin'
session.action_plans = ActionPlans(session.owner, session.connection_generation)
session.action_capability = negotiate(hello, json.loads(os.environ.get('LAN_ACTION_PACKS', '{}')))
session.action_capability = negotiate(hello, configured_packs())
if owner: session.auth_check = lambda: bool(app.state.guests.get(owner))
voice_mode = hello.get('voice_mode', 'continuous_voice')
if voice_mode not in ('continuous_voice', 'fragment'): raise ValueError('voice mode')