Roo-Code/src
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
..
__mocks__ Add timeout to OpenAI Compatible Provider Client (#9898) 2025-12-08 17:36:53 -08:00
__tests__ chore: treat extension .env as optional (#11116) 2026-01-30 16:15:50 -07:00
activate ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
api feat: migrate xAI provider to use dedicated @ai-sdk/xai package (#11158) 2026-02-02 23:56:07 -05:00
assets Show the Roo provider on the welcome screen (#8317) 2025-09-25 16:13:04 -04:00
core fix(EXT-696): prevent parent task deletion when API history file missing 2026-02-03 07:42:16 +00:00
extension IPC fixes for task cancellation and queued messages (#11162) 2026-02-02 11:13:56 -08:00
i18n feat: add mode dropdown to change skill mode dynamically (#10513) (#11102) 2026-01-31 00:22:49 -05:00
integrations refactor(read_file): Codex-inspired read_file refactor EXT-617 (#10981) 2026-01-29 15:16:32 -07:00
services fix(code-index): remove deprecated text-embedding-004 and migrate to gemini-embedding-001 (#11038) 2026-02-02 22:30:07 -05:00
shared fix(code-index): remove deprecated text-embedding-004 and migrate to gemini-embedding-001 (#11038) 2026-02-02 22:30:07 -05:00
types feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
utils fix: sanitize tool_use_id in tool_result blocks to match API history (#11131) 2026-01-30 23:15:25 -05:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
esbuild.mjs feat(proxy): add debug-mode proxy routing (#10467) 2026-01-06 13:17:50 -07:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts chore: treat extension .env as optional (#11116) 2026-01-30 16:15:50 -07:00
package.json feat: migrate xAI provider to use dedicated @ai-sdk/xai package (#11158) 2026-02-02 23:56:07 -05:00
package.nls.ca.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.de.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.es.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.fr.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.hi.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.id.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.it.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ja.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ko.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.nl.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.pl.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.pt-BR.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.ru.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.tr.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.vi.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.zh-CN.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
package.nls.zh-TW.json ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
tsconfig.json Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00
vitest.setup.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00