Skip to content

Keep archived worktrees optimistically hidden#640

Merged
boudra merged 1 commit intomainfrom
trace-worktree-archive-reappear
Apr 30, 2026
Merged

Keep archived worktrees optimistically hidden#640
boudra merged 1 commit intomainfrom
trace-worktree-archive-reappear

Conversation

@boudra
Copy link
Copy Markdown
Collaborator

@boudra boudra commented Apr 30, 2026

Summary

  • Keep the app's optimistic worktree archive hide/rollback path intact so the initiating client does not show the row again while the archive RPC is pending.
  • Add server-owned archivingAt metadata to workspace descriptors so archive-in-progress upserts are explicit and backward-compatible.
  • Suppress local archivingAt workspace upserts only when this client has the matching archive action pending; other clients can still render the archiving spinner, and failure restores the hidden row.

Test plan

  • npm run format:check
  • npm run typecheck
  • npm run lint
  • npm run test --workspace=@getpaseo/app -- src/stores/checkout-git-actions-store.test.ts src/contexts/session-workspace-upserts.test.ts src/components/sidebar-workspace-list.test.tsx src/stores/session-store.test.ts --bail=1
  • cd packages/server && npx vitest run src/server/agent/mcp-server.test.ts src/server/session.workspaces.test.ts src/server/worktree-session.test.ts src/shared/messages.workspaces.test.ts --bail=1

@boudra boudra force-pushed the trace-worktree-archive-reappear branch from 7ea0fe5 to 28a194c Compare April 30, 2026 13:11
@boudra boudra changed the title Keep worktrees visible while archiving Keep archived worktrees optimistically hidden Apr 30, 2026
@boudra boudra merged commit 93c6c3e into main Apr 30, 2026
20 of 21 checks passed
@boudra boudra deleted the trace-worktree-archive-reappear branch April 30, 2026 13:36
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