refactor: remove unreachable code and redundant tests (#6729)

* refactor: prune unreachable runtime and WebUI paths

* test: drop duplicate cases and assertions for obsolete selectors
This commit is contained in:
chengyongru authored and GitHub committed 2026-11-20 11:11:00 +08:00
1 parent b9b491e74c
commit 51fa1a7f74
20 files changed
+32 -163

No files matched your search

+2 -2
View File
@@ -557,11 +557,11 @@ class SubagentManager:
def _build_tools(
self,
workspace: Path | None = None,
*,
tools_config: ToolsConfig | None = None,
exec_manager: ExecSessionManager | None = None,
) -> ToolRegistry:
root = self.workspace if workspace is None else workspace
root = self.workspace
registry = ToolRegistry()
cfg = tools_config if tools_config is not None else self._subagent_tools_config()
ctx = ToolContext(