Skip to content

[BUG] RooCode stuck on “API request in progress” when reading main.py (DeepSeek API mode) #8679

@Spice-monkey

Description

@Spice-monkey

Problem (one or two sentences)

I’m encountering an issue when using RooCode (with the DeepSeek API) to read or analyze a Python file that contains a main() function.While RooCode works perfectly fine with other Python files, it consistently gets stuck showing “API request in progress” when processing my main.py.The same file runs correctly in my local Python environment with no runtime issues.

Context (who is affected and when)

This issue affects users who rely on RooCode’s DeepSeek integration for analyzing Python projects.
Specifically, it occurs when the user opens a Python file containing a main() function and tries to send it to DeepSeek.
All other files and workflows continue to work as expected.

Reproduction steps

Environment:
RooCode version: 3.28.7
File type: Python (.py)
File length: around 200–300 lines
Operating system: Win11
API mode: DeepSeek API
Integration: VSCode RooCode plugin

Situation:
Open a Python file that includes a main() function, for example:

def main():
...
if name == "main":
main()

Use RooCode’s “Send to DeepSeek” or similar command to analyze the file.

The plugin shows “API request in progress” indefinitely, without any response

Additional context:
When I originally wrote this file, I also used RooCode with DeepSeek assistance.
At that time, I could repeatedly read, edit, and send the same file without any issue.
This hanging behavior started appearing later, without any obvious change to my code or API setup.

Expected result

RooCode should process the file and return a response from DeepSeek API, just like it does for other files.

Actual result

The interface remains stuck at “API request in progress”. No error messages appear. Other files work perfectly fine under the same setup.

Variations tried (optional)

What I’ve Tried:

Verified that the file is small (only a few KB).
Confirmed UTF-8 (no BOM) encoding.
Confirmed that DeepSeek API works for all other files.
Disabled all other VSCode extensions.
Tested several RooCode versions (including 3.27.x and 3.28.x) — same behavior.
I have not tried other API providers, and due to personal constraints, switching to another API vendor is not feasible.
My only goal is to make RooCode work properly with DeepSeek API.

App Version

3.28.7

API Provider (optional)

DeepSeek

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions