address comments by bot and format

This commit is contained in:
A.K.M. Adib
2026-01-27 12:54:43 -05:00
parent f5bf268117
commit 6f59385e0c
4 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ export const planCommand: SlashCommand = {
const plansDir = config.storage.getProjectTempPlansDir();
try {
const securityCheck = await isDirectorySecure(plansDir);
const securityCheck = await isDirectorySecure(plansDir, {
owner: 'user',
});
if (!securityCheck.secure) {
context.ui.addItem(
{
@@ -25,7 +25,8 @@ import type {
FallbackIntent,
ValidationIntent,
AgentDefinition,
Todo } from '@google/gemini-cli-core';
Todo,
} from '@google/gemini-cli-core';
import type { DOMElement } from 'ink';
import type { SessionStatsState } from '../contexts/SessionContext.js';
import type { ExtensionUpdateState } from '../state/extensions.js';
@@ -26,7 +26,9 @@ export function usePlanMonitoring(config: Config) {
const updatePlan = async () => {
try {
const securityCheck = await isDirectorySecure(plansDir);
const securityCheck = await isDirectorySecure(plansDir, {
owner: 'user',
});
if (!securityCheck.secure) {
debugLogger.warn(
'Security check failed for plans directory',