Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions agent/system_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,13 @@ def build_system_prompt_parts(agent: Any, system_message: Optional[str] = None)
f"after explicit direction."
)

# ACP attached-file context — the adapter inlines file content as text
# blocks. Tell the model to use it directly rather than trying to fetch.
stable_parts.append(
"`[Attached file: ...]` blocks contain the actual file — read the "
"content inline, do not call tools to fetch it."
)

platform_key = (agent.platform or "").lower().strip()
# Resolve the built-in/plugin default hint for this platform, then apply
# any per-platform override from config (platform_hints.<platform>).
Expand Down