acp: Use ACP error types in read_text_file (#38863)

- Map path lookup and internal failures to acp::Error 
- Return INVALID_PARAMS for reads beyond EOF

Release Notes:

- acp: Return more informative error types from `read_text_file` to
agents
This commit is contained in:
Ben Brandt
2025-09-25 11:53:36 +00:00
committed by GitHub
parent a9def8128f
commit f303a461c4
3 changed files with 52 additions and 15 deletions
+1 -1
View File
@@ -440,7 +440,7 @@ zlog_settings = { path = "crates/zlog_settings" }
# External crates
#
agent-client-protocol = { version = "0.4.2", features = ["unstable"] }
agent-client-protocol = { version = "0.4.3", features = ["unstable"] }
aho-corasick = "1.1"
alacritty_terminal = "0.25.1-rc1"
any_vec = "0.14"