Skip to content

Desktop: refactor new workspace modal and send-to-agent flow - #1882

Merged
Kitenite merged 9 commits into
ParadevAI:mainfrom
Kitenite:Kitenite/start-workspace-with-prompt
Feb 27, 2026
Merged

Kitenite merged 9 commits into
ParadevAI:mainfrom
Kitenite:Kitenite/start-workspace-with-prompt

Conversation

@Kitenite

@Kitenite Kitenite commented Feb 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • refactors NewWorkspaceModal into reusable subcomponents (NewWorkspaceHeader, ProjectSelector, NewWorkspaceCreateFlow, NewWorkspaceAdvancedOptions, ImportFlow)
  • updates new-workspace UX for prompt-first agent startup and import-mode interactions
  • allows creating workspace with empty description and starts selected agent without a prompt when blank
  • adds reusable naming utilities for deriving workspace title and branch from prompt
  • centralizes branch max-length handling in shared branch utils and applies it in both UI and workspace create procedure
  • fixes dropdown tooltip/trigger composition and modal overflow/truncation issues

Validation

  • bunx biome check --write on touched files
  • bun test apps/desktop/src/shared/utils/branch.test.ts apps/desktop/src/shared/utils/workspace-naming.test.ts
  • bun run --cwd apps/desktop typecheck

Summary by CodeRabbit

  • New Features
    • Redesigned New Workspace modal with improved modular layout and streamlined creation flow
    • Added agent selection when creating new workspaces
    • Introduced tabbed interface for imports (Pull Requests, Branches, Worktrees)
    • Added advanced options for base branch selection and setup script configuration
    • Enhanced branch name handling with enforced length constraints

@coderabbitai

coderabbitai Bot commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

📥 Commits

Reviewing files that changed from the base of the PR and between d0e3bc7 and cf3d40a.

📒 Files selected for processing (23)
  • apps/desktop/src/lib/trpc/routers/workspaces/procedures/create.ts
  • apps/desktop/src/lib/trpc/routers/workspaces/utils/git.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/NewWorkspaceModal.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ExistingWorktreesList/ExistingWorktreesList.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ExistingWorktreesList/components/BranchesSection.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ExistingWorktreesList/components/PrUrlSection.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ExistingWorktreesList/components/WorktreesSection.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ExistingWorktreesList/index.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ImportFlow/ImportFlow.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ImportFlow/index.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceAdvancedOptions/NewWorkspaceAdvancedOptions.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceAdvancedOptions/index.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceCreateFlow/NewWorkspaceCreateFlow.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceCreateFlow/index.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceHeader/NewWorkspaceHeader.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/NewWorkspaceHeader/index.ts
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ProjectSelector/ProjectSelector.tsx
  • apps/desktop/src/renderer/components/NewWorkspaceModal/components/ProjectSelector/index.ts
  • apps/desktop/src/shared/utils/branch.test.ts
  • apps/desktop/src/shared/utils/branch.ts
  • apps/desktop/src/shared/utils/workspace-naming.test.ts
  • apps/desktop/src/shared/utils/workspace-naming.ts
  • packages/shared/src/agent-command.ts
 ____________________________
< Bunny-grade bug detection. >
 ----------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).

✏️ Tip: You can disable in-progress messages and the fortune message in your review settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Kitenite
Kitenite merged commit 9cbc388 into ParadevAI:main Feb 27, 2026
11 of 14 checks passed
@Kitenite
Kitenite deleted the Kitenite/start-workspace-with-prompt branch February 27, 2026 07:17

This branch had an error being deployed

1 failed deployment
preview — cf3d40ab Deployed Feb 27, 2026 by Kitenite via Deploy Database (Neon) #2469
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.

1 participant