fix(permissions): tools MCP inter-projets exposés (idea_project_*) + contactable agent/template persisté — update_agent_contactable (application/web-server/app-tauri), defaultContactable TemplateEditor save/reopen, groupes MCP 'IdeA inter-projets' avec fallback, permissions agent Contactable — #267 (QA verte)
This commit is contained in:
@ -162,6 +162,20 @@ describe("TauriAgentGateway invoke payloads", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("update_agent_contactable wraps the dedicated boolean in the request DTO", async () => {
|
||||
invoke.mockResolvedValueOnce({ id: "agent-2", contactable: true });
|
||||
|
||||
await new TauriAgentGateway().updateAgentContactable(
|
||||
"proj-1",
|
||||
"agent-2",
|
||||
true,
|
||||
);
|
||||
|
||||
expect(invoke).toHaveBeenCalledWith("update_agent_contactable", {
|
||||
request: { projectId: "proj-1", agentId: "agent-2", contactable: true },
|
||||
});
|
||||
});
|
||||
|
||||
it("cancelAgentChat invokes cancel_agent_chat without closing the session", async () => {
|
||||
await new TauriAgentGateway().cancelAgentChat("chat-session-1");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user