History

Retry desktop project bootstrap when list is transiently empty

Cursor Agent committed 9 months ago

Commit cec360e1 parent 5cda7712 files · +35 −2Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/desktop-perf-trace.mjs+23−0
@@ -668,6 +668,29 @@ async function main() { · 667 unmodified lines
668 );668 );
669 }669 }
670 670
671 const interactionChecks = [];
672 const threadClicks = Number(donePayload.interactions?.threadClicks ?? 0);
673 const typedChars = Number(donePayload.interactions?.typedChars ?? 0);
674 const terminalOpened = donePayload.interactions?.terminal?.openedByShortcut === true;
675 const terminalCommandTouched = donePayload.interactions?.terminal?.commandFileTouched === true;
676 if (threadClicks <= 0) {
677 interactionChecks.push("thread clicks");
678 }
679 if (typedChars <= 0) {
680 interactionChecks.push("typed chars");
681 }
682 if (!terminalOpened) {
683 interactionChecks.push("terminal shortcut open");
684 }
685 if (!terminalCommandTouched) {
686 interactionChecks.push("terminal command execution");
687 }
688 if (interactionChecks.length > 0) {
689 throw new Error(
690 `Desktop perf automation completed without required scripted interactions: ${interactionChecks.join(", ")}`,
691 );
692 }
693
671 const summary = summarizeTrace(tracePath);694 const summary = summarizeTrace(tracePath);
672 const markdown = createMarkdownSummary({695 const markdown = createMarkdownSummary({
673 tracePath,696 tracePath,