Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions apps/kimi-code/test/cli/run-prompt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,17 +665,6 @@ describe('runPrompt', () => {
expect(mocks.harnessCreateSession).not.toHaveBeenCalled();
});

it('does not forward an agent profile when resuming a concrete v1 session', async () => {
// validateOptions rejects --agent with --session; runPrompt must not
// forward a profile to resume even if a caller hands one over.
await runPrompt(opts({ session: 'ses_existing', agent: 'reviewer' }), '1.2.3-test', {
stdout: writer(),
stderr: writer(),
});

expect(mocks.harnessResumeSession).toHaveBeenCalledWith({ id: 'ses_existing' });
});

it('allows resuming a concrete session when Windows workdir uses backslashes', async () => {
const cwd = vi.spyOn(process, 'cwd').mockReturnValue(String.raw`C:\Users\kimi\project`);
mocks.harnessListSessions.mockResolvedValueOnce([
Expand Down Expand Up @@ -948,17 +937,6 @@ describe('runPrompt', () => {
expect(mocks.harnessCreateSession).not.toHaveBeenCalled();
});

it('does not forward an agent profile when continuing a previous v1 session', async () => {
// validateOptions rejects --agent with --continue; runPrompt must not
// forward a profile to resume even if a caller hands one over.
await runPrompt(opts({ continue: true, agent: 'reviewer' }), '1.2.3-test', {
stdout: writer(),
stderr: writer(),
});

expect(mocks.harnessResumeSession).toHaveBeenCalledWith({ id: 'ses_previous' });
});

it('continues a previous session without a configured default model', async () => {
mocks.harnessGetConfig.mockResolvedValueOnce({ providers: {}, telemetry: true });
mocks.session.getStatus.mockResolvedValueOnce({ permission: 'manual', model: 'saved-model' });
Expand Down
Loading
Loading