Skip to content

The open-source app everyone uses to manage agents at work

fix(server): check MIGRATION_AUTO_APPLY before MIGRATION_PROMPT

Devin Foleydd1d9bed80b2
diff --git a/server/src/index.ts b/server/src/index.ts
index eb0964ee17..74665a9e04 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -94,8 +94,8 @@ export async function startServer(): Promise<StartedServer> {
}
async function promptApplyMigrations(migrations: string[]): Promise<boolean> {
- if (process.env.PAPERCLIP_MIGRATION_PROMPT === "never") return false;
if (process.env.PAPERCLIP_MIGRATION_AUTO_APPLY === "true") return true;
+ if (process.env.PAPERCLIP_MIGRATION_PROMPT === "never") return false;
if (!stdin.isTTY || !stdout.isTTY) return true;
const prompt = createInterface({ input: stdin, output: stdout });