fix(rectification): stop the opening body from repeating the collect prompt
Persist the interview slot before the opening turn, keep the stem in the question slot, and hide that slot while a run is busy so the same ask does not appear twice. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -662,6 +662,19 @@ export async function POST(request: Request) {
|
||||
};
|
||||
|
||||
try {
|
||||
if (action === "opening") {
|
||||
try {
|
||||
await persistNextInterviewIfIdle({
|
||||
accounting: accounting as never,
|
||||
userId,
|
||||
caseId,
|
||||
});
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
`[rectification-v9] persist opening interview failed case=${caseId} reason=${error instanceof Error ? error.name : "Unknown"}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
const result = await runV9AgentTurn({
|
||||
userId,
|
||||
caseId,
|
||||
|
||||
Reference in New Issue
Block a user