refactor(channels): move tool hint rendering out of core (#6498)

* refactor(channels): move tool hint rendering out of core

* test: align progress privacy check with structured tool events
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-29 10:37:29 +08:00
1 parent b1cc89e922
commit acc3750c28
30 files changed
+530 -124

No files matched your search

-2
View File
@@ -30,7 +30,6 @@ class AgentTurnHookSpec:
metadata: dict[str, Any] | None = None
session_key: str | None = None
workspace: Path | None = None
tool_hint_max_length: int = 40
registered_hook_factories: list[AgentTurnHookFactory] = field(default_factory=list)
turn_hook_factories: list[AgentTurnHookFactory] = field(default_factory=list)
registered_hooks: list[AgentHook] = field(default_factory=list)
@@ -48,7 +47,6 @@ def build_agent_turn_hook(spec: AgentTurnHookSpec) -> AgentHook:
events=spec.events,
streaming=spec.streaming,
session_key=spec.session_key,
tool_hint_max_length=spec.tool_hint_max_length,
log_content=log_content,
)
if spec.ephemeral and not spec.run_extra_hooks_for_ephemeral: