Skip to content

Commit f645f02

Browse files
chore(deps): update dependency csstype to v3.2.3 (#827)
* chore(deps): update dependency csstype to v3.2.3 * fix(e2e): wait for reopened parent before draining stack in delegation test --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Elliott de Launay <edelauna@gmail.com>
1 parent 1a46e05 commit f645f02

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

apps/vscode-e2e/src/suite/subtasks.test.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,17 @@ suite("Roo Code Subtasks", function () {
241241
} finally {
242242
api.off(RooCodeEventName.Message, messageHandler)
243243
api.off(RooCodeEventName.TaskDelegationCompleted, delegationCompletedHandler)
244-
if (api.getCurrentTaskStack().length > 0) {
245-
await api.clearCurrentTask()
244+
// TaskDelegationCompleted fires before createTaskWithHistoryItem completes,
245+
// so the reopened parent may not be on the stack yet. Wait for it to appear
246+
// before draining, otherwise the next test sees a late-rehydrated stray task.
247+
if (delegationCompletedParentId) {
248+
await waitFor(
249+
() =>
250+
api.getCurrentTaskStack().length > 0 ||
251+
api.getCurrentTaskStack().includes(delegationCompletedParentId!),
252+
).catch(() => {})
246253
}
247-
if (api.getCurrentTaskStack().length > 0) {
254+
while (api.getCurrentTaskStack().length > 0) {
248255
await api.clearCurrentTask()
249256
}
250257
await waitFor(() => api.getCurrentTaskStack().length === 0).catch(() => {})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"glob": "11.1.0",
6666
"@types/react": "18.3.31",
6767
"@types/react-dom": "18.3.7",
68-
"csstype": "3.1.3",
68+
"csstype": "3.2.3",
6969
"zod": "3.25.76"
7070
}
7171
}

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)