Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/OpenClaw.Shared/Capabilities/CanvasCapability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private NodeInvokeResponse HandleA2UIPush(NodeInvokeRequest request)
catch (Exception ex)
{
Logger.Error($"{request.Command}: failed to read jsonlPath", ex);
return Error($"Failed to read jsonlPath: {ex.Message}");
return Error("Failed to read jsonlPath");
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/OpenClaw.Shared.Tests/A2UICapabilitySecurityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task A2UIPush_FileJsonl_OverCap_ReturnsError()
};
var res = await cap.ExecuteAsync(req);
Assert.False(res.Ok);
Assert.Contains("maximum size", res.Error);
Assert.Equal("Failed to read jsonlPath", res.Error);
}
finally
{
Expand Down Expand Up @@ -125,7 +125,7 @@ public async Task A2UIPush_FileJsonl_SymlinkOutsideTemp_ReturnsError()
var res = await cap.ExecuteAsync(req);

Assert.False(res.Ok);
Assert.Contains("temp", res.Error, StringComparison.OrdinalIgnoreCase);
Assert.Equal("Failed to read jsonlPath", res.Error);
}
finally
{
Expand Down
4 changes: 2 additions & 2 deletions tests/OpenClaw.Shared.Tests/CapabilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ public async Task A2UIPush_WithJsonlPathOutsideTempDir_ReturnsError()
};
var res = await cap.ExecuteAsync(req);
Assert.False(res.Ok);
Assert.Contains("temp directory", res.Error);
Assert.Equal("Failed to read jsonlPath", res.Error);
}

[Fact]
Expand All @@ -1506,7 +1506,7 @@ public async Task A2UIPush_WithJsonlPathTraversal_ReturnsError()
};
var res = await cap.ExecuteAsync(req);
Assert.False(res.Ok);
Assert.Contains("temp directory", res.Error);
Assert.Equal("Failed to read jsonlPath", res.Error);
}

[Fact]
Expand Down
Loading