-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Description
When resuming a task while opening and closing orchestrator tasks, the API conversation history file is sometimes truncated to an empty array [].
I am speculating that there was a race condition which caused multiple simultaneous writes to api_conversation_history.json when I was clicking between tasks, and #3772 will probably fix this because it is atomic and has a lock to prevent simultaneous activity on the same file.
Error
mainThreadExtensionService.ts:78 [RooVeterinaryInc.roo-cline]Unexpected: No existing API conversation history
mainThreadExtensionService.ts:79 Error: Unexpected: No existing API conversation history
at _Task.resumeTaskFromHistory (vscode-file://vscode…task/Task.ts:922:10)
log.ts:460 ERR An unknown error occurred. Please consult the log for more details.
Debug Information
Added debug logging shows that the file exists but contains an empty array:
[Roo-Debug] readApiMessages: Found API conversation history file, but it's empty. TaskId: 33369d03-10fb-436e-a708-ec3cdde71d80, Path: ~/.config/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/tasks/33369d03-10fb-436e-a708-ec3cdde71d80/api_conversation_history.json
Reproduction Steps
- Open a task
- Open an orchestrator task from within that task
- Close the orchestrator task
- Attempt to resume the original task
Potential Fix
PR #3772 (#3772) may address this issue, though the exact cause is still unknown.
Impact
This causes task resumption to fail with the error "Unexpected: No existing API conversation history" and prevents users from continuing their work.
dosubot
Metadata
Metadata
Assignees
Labels
Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.Someone is actively working on this. Should link to a PR soon.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done