Skip to content

Add projects you've used with Claude Code, Codex and other CLIs from their history - #1863

Merged
currentbits merged 13 commits into
mainfrom
coder/add-projects-from-cli-history-1858-b90d70
Nov 8, 2026
Merged

currentbits merged 13 commits into
mainfrom
coder/add-projects-from-cli-history-1858-b90d70

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Add project now has From CLI history…. It lists the folders you've already worked in with Claude Code, Codex, Grok, Cursor, OpenCode, Kimi or Muse that aren't in Solenta yet, so you can add them with one click.

  • Discovery: discoverHistoryProjects reads every CLI's session history: ~/.claude/projects, Codex sessions, and the others cli-sessions* already knew. It dedupes by real path and leaves out:
    • folders already added as projects;
    • folders that no longer exist;
    • temp folders;
    • git worktrees, including Solenta's own worktree folder.
      Each entry carries which CLIs used it, when it was last used, and its session count. The list is sorted by recency and capped.
  • Doesn't block the app: the scan runs on a worker_threads thread, the same pattern as threadSearch.js, and results are cached for 60 s per set of existing projects. A test checks that the event loop keeps ticking during discovery.
  • Picker: a searchable list with a row per folder: name, path, CLI badges, and "used 3 days ago · 12 sessions". It shows a loading state while the scan runs. Picking a folder adds it through the normal add-folder path, then offers to import that folder's most recent session through the existing import flow.

Also: onboarding's recent-repos list now includes Cursor and Muse folders too, and its OpenCode limit counts sessions (300) rather than distinct folders. Folders that aren't git repos are kept, since Solenta can add them.

Tests: history-projects.test.js uses a fake HOME with Claude and Codex trees to cover dedupe, the existing-project, missing-folder and worktree filters, ordering, and the non-blocking check. addProjectHistory.test.tsx covers the picker and the import offer. tsc and vite build are clean.

Closes #1858

🤖 Generated with Claude Code

Willem and others added 4 commits November 5, 2026 11:22
discoverHistoryProjects and onboarding's collectSessionDirs are sync fs;
on the main process a cold scan froze every window for ~1.3s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T10:45:52.553176Z 9d3e15c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d3e15cc58

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread electron/recentRepos.js Resolved
Willem and others added 4 commits November 5, 2026 11:47
Claude flattens every non-alphanumeric to '-', so /code/my-app and
/code/my/app share one projects/ dir. Grouping by dir dropped one project
and offered the other's sessions for import. cwdField now reads 16KB
chunks up to 256KB and stops at the first cwd.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@currentbits
currentbits merged commit 9af3b24 into main Nov 8, 2026
14 checks passed
@currentbits
currentbits deleted the coder/add-projects-from-cli-history-1858-b90d70 branch November 8, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add projects from Claude Code / Codex / Cursor history

1 participant