Skip to content

feat(cloud-agent): add private workspace folders - #5948

Merged
eshurakov merged 1 commit into
mainfrom
eshurakov/warm-ibis
Sep 9, 2026
Merged

feat(cloud-agent): add private workspace folders#5948
eshurakov merged 1 commit into
mainfrom
eshurakov/warm-ibis

Conversation

@eshurakov

@eshurakov eshurakov commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add private Cloud Agent workspace folders so users can group worktrees in the sidebar.
  • Persist folders in PostgreSQL (cloud_agent_workspace_folders plus cloud_agent_worktrees.folder_id) and delete or unlink them on user anonymization.
  • Expose create/update/reorder/delete through the web tRPC workspace-folders router.

Verification

  • manual verification

Visual Changes

Screenshot 2026-09-09 at 11 10 34 Screenshot 2026-09-09 at 11 10 32

@eshurakov
eshurakov changed the base branch from eshurakov/spry-mangrove to eshurakov/lucky-crater September 8, 2026 12:28
@eshurakov
eshurakov marked this pull request as ready for review September 8, 2026 13:34
Comment thread packages/db/src/schema.ts
@kilo-code-bot

kilo-code-bot Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/db/src/schema.ts 6136 Non-concurrent index on populated cloud_agent_worktrees holds ACCESS EXCLUSIVE across the index build
Files Reviewed (20 files)
  • apps/web/src/components/cloud-agent-next/ChatSidebar.tsx
  • apps/web/src/components/cloud-agent-next/CloudSidebarLayout.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderDialog.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderSection.tsx
  • apps/web/src/components/cloud-agent-next/hooks/useWorkspaceFolders.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.test.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.ts
  • apps/web/src/lib/cloud-agent/workspace-folders.ts
  • apps/web/src/lib/user/index.test.ts
  • apps/web/src/lib/user/index.ts
  • apps/web/src/routers/root-router.ts
  • apps/web/src/routers/workspace-folders-router.test.ts
  • apps/web/src/routers/workspace-folders-router.ts
  • packages/db/src/migrations/0241_loose_apocalypse.sql
  • packages/db/src/migrations/meta/0241_snapshot.json
  • packages/db/src/migrations/meta/_journal.json
  • packages/db/src/schema-types.ts
  • packages/db/src/schema.test.ts
  • packages/db/src/schema.ts - 1 issue
  • services/session-ingest/src/services/worktree-deletion.test.ts

Fix these issues in Kilo Cloud

Previous Review Summaries (3 snapshots, latest commit a5a6628)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit a5a6628)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/db/src/schema.ts 6136 Non-concurrent index on populated cloud_agent_worktrees holds ACCESS EXCLUSIVE across the index build
Files Reviewed (20 files)
  • apps/web/src/components/cloud-agent-next/ChatSidebar.tsx
  • apps/web/src/components/cloud-agent-next/CloudSidebarLayout.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderDialog.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderSection.tsx
  • apps/web/src/components/cloud-agent-next/hooks/useWorkspaceFolders.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.test.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.ts
  • apps/web/src/lib/cloud-agent/workspace-folders.ts
  • apps/web/src/lib/user/index.test.ts
  • apps/web/src/lib/user/index.ts
  • apps/web/src/routers/root-router.ts
  • apps/web/src/routers/workspace-folders-router.test.ts
  • apps/web/src/routers/workspace-folders-router.ts
  • packages/db/src/migrations/0241_loose_apocalypse.sql
  • packages/db/src/migrations/meta/0241_snapshot.json
  • packages/db/src/migrations/meta/_journal.json
  • packages/db/src/schema-types.ts
  • packages/db/src/schema.test.ts
  • packages/db/src/schema.ts - 1 issue
  • services/session-ingest/src/services/worktree-deletion.test.ts

Fix these issues in Kilo Cloud

Previous review (commit 8762fbe)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/db/src/schema.ts 6136 Non-concurrent index on populated cloud_agent_worktrees holds ACCESS EXCLUSIVE across the index build
Files Reviewed (8 files)
  • apps/web/src/lib/user/index.test.ts
  • apps/web/src/lib/user/index.ts
  • packages/db/src/migrations/0241_loose_apocalypse.sql
  • packages/db/src/migrations/meta/0241_snapshot.json
  • packages/db/src/migrations/meta/_journal.json
  • packages/db/src/schema-types.ts
  • packages/db/src/schema.test.ts
  • packages/db/src/schema.ts - 1 issue

Fix these issues in Kilo Cloud

Previous review (commit 9ed025d)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/db/src/schema.ts 6005 Non-concurrent index on populated cloud_agent_worktrees holds ACCESS EXCLUSIVE across the index build
Files Reviewed (20 files)
  • apps/web/src/components/cloud-agent-next/ChatSidebar.tsx
  • apps/web/src/components/cloud-agent-next/CloudSidebarLayout.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderDialog.tsx
  • apps/web/src/components/cloud-agent-next/WorkspaceFolderSection.tsx
  • apps/web/src/components/cloud-agent-next/hooks/useWorkspaceFolders.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.test.ts
  • apps/web/src/components/cloud-agent-next/workspace-folders.ts
  • apps/web/src/lib/cloud-agent/workspace-folders.ts
  • apps/web/src/lib/user/index.test.ts
  • apps/web/src/lib/user/index.ts
  • apps/web/src/routers/root-router.ts
  • apps/web/src/routers/workspace-folders-router.test.ts
  • apps/web/src/routers/workspace-folders-router.ts
  • packages/db/src/migrations/0239_fancy_tag.sql
  • packages/db/src/migrations/meta/0239_snapshot.json
  • packages/db/src/migrations/meta/_journal.json
  • packages/db/src/schema-types.ts
  • packages/db/src/schema.test.ts
  • packages/db/src/schema.ts - 1 issue
  • services/session-ingest/src/services/worktree-deletion.test.ts

Fix these issues in Kilo Cloud


Reviewed by grok-4.6 · Input: 168.7K · Output: 15K · Cached: 492.9K

Review guidance: REVIEW.md from base branch main

@eshurakov
eshurakov force-pushed the eshurakov/warm-ibis branch 2 times, most recently from 8762fbe to a5a6628 Compare September 9, 2026 08:56
Base automatically changed from eshurakov/lucky-crater to main September 9, 2026 13:00
@eshurakov
eshurakov merged commit 15aec7b into main Sep 9, 2026
53 checks passed
@eshurakov
eshurakov deleted the eshurakov/warm-ibis branch September 9, 2026 13:34
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.

2 participants