From 8001195185d93e6a7628b2357e00e86fbbae4109 Mon Sep 17 00:00:00 2001 From: Hop Date: Sat, 11 Jul 2026 16:41:04 -0700 Subject: [PATCH] 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 --- .../prompts/P_06FN6ZANP4X2ZDEZBGMPH10.json | 16 ++++++++++++++++ .../prompts/P_06FN6ZT6X3MQTBCQK35GPER.json | 17 +++++++++++++++++ deploy/gitea/install-hop-native.sh | 3 +++ deploy/gitea/public/assets/js/hop-native.js | 8 +++++--- deploy/gitea/templates/custom/footer.tmpl | 2 +- 5 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 .hop/records/prompts/P_06FN6ZANP4X2ZDEZBGMPH10.json create mode 100644 .hop/records/prompts/P_06FN6ZT6X3MQTBCQK35GPER.json diff --git a/.hop/records/prompts/P_06FN6ZANP4X2ZDEZBGMPH10.json b/.hop/records/prompts/P_06FN6ZANP4X2ZDEZBGMPH10.json new file mode 100644 index 0000000..e86582a --- /dev/null +++ b/.hop/records/prompts/P_06FN6ZANP4X2ZDEZBGMPH10.json @@ -0,0 +1,16 @@ +{ + "id": "P_06FN6ZANP4X2ZDEZBGMPH10", + "task_id": "T_06FN6ZANP5V1SKQWZBP9QZR", + "attempt_id": "AT_06FN6ZANP74SVA7HQZJVW9R", + "state_id": "P_06FN6ZANP4X2ZDEZBGMPH10", + "prompt": "why are there things in this list that arent prompts that i sent? it seems that each one that says \"active\" next to it isnt a prompt i sent", + "agent_name": "codex", + "status": "proposed", + "created_at": "2026-07-11T23:22:30.705202Z", + "metadata": { + "source_tree": "91a1a831db7db788d17d79d591fd78d57f90b814", + "git_commit": "a472191bada39b250ed4082487d36c692d547ea5", + "attempt_head": "C_06FN735G153QVVDDEF4J670", + "attempt_head_kind": "checkpoint" + } +} diff --git a/.hop/records/prompts/P_06FN6ZT6X3MQTBCQK35GPER.json b/.hop/records/prompts/P_06FN6ZT6X3MQTBCQK35GPER.json new file mode 100644 index 0000000..7f392f8 --- /dev/null +++ b/.hop/records/prompts/P_06FN6ZT6X3MQTBCQK35GPER.json @@ -0,0 +1,17 @@ +{ + "id": "P_06FN6ZT6X3MQTBCQK35GPER", + "task_id": "T_06FN6ZANP5V1SKQWZBP9QZR", + "attempt_id": "AT_06FN6ZANP74SVA7HQZJVW9R", + "state_id": "P_06FN6ZT6X3MQTBCQK35GPER", + "prompt": "we dont need to show internal agent instructions at all. also why do all the agent responses say \"Roll completed agent sessions onto the latest accepted state\"", + "agent_name": "codex", + "status": "proposed", + "response_summary": "Hide internal prompt states and label proposal outcomes accurately", + "created_at": "2026-07-11T23:24:37.992663Z", + "metadata": { + "source_tree": "91a1a831db7db788d17d79d591fd78d57f90b814", + "git_commit": "641ef9e42d6e066f7a4be1c652fb2b3effdc1490", + "attempt_head": "C_06FN735G153QVVDDEF4J670", + "attempt_head_kind": "checkpoint" + } +} diff --git a/deploy/gitea/install-hop-native.sh b/deploy/gitea/install-hop-native.sh index a0ddcf0..7c0018e 100755 --- a/deploy/gitea/install-hop-native.sh +++ b/deploy/gitea/install-hop-native.sh @@ -29,6 +29,9 @@ docker compose --env-file "$env_file" cp \ docker compose --env-file "$env_file" cp \ deploy/gitea/public/assets/js/hop-native.js \ gitea:/data/gitea/public/assets/js/hop-native-v12.js +docker compose --env-file "$env_file" cp \ + deploy/gitea/public/assets/js/hop-native.js \ + gitea:/data/gitea/public/assets/js/hop-native-v13.js docker compose --env-file "$env_file" cp \ deploy/gitea/public/assets/css/hop-home.css \ gitea:/data/gitea/public/assets/css/hop-home.css diff --git a/deploy/gitea/public/assets/js/hop-native.js b/deploy/gitea/public/assets/js/hop-native.js index d922175..43fa0b7 100644 --- a/deploy/gitea/public/assets/js/hop-native.js +++ b/deploy/gitea/public/assets/js/hop-native.js @@ -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'); diff --git a/deploy/gitea/templates/custom/footer.tmpl b/deploy/gitea/templates/custom/footer.tmpl index c828ecc..6f2adeb 100644 --- a/deploy/gitea/templates/custom/footer.tmpl +++ b/deploy/gitea/templates/custom/footer.tmpl @@ -1,3 +1,3 @@ - +