Move session storage from .continue-cli/sessions to .continue/cli-sessions
This commit is contained in:
parent
8b2cc4e3c0
commit
c0280e461d
2 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ describe("E2E: Resume Flag", () => {
|
|||
expect(firstResult.stdout).toContain("Hello! Nice to meet you.");
|
||||
|
||||
// Verify that a session file was created
|
||||
const sessionDir = path.join(context.testDir, ".continue-cli", "sessions");
|
||||
const sessionDir = path.join(context.testDir, ".continue", "cli-sessions");
|
||||
const sessionFiles = await fs.readdir(sessionDir);
|
||||
expect(sessionFiles).toHaveLength(1);
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ describe("E2E: Resume Flag", () => {
|
|||
expect(firstResult.stdout).toContain("First response");
|
||||
|
||||
// Verify the first session was saved correctly
|
||||
const sessionDir = path.join(context.testDir, ".continue-cli", "sessions");
|
||||
const sessionDir = path.join(context.testDir, ".continue", "cli-sessions");
|
||||
let sessionFiles = await fs.readdir(sessionDir);
|
||||
expect(sessionFiles).toHaveLength(1);
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ function getSessionId(): string {
|
|||
function getSessionDir(): string {
|
||||
// For tests, use the test directory if we're in test mode
|
||||
if (process.env.CONTINUE_CLI_TEST && process.env.HOME) {
|
||||
const sessionDir = path.join(process.env.HOME, ".continue-cli", "sessions");
|
||||
const sessionDir = path.join(process.env.HOME, ".continue", "cli-sessions");
|
||||
|
||||
// Create directory if it doesn't exist
|
||||
if (!fs.existsSync(sessionDir)) {
|
||||
|
|
@ -167,7 +167,7 @@ function getSessionDir(): string {
|
|||
}
|
||||
|
||||
const homeDir = os.homedir();
|
||||
const sessionDir = path.join(homeDir, ".continue-cli", "sessions");
|
||||
const sessionDir = path.join(homeDir, ".continue", "cli-sessions");
|
||||
|
||||
// Create directory if it doesn't exist
|
||||
if (!fs.existsSync(sessionDir)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue