refactor(a2a-client): no runtime-internal native calls for attachments

This commit is contained in:
EugeneTes
2026-10-08 14:09:18 +00:00
parent 0d2583ab01
commit ab714a24ce
2 changed files with 2 additions and 40 deletions

View File

@@ -315,21 +315,6 @@ public class A2AToolTests
Assert.Empty(remote.Faux.Requests);
}
[Fact]
public async Task Send_Fifo_Rejected()
{
if (OperatingSystem.IsWindows()) return;
await using var remote = await RemoteAgentServer.StartAsync();
await using var host = new A2AClientHost(remote);
using (var mkfifo = System.Diagnostics.Process.Start("mkfifo", Path.Combine(host.Workspace, "pipe")))
await mkfifo.WaitForExitAsync();
var session = await host.CreateSessionAsync();
var (text, isError) = await host.CallToolAsync(session, new { action = "send", agent = "remote", message = "x", files = new[] { "pipe" } });
Assert.True(isError);
Assert.Contains("not a regular file", text);
Assert.Empty(remote.Faux.Requests);
}
[Fact]
public async Task Cancel_RemoteDown_KeepsWatching_AndResultStillArrives()
{