Skip to content

Commit 519813f

Browse files
committed
fix(e2e): replace undefined conversationLength with sequence check
1 parent 66b7b0a commit 519813f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

apps/vscode-e2e/src/suite/restart-persistence.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,15 @@ async function runVerify(api: RooCodeAPI): Promise<void> {
106106
reopenedHistoryItem.task.includes("RESTART_PERSISTENCE_SMOKE"),
107107
"Reopened task should retain its persisted history title",
108108
)
109-
assert.ok(
110-
(await api.getTaskApiConversationHistoryLength(taskId)) >= conversationLength,
111-
"Reopened task should retain its persisted API conversation history",
109+
const reopenedCompletion = await api.hasTaskApiConversationHistorySequence(taskId, {
110+
userText: "RESTART_PERSISTENCE_SMOKE",
111+
assistantToolName: "attempt_completion",
112+
assistantToolInputText: MARKER,
113+
})
114+
assert.strictEqual(
115+
reopenedCompletion,
116+
true,
117+
"Reopened-host history should restore the marked user turn followed by its assistant completion",
112118
)
113119

114120
await writePhaseResult(getResultsDir(), {

0 commit comments

Comments
 (0)