[Core][Model] Fit PersonaPlex into the Unified Full-duplex Framework (RFC #7181 PR 2) (#7695)

Signed-off-by: chickeyton <ngton2014@gmail.com>
Signed-off-by: Yueqian Lin <linyueqian@outlook.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Yueqian Lin <linyueqian@outlook.com>
This commit is contained in:
authored and GitHub committed 2026-09-27 03:02:24 +00:00
1 parent 7ab582ae25
commit 798d52ce55
49 files changed
+3056 -1715

No files matched your search

+8 -1
View File
@@ -121,7 +121,14 @@ class SessionEmitter:
# ------------------------------------------------------------------ #
def auto_responds(self) -> bool:
"""Whether the session answers committed input without a ``response.create``."""
"""Whether the session answers committed input without a ``response.create``.
A model that takes no client commits (``supports_client_commit`` off, a
lockstep model) can only auto-respond; for every other model the
client opts in through ``extra_body.auto_response``.
"""
if not self._ctx.session.capabilities.supports_client_commit:
return True
extra = getattr(self._ctx.session.config, "extra_body", None)
if not isinstance(extra, dict):
return False