fix: address steer review feedback

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-09 17:07:05 -07:00
parent 4a29c13e0d
commit 89b705194b
2 changed files with 56 additions and 31 deletions

View file

@ -107,12 +107,12 @@ describe("GatewayRuntime steer handling", () => {
sessionKey: "chat",
});
await new Promise((resolve) => setTimeout(resolve, 0));
expect(session.steer).not.toHaveBeenCalled();
expect(session.prompt).toHaveBeenCalledWith("pick this up next", {
images: undefined,
source: "extension",
await vi.waitFor(() => {
expect(session.prompt).toHaveBeenCalledWith("pick this up next", {
images: undefined,
source: "extension",
});
});
});
});