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,
|
||||
|
||||
@@ -2905,6 +2905,14 @@ input:not([type="radio"]):not([type="checkbox"]):not([class^="ant-"]):not([class
|
||||
margin-block: var(--space-3);
|
||||
margin-inline-start: var(--assistant-content-inset);
|
||||
}
|
||||
.rectification-message-wrap .rectification-question-slot {
|
||||
width: calc(100% - var(--assistant-content-inset));
|
||||
margin-inline-start: var(--assistant-content-inset);
|
||||
}
|
||||
.rectification-message-wrap .rectification-question-slot > .rectification-choice-card {
|
||||
width: 100%;
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
.rectification-question-slot__prompt {
|
||||
margin: 0;
|
||||
color: var(--color-ink);
|
||||
|
||||
Reference in New Issue
Block a user