use agentname in ws actions and frontend

This commit is contained in:
Shivering Ocelot committed 2026-08-30 23:42:23 -05:00
1 parent 3b2b3507e5
commit 56e4844992
6 files changed
+61 -25

No files matched your search

+2 -2
View File
@@ -326,9 +326,9 @@ export async function getAgents() {
return cache.agents;
}
export async function getAgent(agentId) {
export async function getAgent(agentname) {
const allAgents = await getAgents();
return allAgents.find(it => it.id == agentId);
return allAgents.find(it => it.agentname == agentname);
}
export function readStream(streamId) {