Roo-Code/src/core
Roo Code 5f46f32dab fix(EXT-696): prevent parent task deletion when API history file missing
This fixes the issue where parent tasks disappear from the UI in orchestrator
mode after delegating to a child task via new_task tool.

Root cause: In getTaskWithId(), if the historyItem existed in taskHistory but
the apiConversationHistory.json file did not exist (due to race conditions
during delegation), the method would incorrectly delete the task from state.

Fix: When historyItem exists but the API history file does not, return the
task with an empty apiConversationHistory array instead of deleting it. This
preserves the task metadata during delegation and prevents the parent task
from disappearing from the UI.

Added tests to verify:
- Task is preserved with empty API history when file is missing
- Task is properly deleted when historyItem does not exist
2026-02-03 07:42:16 +00:00
..
assistant-message fix: sanitize tool_use_id in tool_result blocks to match API history (#11131) 2026-01-30 23:15:25 -05:00
auto-approval refactor: replace fetch_instructions with skill tool and built-in skills (#11084) 2026-01-29 12:47:36 -07:00
checkpoints Add some functionality to @roo-code/core for the cli (#10584) 2026-01-09 13:05:15 -08:00
condense fix: transform tool blocks to text before condensing (EXT-624) (#10975) 2026-02-02 22:31:09 -05:00
config fix: auto-migrate v1 condensing prompt and handle invalid providers on import (#10931) 2026-01-23 22:32:04 -05:00
context/context-management Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
context-management feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
context-tracking feat(condense v2.1): add smart code folding (#10942) 2026-01-27 18:47:24 -05:00
diff refactor: remove legacy XML tool calling code (getToolDescription) (#10929) 2026-01-23 19:13:55 -05:00
environment feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
ignore Follow symlinks in rooignore checks (#7405) 2025-08-26 10:12:20 -04:00
mentions refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
message-manager feat: lossless terminal output with on-demand retrieval (#10944) 2026-01-27 22:12:19 -07:00
message-queue Move message queue to the extension host (#7604) 2025-09-02 19:12:18 -07:00
prompts refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
protect Mark code-workspace files as protected (#7403) 2025-08-26 00:09:14 -04:00
task IPC fixes for task cancellation and queued messages (#11162) 2026-02-02 11:13:56 -08:00
task-persistence chore: clean up XML legacy code and native-only comments (#10900) 2026-01-22 15:56:11 -05:00
tools feat(api): migrate Mistral provider to AI SDK (#11089) 2026-02-02 10:45:51 -05:00
webview fix(EXT-696): prevent parent task deletion when API history file missing 2026-02-03 07:42:16 +00:00