Roo-Code/src
Roo Code 58f9492225 fix: prevent data loss in checkpoint restoration by removing dangerous git clean
- Removed the dangerous `git clean -d -f` command that was deleting all untracked files
- Simplified restoration to use only `git reset --hard` which preserves untracked files
- Added validation to ensure worktree configuration is correct before restoration
- Added check to verify commit exists before attempting restoration
- Added recovery methods (listStashes, recoverFromStash) for emergency data recovery
- Updated tests to reflect the safer behavior

This fixes the critical data loss issue where users were losing their entire codebase
when restoring checkpoints, especially when switching between different tools like
Copilot and Roo Code.

Fixes #6209
2025-07-25 12:53:18 +00:00
..
__mocks__ feature: add toggle for disable mcp server tool from prompt (#3551) 2025-06-20 19:14:59 -04:00
__tests__ Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
activate fix (#5540) 2025-07-09 20:57:10 -04:00
api Add support for bedrock api keys (#6132) 2025-07-25 01:04:49 -04:00
assets PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
core feat: add efficiency warning for single SEARCH/REPLACE blocks in apply_diff (#6055) 2025-07-25 00:40:43 -04:00
extension Log API-initiated tasks to a tmp directory (#5833) 2025-07-17 11:47:21 -07:00
i18n feat: add confirmation dialog and proper cleanup for marketplace mode removal (#6136) 2025-07-24 00:57:10 -04:00
integrations feat: Add settings to control diagnostic messages (#5524) (#5582) 2025-07-23 14:49:41 -04:00
services fix: prevent data loss in checkpoint restoration by removing dangerous git clean 2025-07-25 12:53:18 +00:00
shared Expose default modes in @roo-code/types (#6184) 2025-07-24 22:13:40 -04:00
utils fix: add Git installation check for checkpoints feature (#3109) (#5920) 2025-07-22 21:31:20 -04: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 debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts feat: Add automatic configuration import on extension startup (#4848) 2025-06-30 10:45:51 -04:00
package.json Add support for bedrock api keys (#6132) 2025-07-25 01:04:49 -04:00
package.nls.ca.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.de.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.es.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.fr.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.hi.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.id.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.it.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ja.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ko.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.nl.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.pl.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.pt-BR.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.ru.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.tr.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.vi.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.zh-CN.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
package.nls.zh-TW.json feat: add support for Agent Rules standard via AGENTS.md (#5966) (#5969) 2025-07-24 00:42:11 -04:00
tsconfig.json fix typescript compiler watch path inconsistency (#5155) 2025-07-08 10:40:01 -04:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Fix #4958: Increase vitest timeout for Windows CI (#4959) 2025-06-20 17:14:42 -07:00
vitest.setup.ts Farewell jest (#4607) 2025-06-16 21:39:45 -07:00