feat: improve admin upgrade logs

This commit is contained in:
Codex
2026-05-09 08:07:24 +00:00
parent e072f219e4
commit f2817ab8fd
3 changed files with 110 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ export async function GET(request: NextRequest) {
const states = await readStates();
return NextResponse.json({
latest: states[0] || null,
history: states.slice(0, 12),
history: states,
stateDir: getUpgradeStateRoot(),
running: states.some(job => RUNNING_STATUSES.has(job.status)),
});