Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix JSON inspector truncating session IDs to 4-char suffix

Cursor Agente37cfe2583b6
diff --git a/cli/beacon/internal/endpoint/dashboard/static/app.js b/cli/beacon/internal/endpoint/dashboard/static/app.js
index 0c56f339..0f8a4d00 100644
--- a/cli/beacon/internal/endpoint/dashboard/static/app.js
+++ b/cli/beacon/internal/endpoint/dashboard/static/app.js
@@ -1301,7 +1301,7 @@ async function showEvent(id) {
if (!$("#drawer")) return;
const record = await getJSON(`/api/event?id=${encodeURIComponent(id)}`);
$("#event-summary").innerHTML = detailSummary(record);
- $("#event-json").textContent = JSON.stringify(displayEventForJSON(record.event), null, 2);
+ $("#event-json").textContent = JSON.stringify(record.event, null, 2);
$$("#event-summary [data-apply-filter]").forEach((button) => {
button.addEventListener("click", () => applyFilters({ [button.dataset.applyFilter]: button.dataset.value }));
});
@@ -1449,12 +1449,6 @@ function displayFilterValue(key, value) {
return value;
}
-function displayEventForJSON(event) {
- const copy = JSON.parse(JSON.stringify(event || {}));
- if (copy.session?.id) copy.session.id = formatSessionID(copy.session.id);
- return copy;
-}
-
function badge(value, className) {
return `<span class="badge ${escapeHTML(className)}">${escapeHTML(value)}</span>`;
}