Retry desktop project bootstrap when list is transiently empty

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-02-17 05:08:46 +00:00
1 parent 5cda771f72
commit cec360e020
2 files changed
+35 -2

No files matched your search

+23
View File
@@ -668,6 +668,29 @@ async function main() {
);
}
const interactionChecks = [];
const threadClicks = Number(donePayload.interactions?.threadClicks ?? 0);
const typedChars = Number(donePayload.interactions?.typedChars ?? 0);
const terminalOpened = donePayload.interactions?.terminal?.openedByShortcut === true;
const terminalCommandTouched = donePayload.interactions?.terminal?.commandFileTouched === true;
if (threadClicks <= 0) {
interactionChecks.push("thread clicks");
}
if (typedChars <= 0) {
interactionChecks.push("typed chars");
}
if (!terminalOpened) {
interactionChecks.push("terminal shortcut open");
}
if (!terminalCommandTouched) {
interactionChecks.push("terminal command execution");
}
if (interactionChecks.length > 0) {
throw new Error(
`Desktop perf automation completed without required scripted interactions: ${interactionChecks.join(", ")}`,
);
}
const summary = summarizeTrace(tracePath);
const markdown = createMarkdownSummary({
tracePath,