Skip to content

[Feat] Add Roo Code history import to the About page#141

Merged
edelauna merged 4 commits into
mainfrom
feature/import-roo-history-3rocsalfk3hja
Jun 21, 2026
Merged

[Feat] Add Roo Code history import to the About page#141
edelauna merged 4 commits into
mainfrom
feature/import-roo-history-3rocsalfk3hja

Conversation

@roomote

@roomote roomote Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor

Opened on behalf of Toray Altas. View the task or mention @roomote for follow-up asks.

What problem this solves

Adds a clearer Roo Code history import flow in Zoo Code's About page so users can bring over existing task history and see visible progress while the import is running.

Why this change was made

The import flow already resolved Roo and Zoo storage roots and copied only the top-level history files Zoo uses. This update threads progress events from the extension host back to the About card, so the UI can disable the action while the import is active and show real percentage/file progress instead of looking idle.

User impact

Users now get a more obvious Import history from Roo Code card in the About section, plus a live progress bar, percentage, and copy counts while Roo history is being imported. When the import finishes, Zoo refreshes the history list immediately; when there is nothing to import or the import fails, the UI resets cleanly instead of leaving an ambiguous in-progress state.

Screen.Recording.2026-05-15.at.9.52.05.pm.mov

@roomote roomote Bot added the roomote:auto-resolve-conflicts Allow Roomote to auto-resolve merge conflicts for this PR label May 15, 2026
@roomote roomote Bot assigned taltas May 15, 2026
@roomote

roomote Bot commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

3 issues outstanding. Action required. See task

  • Re-importing a task overwrites an existing Zoo tasks/<id> directory and can roll back newer Zoo-side history.
  • Import failures from stale or inaccessible Roo storage paths are not surfaced to the user.
  • Re-importing an already-imported Roo task now reports No Roo Code task history was found even though Roo history exists and Zoo only skipped copying because the destination already exists.
  • platform-unit-test (windows-latest) is still pending after the bounded CI wait.
  • platform-unit-test (ubuntu-latest) is still pending after the bounded CI wait.

Comment thread src/core/task-persistence/importRooTaskHistory.ts Outdated
Comment thread src/core/webview/webviewMessageHandler.ts Outdated
@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.58447% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/core/task-persistence/importRooTaskHistory.ts 88.75% 12 Missing and 6 partials ⚠️
webview-ui/src/components/settings/About.tsx 82.35% 3 Missing and 3 partials ⚠️
src/core/webview/webviewMessageHandler.ts 96.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@taltas taltas marked this pull request as ready for review May 16, 2026 02:11
@navedmerchant

Copy link
Copy Markdown
Contributor

How about creating a top level import export settings tab for discoverability? This way users can quickly find the page. We can also redirect users to this page with the import export link

@edelauna edelauna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - This is so cool!

Comment thread src/core/task-persistence/importRooTaskHistory.ts
Comment thread webview-ui/src/components/settings/About.tsx Outdated
Comment thread webview-ui/src/components/settings/__tests__/About.spec.tsx
@taltas

taltas commented May 16, 2026

Copy link
Copy Markdown
Contributor

How about creating a top level import export settings tab for discoverability? This way users can quickly find the page. We can also redirect users to this page with the import export link

I did think about it, but this is a temporary issue until we complete the migration, and there are so many menu tabs already. I think this is a reasonable place to put it. I do think we should add a link in the readme and version announcement popup that links to the about section, showing the import of history etc.
@navedmerchant

@navedmerchant

Copy link
Copy Markdown
Contributor

How about creating a top level import export settings tab for discoverability? This way users can quickly find the page. We can also redirect users to this page with the import export link

I did think about it, but this is a temporary issue until we complete the migration, and there are so many menu tabs already. I think this is a reasonable place to put it. I do think we should add a link in the readme and version announcement popup that links to the about section, showing the import of history etc. @navedmerchant

Sounds good!

Comment thread src/core/task-persistence/importRooTaskHistory.ts
@taltas taltas requested a review from edelauna May 18, 2026 14:41
Comment thread webview-ui/src/components/settings/About.tsx Outdated
@edelauna edelauna force-pushed the feature/import-roo-history-3rocsalfk3hja branch from b495e13 to 61ab73e Compare June 17, 2026 03:05

@taltas taltas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small tweaks

Add can you also add a regression test that runs two importRooTaskHistory() calls concurrently against the same Roo task and asserts the imported Zoo task directory contains the complete expected file set.

Comment thread src/core/task-persistence/importRooTaskHistory.ts Outdated
Comment thread webview-ui/src/components/settings/About.tsx Outdated
@github-actions github-actions Bot added the awaiting-author PR is waiting for the author to address requested changes label Jun 21, 2026
@edelauna edelauna requested a review from taltas June 21, 2026 00:59
@edelauna edelauna force-pushed the feature/import-roo-history-3rocsalfk3hja branch from 2ff09f0 to d45ef4e Compare June 21, 2026 02:28

@taltas taltas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes addressed

@edelauna edelauna added this pull request to the merge queue Jun 21, 2026
Merged via the queue into main with commit e2fce6c Jun 21, 2026
9 checks passed
@edelauna edelauna deleted the feature/import-roo-history-3rocsalfk3hja branch June 21, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author PR is waiting for the author to address requested changes roomote:auto-resolve-conflicts Allow Roomote to auto-resolve merge conflicts for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants