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

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(
{

View File

@@ -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';

View File

@@ -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',

View File

@@ -44,7 +44,7 @@ export function parseMarkdownTodos(content: string): Todo[] {
const description = taskMarkerMatch[2].split('\n')[0].trim(); // Take only the first line as description
let status: TodoStatus = 'pending';
if (marker === 'x') {
if (marker?.toLowerCase() === 'x') {
status = 'completed';
} else if (marker === '/' || marker === '>') {
status = 'in_progress';