rm unused test
This commit is contained in:
1 parent
d2dea0f22c
commit
e39fa96421
1 file changed
-45
@@ -904,51 +904,6 @@ describe("ProviderCommandReactor", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("routes turns by explicit provider even when the model slug is shared", async () => {
|
||||
const harness = await createHarness();
|
||||
const now = new Date().toISOString();
|
||||
|
||||
await Effect.runPromise(
|
||||
harness.engine.dispatch({
|
||||
type: "thread.create",
|
||||
commandId: CommandId.makeUnsafe("cmd-thread-create-cursor-shared-slug"),
|
||||
threadId: ThreadId.makeUnsafe("thread-shared-slug"),
|
||||
projectId: asProjectId("project-1"),
|
||||
title: "Shared slug thread",
|
||||
modelSelection: { provider: "cursor", model: "gpt-5.3-codex" },
|
||||
interactionMode: DEFAULT_PROVIDER_INTERACTION_MODE,
|
||||
runtimeMode: "approval-required",
|
||||
branch: null,
|
||||
worktreePath: null,
|
||||
createdAt: now,
|
||||
}),
|
||||
);
|
||||
|
||||
await Effect.runPromise(
|
||||
harness.engine.dispatch({
|
||||
type: "thread.turn.start",
|
||||
commandId: CommandId.makeUnsafe("cmd-turn-start-shared-slug"),
|
||||
threadId: ThreadId.makeUnsafe("thread-shared-slug"),
|
||||
message: {
|
||||
messageId: asMessageId("user-message-shared-slug"),
|
||||
role: "user",
|
||||
text: "first",
|
||||
attachments: [],
|
||||
},
|
||||
modelSelection: { provider: "cursor", model: "gpt-5.3-codex" },
|
||||
interactionMode: DEFAULT_PROVIDER_INTERACTION_MODE,
|
||||
runtimeMode: "approval-required",
|
||||
createdAt: now,
|
||||
}),
|
||||
);
|
||||
|
||||
await waitFor(() => harness.startSession.mock.calls.length === 1);
|
||||
await waitFor(() => harness.sendTurn.mock.calls.length === 1);
|
||||
expect(harness.startSession.mock.calls[0]?.[1]).toMatchObject({
|
||||
modelSelection: { provider: "cursor", model: "gpt-5.3-codex" },
|
||||
});
|
||||
});
|
||||
|
||||
it("reuses the same provider session when runtime mode is unchanged", async () => {
|
||||
const harness = await createHarness();
|
||||
const now = new Date().toISOString();
|
||||
|
||||
Reference in new issue
Block a user