mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Move the shell history our of the project .gemini to the home dir (#1195)
This commit is contained in:
@@ -7,14 +7,13 @@
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import * as fs from 'fs/promises';
|
||||
import * as path from 'path';
|
||||
import { isNodeError } from '@gemini-cli/core';
|
||||
import { isNodeError, getProjectTempDir } from '@gemini-cli/core';
|
||||
|
||||
const HISTORY_DIR = '.gemini';
|
||||
const HISTORY_FILE = 'shell_history';
|
||||
const MAX_HISTORY_LENGTH = 100;
|
||||
|
||||
async function getHistoryFilePath(projectRoot: string): Promise<string> {
|
||||
const historyDir = path.join(projectRoot, HISTORY_DIR);
|
||||
const historyDir = getProjectTempDir(projectRoot);
|
||||
return path.join(historyDir, HISTORY_FILE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user