@agent-relay/dashboard-server 2.0.48 → 2.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.js +3 -19
- package/dist/server.js.map +1 -1
- package/dist/start.js +33 -2
- package/dist/start.js.map +1 -1
- package/out/404.html +1 -1
- package/out/about.html +1 -1
- package/out/about.txt +1 -1
- package/out/app/onboarding.html +1 -1
- package/out/app/onboarding.txt +1 -1
- package/out/app.html +1 -1
- package/out/app.txt +1 -1
- package/out/blog.html +1 -1
- package/out/blog.txt +1 -1
- package/out/careers.html +1 -1
- package/out/careers.txt +1 -1
- package/out/changelog.html +1 -1
- package/out/changelog.txt +1 -1
- package/out/cloud/link.html +1 -1
- package/out/cloud/link.txt +1 -1
- package/out/complete-profile.html +1 -1
- package/out/complete-profile.txt +1 -1
- package/out/connect-repos.html +1 -1
- package/out/connect-repos.txt +1 -1
- package/out/contact.html +1 -1
- package/out/contact.txt +1 -1
- package/out/docs.html +1 -1
- package/out/docs.txt +1 -1
- package/out/history.html +1 -1
- package/out/history.txt +1 -1
- package/out/index.html +1 -1
- package/out/index.txt +1 -1
- package/out/login.html +1 -1
- package/out/login.txt +1 -1
- package/out/metrics.html +1 -1
- package/out/metrics.txt +1 -1
- package/out/pricing.html +1 -1
- package/out/pricing.txt +1 -1
- package/out/privacy.html +1 -1
- package/out/privacy.txt +1 -1
- package/out/providers/setup/claude.html +1 -1
- package/out/providers/setup/claude.txt +1 -1
- package/out/providers/setup/codex.html +1 -1
- package/out/providers/setup/codex.txt +1 -1
- package/out/providers/setup/cursor.html +1 -1
- package/out/providers/setup/cursor.txt +1 -1
- package/out/providers.html +1 -1
- package/out/providers.txt +1 -1
- package/out/security.html +1 -1
- package/out/security.txt +1 -1
- package/out/signup.html +1 -1
- package/out/signup.txt +1 -1
- package/out/terms.html +1 -1
- package/out/terms.txt +1 -1
- package/package.json +10 -10
- /package/out/_next/static/{HwEoE2BFhgZdESAQLY9dG → SfyoLSw2xdXgcKQ_dT07o}/_buildManifest.js +0 -0
- /package/out/_next/static/{HwEoE2BFhgZdESAQLY9dG → SfyoLSw2xdXgcKQ_dT07o}/_ssgManifest.js +0 -0
package/dist/server.js
CHANGED
|
@@ -1194,6 +1194,9 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
|
|
|
1194
1194
|
}
|
|
1195
1195
|
const hasMessageData = Object.keys(messageData).length > 0;
|
|
1196
1196
|
// Send to all targets (single agent, team members, or broadcast)
|
|
1197
|
+
// Note: We do NOT persist outgoing messages here because the relay daemon
|
|
1198
|
+
// already persists them when delivered (in router.persistDeliverEnvelope).
|
|
1199
|
+
// Persisting here would cause duplicate messages in storage.
|
|
1197
1200
|
let allSent = true;
|
|
1198
1201
|
for (const target of targets) {
|
|
1199
1202
|
const sent = relayClient.sendMessage(target, message, 'message', hasMessageData ? messageData : undefined, thread);
|
|
@@ -1201,25 +1204,6 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
|
|
|
1201
1204
|
allSent = false;
|
|
1202
1205
|
console.error(`[dashboard] Failed to send message to ${target}`);
|
|
1203
1206
|
}
|
|
1204
|
-
else if (storage) {
|
|
1205
|
-
// Persist outgoing message to storage so it survives page refresh
|
|
1206
|
-
const messageId = `out-${crypto.randomUUID()}`;
|
|
1207
|
-
storage.saveMessage({
|
|
1208
|
-
id: messageId,
|
|
1209
|
-
ts: Date.now(),
|
|
1210
|
-
from: senderName || 'Dashboard',
|
|
1211
|
-
to: target,
|
|
1212
|
-
topic: thread,
|
|
1213
|
-
kind: 'message',
|
|
1214
|
-
body: message,
|
|
1215
|
-
data: hasMessageData ? messageData : undefined,
|
|
1216
|
-
status: 'read', // Outgoing messages are already "read" by sender
|
|
1217
|
-
is_urgent: false,
|
|
1218
|
-
is_broadcast: isBroadcast,
|
|
1219
|
-
}).catch((err) => {
|
|
1220
|
-
console.error('[dashboard] Failed to persist outgoing message', err);
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
1207
|
}
|
|
1224
1208
|
if (allSent) {
|
|
1225
1209
|
// Broadcast updated data to all connected clients so they see the sent message
|