The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(webapp): prompt-action tests read the journal through the exported entry prefix
unsupportedpastelscb30903f6d47
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions-test-utils.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions-test-utils.tsindex 72ceef249d1..1343a6d468f 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions-test-utils.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions-test-utils.ts@@ -1,8 +1,6 @@-import type { PreparedSubmission } from './prepared-submissions'+import { ENTRY_PREFIX, type PreparedSubmission } from './prepared-submissions'// The browser journal as localStorage holds it: one key per entry.-const ENTRY_PREFIX = 'hermes.desktop.preparedSubmissions.v2:'-const storedKeys = () => Array.from({ length: window.localStorage.length }, (_, index) => window.localStorage.key(index)!)const removeStoredKeys = (remove: (key: string) => boolean) => {diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions.tsindex df87a434587..2d7c9d32eda 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/prepared-submissions.ts@@ -9,7 +9,7 @@ const STORAGE_KEY = 'hermes.desktop.preparedSubmissions.v1'// last-writer-wins per KEY, so while the journal was one blob under STORAGE_KEY, two tabs rewriting// it at once could drop an entry the other had just written or restore one it had just retired.// Writing or retiring an entry now touches only keys of its own.-const ENTRY_PREFIX = 'hermes.desktop.preparedSubmissions.v2:'+export const ENTRY_PREFIX = 'hermes.desktop.preparedSubmissions.v2:'// The blob may still hold an earlier build's uncertain sends. They stay adoptable from it, behind// any entry under its own key, and the blob is never rewritten: retiring a key also retires the// blob's entry there only when that entry carries the retired id, recorded as that id under a