From d37839b29b18c42120da1795961e4c070e7dfcdb Mon Sep 17 00:00:00 2001 From: JasonBuildAI Date: Sat, 17 Oct 2026 19:03:43 +0800 Subject: [PATCH] fix(architecture): move the turn-release wakeup under native_chat #6703 added loopx/chat_turn_release.py as a new top-level module without lowering the pinned top-level count, so the required Python Tests pytest shard fails 146 against 145 for every PR based on main. Relocate the 30-line TurnReleaseWakeup helper into the existing loopx/capabilities/native_chat/ package, which chat_runtime.py already imports for its native-chat companions, and update its only importer. No behavior change; the top-level budget and the module-size ratchet both pass again. Closes #6728. Signed-off-by: JasonBuildAI --- .../native_chat/turn_release.py} | 0 loopx/chat_runtime.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename loopx/{chat_turn_release.py => capabilities/native_chat/turn_release.py} (100%) diff --git a/loopx/chat_turn_release.py b/loopx/capabilities/native_chat/turn_release.py similarity index 100% rename from loopx/chat_turn_release.py rename to loopx/capabilities/native_chat/turn_release.py diff --git a/loopx/chat_runtime.py b/loopx/chat_runtime.py index a9e775a5c8..a50592fd0d 100644 --- a/loopx/chat_runtime.py +++ b/loopx/chat_runtime.py @@ -22,6 +22,7 @@ ) from .chat_coordination import PROJECT_COORDINATION_GUIDANCE, PROJECT_CONTEXT_VERSION, apply_context_handoff from .capabilities.native_chat import codex_context, project_context as project_context_policy +from .capabilities.native_chat.turn_release import TurnReleaseWakeup from .control_plane.collaboration import conversation_scope from .capabilities.manager_runtime import ( load_bound_manager_runtime_profile, manager_runtime_session_fields, @@ -44,7 +45,6 @@ from .chat_dsh import DshChatAdapter from .chat_endpoint_catalog import builtin_chat_endpoints from .chat_endpoints import AgentEndpointRegistry -from .chat_turn_release import TurnReleaseWakeup from .control_plane.turn_driver.host_binding import MANAGED_TURN_HOST from .control_plane.turn_driver.execution_profile import managed_execution_profile from .kiro_cli_goal_mode import (