fix: normalize Goosed reply payload and restart agent-run worker on release

Add id/created defaults for user_message, ensure metadata in agent-run
gateway before submit, and kickstart the agent-run worker after portal deploy
so queued page-generation runs use the latest runtime bundle.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-05 12:04:31 +08:00
parent cb7a446d3e
commit 1165ebf684
4 changed files with 18 additions and 4 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import {
persistSessionTranscriptFromSnapshot,
persistSessionTranscriptMessages,
} from './conversation-transcript-persist.mjs';
import { ensureGooseUserMessageMetadata } from './goose-message.mjs';
const DEFAULT_RUN_RETRY_DELAYS_MS = [1500, 5000, 15000];
const TERMINAL_STATUSES = new Set(['succeeded', 'failed']);
@@ -614,7 +615,7 @@ export function createAgentRunGateway({
row.user_id,
sessionId,
row.request_id,
userMessage,
ensureGooseUserMessageMetadata(userMessage),
{
toolMode: runOptions.toolMode,
forceDeepReasoning: runOptions.forceDeepReasoning,