fix(tools): scope file-read dedup to model context (#5775)

* fix(tools): scope file-read dedup to model context

* refactor(tools): narrow file-read context and build results lazily
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-15 16:09:56 +08:00
1 parent 47f77bdbcc
commit d386ba138e
10 files changed
+417 -176

No files matched your search

+2
View File
@@ -517,6 +517,8 @@ class AgentRunner:
workspace_violation_counts=workspace_violation_counts,
hook=hook,
context=context,
model_messages=messages_for_model,
compacted_tool_results=request_state.compacted_tool_results,
)
tool_events.extend(new_events)
tools_used.extend(