fix(rectification): stop the opening body from repeating the collect prompt
Independent Staging Quality Gate / validate (push) Has been cancelled
Independent Staging Quality Gate / publish (push) Has been cancelled

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:
Jesse_Chen
2026-09-02 14:53:10 +08:00
co-authored by Cursor
parent aab3ad4b84
commit 661a0dab14
8 changed files with 61 additions and 8 deletions
@@ -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,