diff --git a/src/payload.config.ts b/src/payload.config.ts index a604ca63..3a0f3e94 100644 --- a/src/payload.config.ts +++ b/src/payload.config.ts @@ -817,14 +817,12 @@ export default buildConfig({ return createTextStreamResponse({ textStream }); }, + // Deliberately does not follow the connection selector: the plugin + // calls this while seeding field prompt instructions, which can happen + // during boot, and resolving a connection boots Payload (deadlock). + // Seeding is a one-off admin concern; prose Compose is unaffected. generateText: async (prompt: string, system: string) => { - const connection = await resolveConnection(null, "compose"); - const { text } = await generatePlainText( - prompt, - system, - connection?.modelId || DEFAULT_MODEL, - { connection }, - ); + const { text } = await generatePlainText(prompt, system, DEFAULT_MODEL); return text; }, output: "text",