Skip to content

"roo code" reads all repo files when executing commands, resulting in the inability to call the large model.Β #6194

@LuoXingchen935

Description

@LuoXingchen935

App Version

3.23.19

API Provider

OpenAI Compatible

Model Used

Deepseek-R1

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

1.Ubuntu Desktop 24.04.2, Visual Studio Code 1.102.1, Roo Code 3.23.19
2.Inputting a problem and commenting on the current file code will return a connection error.

πŸ’₯ Outcome Summary

Any mode execution will return a connection error, and even if only a part of the characters is selected, all files will be read, resulting in a truncated list.

πŸ“„ Relevant Logs or Errors (Optional)

<task>
Explain the following code from file path src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx:1-48



import { ProviderIcon } from '@lobehub/icons';
import {
  type FormItemProps,
  FormModal,
  Icon,
  Input,
  InputPassword,
  Select,
  TextArea,
} from '@lobehub/ui';
import { App } from 'antd';
import { BrainIcon } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { memo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';

import { useAiInfraStore } from ''store/aiInfra/store'' (see below for file content);
import { CreateAiProviderParams } from ''types/aiProvider'' (see below for file content);

import { KeyVaultsConfigKey, LLMProviderApiTokenKey, LLMProviderBaseUrlKey } from '../../const';

interface CreateNewProviderProps {
  onClose?: () => void;
  open?: boolean;
}

const CreateNewProvider = memo<CreateNewProviderProps>(({ onClose, open }) => {
  const { t } = useTranslation('modelProvider');
  const [loading, setLoading] = useState(false);
  const createNewAiProvider = useAiInfraStore((s) => s.createNewAiProvider);
  const { message } = App.useApp();
  const router = useRouter();
  const onFinish = async (values: CreateAiProviderParams) => {
    setLoading(true);

    try {
      await createNewAiProvider(values);
      setLoading(false);
      router.push(`/settings/provider/${values.id}`);
      message.success(t('createNewAiProvider.createSuccess'));
      onClose?.();
    } catch (e) {
      console.error(e);
      setLoading(false);
    }
  };



Please provide a clear and concise explanation of what this code does, including:
1. The purpose and functionality
2. Key components and their interactions
3. Important patterns or techniques used
</task>

<file_content path="store/aiInfra/store'">
Error fetching content: Failed to access path "store/aiInfra/store'": ENOENT: no such file or directory, stat '/home/user/git/lobe-chat/store/aiInfra/store''
</file_content>

<file_content path="types/aiProvider'">
Error fetching content: Failed to access path "types/aiProvider'": ENOENT: no such file or directory, stat '/home/user/git/lobe-chat/types/aiProvider''
</file_content>

<environment_details>
# VSCode Visible Files
src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx

# VSCode Open Tabs
src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx

# Current Time
Current time in ISO 8601 UTC format: 2025-07-25T01:41:49.768Z
User time zone: Asia/Shanghai, UTC+8:00

# Current Cost
$0.00

# Current Mode
<slug>code</slug>
<name>πŸ’» Code</name>
<model>DeepSeek-R1</model>


# Current Workspace Directory (/home/user/git/lobe-chat) Files
__mocks__/
__mocks__/zustand/
apps/
apps/desktop/
apps/desktop/resources/
apps/desktop/resources/locales/
apps/desktop/resources/locales/ar/
apps/desktop/resources/locales/bg-BG/
apps/desktop/resources/locales/de-DE/
apps/desktop/resources/locales/en-US/
apps/desktop/resources/locales/es-ES/
apps/desktop/resources/locales/fa-IR/
apps/desktop/resources/locales/fr-FR/
apps/desktop/resources/locales/it-IT/
apps/desktop/resources/locales/ja-JP/
apps/desktop/resources/locales/ko-KR/
changelog/
docker-compose/
docs/
locales/
packages/
public/
scripts/
src/
tests/

(File list truncated. Use list_files on specific subdirectories if you need to explore further.)
You have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps.
</environment_details>

[TASK RESUMPTION] This task was interrupted 8 minutes ago. It may or may not be complete, so please reassess the task context. Be aware that the project state may have changed since then. If the task has not been completed, retry the last step before interruption and proceed with completing the task.

Note: If you previously attempted a tool use that the user did not provide a result for, you should assume the tool use was not successful and assess whether you should retry. If the last tool was a browser_action, the browser has been closed and you must launch a new browser if needed.

<environment_details>
# VSCode Visible Files
src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx

# VSCode Open Tabs
src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx

# Current Time
Current time in ISO 8601 UTC format: 2025-07-25T01:49:55.552Z
User time zone: Asia/Shanghai, UTC+8:00

# Current Cost
$0.00

# Current Mode
<slug>code</slug>
<name>πŸ’» Code</name>
<model>DeepSeek-R1</model>


# Current Workspace Directory (/home/user/git/lobe-chat) Files
__mocks__/
__mocks__/zustand/
apps/
apps/desktop/
apps/desktop/resources/
apps/desktop/resources/locales/
apps/desktop/resources/locales/ar/
apps/desktop/resources/locales/bg-BG/
apps/desktop/resources/locales/de-DE/
apps/desktop/resources/locales/en-US/
apps/desktop/resources/locales/es-ES/
apps/desktop/resources/locales/fa-IR/
apps/desktop/resources/locales/fr-FR/
apps/desktop/resources/locales/it-IT/
apps/desktop/resources/locales/ja-JP/
apps/desktop/resources/locales/ko-KR/
changelog/
docker-compose/
docs/
locales/
packages/
public/
scripts/
src/
tests/

(File list truncated. Use list_files on specific subdirectories if you need to explore further.)
You have not created a todo list yet. Create one with `update_todo_list` if your task is complicated or involves multiple steps.
</environment_details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs InfoMissing details or unclear. Waiting on author to provide more context.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions