feat: auto-approve UI + session status approved
- sessions POST: look up coolifyServiceUuid, pass autoApprove:true to runner - sessions PATCH: approved added to terminal statuses (sets completed_at) - build/page.tsx: approved status, STATUS_COLORS/LABELS for "Shipped", auto-committed UI in changed files panel, bottom bar for approved state - Architecture doc: fully updated with current state Made-with: Cursor
This commit is contained in:
@@ -88,7 +88,7 @@ export async function PATCH(
|
||||
if (body.status) {
|
||||
updates.push(`status = $${idx++}`);
|
||||
values.push(body.status);
|
||||
if (body.status === "done" || body.status === "failed" || body.status === "stopped") {
|
||||
if (["done", "approved", "failed", "stopped"].includes(body.status)) {
|
||||
updates.push(`completed_at = now()`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user