fix(prompt-gate): pin duplicate prompt dispatches
Keep prompt reservations briefly after successful dispatch so rapid idle/message/error transitions cannot inject the same follow-up twice. Route all production session prompt calls through the shared gate, restore skipped background resume state, release holds after abort/recovery paths, and preserve Ralph/ULW loop state when a dispatch is deferred. Add regression coverage for session routing, static prompt route auditing, team-mode live messaging, model suggestion retries, call-omo-agent reuse, background parent wakes, runtime fallback, compaction recovery, Atlas, and Ralph/ULW loops.
This commit is contained in:
@@ -105,7 +105,6 @@ export async function promptWithModelSuggestionRetry(
|
||||
} as Parameters<typeof client.session.promptAsync>[0],
|
||||
source: "model-suggestion-retry",
|
||||
settleMs: 0,
|
||||
postDispatchHoldMs: 0,
|
||||
})
|
||||
if (promptResult.status === "failed") {
|
||||
throw promptResult.error
|
||||
@@ -145,7 +144,6 @@ export async function promptSyncWithModelSuggestionRetry(
|
||||
} as Parameters<typeof client.session.prompt>[0],
|
||||
source: "model-suggestion-retry:sync",
|
||||
settleMs: 0,
|
||||
postDispatchHoldMs: 0,
|
||||
checkStatus: false,
|
||||
})
|
||||
if (promptResult.status === "failed") {
|
||||
@@ -198,7 +196,6 @@ export async function promptSyncWithModelSuggestionRetry(
|
||||
} as Parameters<typeof client.session.prompt>[0],
|
||||
source: "model-suggestion-retry:sync-retry",
|
||||
settleMs: 0,
|
||||
postDispatchHoldMs: 0,
|
||||
checkStatus: false,
|
||||
})
|
||||
if (promptResult.status === "failed") {
|
||||
|
||||
Reference in New Issue
Block a user