Reconcile user-only prompt history with the latest repository UI

Hop-State: A_06FN73JKSZ95VEQCEXG6QB8
Hop-Proposal: R_06FN73GTTTTQ8WWHM30TQB8
Hop-Task: T_06FN6ZANP5V1SKQWZBP9QZR
Hop-Attempt: AT_06FN739WSM7FS84CT05X588
This commit is contained in:
Hop
2026-07-11 16:41:04 -07:00
parent 57ced914be
commit 8001195185
5 changed files with 42 additions and 4 deletions
+5 -3
View File
@@ -217,7 +217,7 @@
record.append(makeElement('h2', '', 'Captured request'));
record.append(makeElement('pre', '', prompt.prompt));
if (prompt.response_summary) {
record.append(makeElement('h2', '', 'Agent outcome'));
record.append(makeElement('h2', '', 'Proposal outcome'));
record.append(makeElement('div', 'hop-prompt__response', prompt.response_summary));
}
@@ -283,7 +283,9 @@
if (!response.ok) throw new Error('Could not load a published prompt record');
return response.json();
}));
return prompts.sort((left, right) => String(right.created_at).localeCompare(String(left.created_at)));
return prompts
.filter((prompt) => prompt.status !== 'active' && prompt.status !== 'running')
.sort((left, right) => String(right.created_at).localeCompare(String(left.created_at)));
}
return [];
}
@@ -307,7 +309,7 @@
heading.append(
makeElement('p', 'hop-prompts__eyebrow', 'Hop causal record'),
makeElement('h1', '', 'Prompts'),
makeElement('p', 'hop-prompts__lede', 'Review what was requested, which agent acted, and the result it reported. Every entry is tied to the task, attempt, and state that produced it.'),
makeElement('p', 'hop-prompts__lede', 'Review what you requested, which agent acted, and the proposal that resulted. Internal agent instructions are not published.'),
);
heading.querySelector('h1').id = 'hop-prompts-title';
const refresh = makeElement('button', 'ui button hop-prompts__refresh', 'Refresh');