The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: fence same-call desktop legacy admission retries
Teknium41b017f1e3cc
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.tsindex 89948c9594e..7faa5d4ac27 100644--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/submit.ts@@ -858,6 +858,12 @@ export function useSubmitPrompt(deps: SubmitPromptDeps) {recoverStoredSessionId,liveId =>withSessionBusyRetry(async () => {+ // Recovery can re-enter this callback within the same submit.+ // An identityless write cannot be deduplicated after a lost ACK.+ if (prepared.legacyAttempted) {+ throw new Error('Legacy submission acknowledgement is unknown; automatic retry is unsafe')+ }+const params: Record<string, unknown> = { ...prepared.params, session_id: liveId }try {