fix(rectification): keep choice stems visible and align overlay adopt with the engine
Walkthrough polish: fail-closed empty D9 prompts, stop asserting the next question is on screen, vary same-domain collect copy, switch to reverse-verify after adopt, and let coverage route interview without blocking can_adopt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -122,6 +122,18 @@ export async function POST(request: Request, context: RouteContext) {
|
||||
return NextResponse.json({ error: "暂时无法采用该候选时间", code: "candidate_accept_rejected" }, { status: 409 });
|
||||
}
|
||||
const result = row as Record<string, unknown>;
|
||||
try {
|
||||
const { persistNextInterviewIfIdle } = await import(
|
||||
"@/lib/rectification-agentic/v9/answer-choice"
|
||||
);
|
||||
await persistNextInterviewIfIdle({
|
||||
accounting,
|
||||
userId: user.id,
|
||||
caseId,
|
||||
});
|
||||
} catch {
|
||||
// Accept already committed; the next successful turn-exit will replace the stale collect.
|
||||
}
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
saved_time: result.saved_time,
|
||||
|
||||
Reference in New Issue
Block a user