Skip to content

feat(workspace): run the commands in one workspace one at a time - #137

Open
PiquelChips wants to merge 1 commit into
feat/sync-bench-gitfrom
feat/permissions-workspace-lock
Open

PiquelChips wants to merge 1 commit into
feat/sync-bench-gitfrom
feat/permissions-workspace-lock

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Two commands in one working copy could run at once: one moving its files while another snapshotted them, or finding the moving marker of a move still in progress and taking it for one a crash cut short.

Opening a workspace now takes an exclusive lock on .origin/lock, held until the command is done. Commands in one workspace wait for each other; those in different workspaces still run at once.

Exceptions:

  • watch never touches the working copy, so it lets go of the lock.
  • workspace rm opens the workspace it removes, which may be its own, so it lets go too.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 128b274e-a7cc-43e0-8f8a-b84005e57c95
Commits

Reviewing files that changed from the base of the PR and between 53bde0d and e76136b.

Files selected for processing: 4

  • apps/origin-src/src/workspace/mod.rs
  • apps/origin-src/src/workspace/ops.rs
  • apps/origin-src/src/workspace/registry.rs
  • apps/origin-src/tests/cli.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/permissions-workspace-lock branch 3 times, most recently from aefbaf4 to db5f7d2 Compare November 22, 2026 18:54
Two commands in the same working copy could run at once: one moving its
files while another snapshotted them, or found the `moving` of a move
still in progress and took it for one a crash cut short.

Opening a workspace now takes an exclusive lock on `.origin/lock`, held
until the command is done, so commands in one workspace wait for each
other, while those in different workspaces still run at once. `watch`
never touches the working copy, so it lets go of the lock, and so does
`workspace rm`, which opens the workspace it removes, which may be its
own.
@PiquelChips
PiquelChips force-pushed the feat/permissions-workspace-lock branch from db5f7d2 to e76136b Compare November 22, 2026 19:20
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