Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
27 changes: 12 additions & 15 deletions services/cloud-agent-next/src/session-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3339,22 +3339,19 @@ describe('SessionService.buildWrapperSessionReadyAndPromptRequests', () => {
});
});

it.each([
['cloud-agent-web', true],
[undefined, false],
['app-builder', false],
['code-review', false],
['slack', false],
])('sets Kilo snapshots for %s-origin sessions to %s', async (createdOnPlatform, snapshot) => {
const result = await buildPromptWrapperRequests(createMetadata({ createdOnPlatform }));
const kiloConfig = JSON.parse(result.readyRequest.materialized.env.KILO_CONFIG_CONTENT) as {
snapshot?: boolean;
};
const opencodeConfig = JSON.parse(result.readyRequest.materialized.env.OPENCODE_CONFIG_CONTENT);
it.each(['cloud-agent-web', undefined, 'app-builder', 'code-review', 'slack'])(
'disables Kilo snapshots for %s-origin sessions',
async createdOnPlatform => {
const result = await buildPromptWrapperRequests(createMetadata({ createdOnPlatform }));
const kiloConfig = JSON.parse(result.readyRequest.materialized.env.KILO_CONFIG_CONTENT) as {
snapshot?: boolean;
};
const opencodeConfig = JSON.parse(result.readyRequest.materialized.env.OPENCODE_CONFIG_CONTENT);

expect(kiloConfig.snapshot).toBe(snapshot);
expect(opencodeConfig).toEqual(kiloConfig);
});
expect(kiloConfig.snapshot).toBe(false);
expect(opencodeConfig).toEqual(kiloConfig);
}
);

it.each(['fake-deterministic', 'kilo/fake-deterministic'])(
'pins small_model and title model when the session model is %s',
Expand Down
2 changes: 1 addition & 1 deletion services/cloud-agent-next/src/session-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ export class SessionService {
},
},
autoupdate: false,
snapshot: createdOnPlatform === 'cloud-agent-web',
snapshot: false,
Comment thread
kilo-code-bot[bot] marked this conversation as resolved.
};
if (!bitbucketInputPath && mcpServers && Object.keys(mcpServers).length > 0) {
const materialized = materializeMcpServers(mcpServers, env.AGENT_ENV_VARS_PRIVATE_KEY);
Expand Down
Loading