#10276·jj

workspace-remove: Fails and complains about staleness

Author: augustebaumCreated Sep 28, 2026Updated Sep 29, 2026

Description

This may be quite hard to reproduce, so take it with a grain of salt.

jj workspace remove fails and complains that workspace is stale, even though I set snapshot.auto-update-stale = true.

I should note that the jj repo was created before 2133040a8b99df306b3b6a199608b5ae669ae8a6 (but the other workspace-related changes seem to be working well).

$ jj workspace remove backend-mock-enabled
Error: The working copy is stale (not updated since operation 17c18e9c8935).
Hint: Run `jj workspace update-stale` to update it.
See https://docs.jj-vcs.dev/latest/working-copy/#stale-working-copy for more information.

$ jj --debug workspace remove backend-mock-enabled
2026-09-28T14:01:37.979862Z  INFO jj_cli::cli_util: debug logging enabled
2026-09-28T14:01:37.982838Z  INFO run_command:cmd_workspace:cmd_workspace_remove:workspace_helper:workspace_helper_with_stats: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:37.982941Z  INFO run_command:cmd_workspace:cmd_workspace_remove:workspace_helper:workspace_helper_with_stats: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:37.993956Z  INFO run_command:cmd_workspace:cmd_workspace_remove:workspace_helper:workspace_helper_with_stats:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:37.994024Z  INFO run_command:cmd_workspace:cmd_workspace_remove:workspace_helper:workspace_helper_with_stats:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:38.005714Z  INFO run_command:cmd_workspace:cmd_workspace_remove:maybe_snapshot: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:38.005781Z  INFO run_command:cmd_workspace:cmd_workspace_remove:maybe_snapshot: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:38.006370Z  INFO run_command:cmd_workspace:cmd_workspace_remove:maybe_snapshot:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj-ws/backend-mock-enabled/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:38.006405Z  INFO run_command:cmd_workspace:cmd_workspace_remove:maybe_snapshot:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj-ws/backend-mock-enabled/.jj/working_copy/working_copy.lock"
Error: The working copy is stale (not updated since operation 17c18e9c8935).
Hint: Run `jj workspace update-stale` to update it.
See https://docs.jj-vcs.dev/latest/working-copy/#stale-working-copy for more information.

$ jj workspace update-stale
Attempted recovery, but the working copy is not stale.

$ jj --debug workspace update-stale
2026-09-28T14:01:49.563026Z  INFO jj_cli::cli_util: debug logging enabled
2026-09-28T14:01:49.566188Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:49.566341Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/repo/git_import_export.lock"
2026-09-28T14:01:49.578060Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale:snapshot_working_copy: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:49.578117Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale:snapshot_working_copy: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:49.588442Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:49.588543Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
Attempted recovery, but the working copy is not stale.
2026-09-28T14:01:49.589288Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Attempting to lock "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"
2026-09-28T14:01:49.589358Z  INFO run_command:cmd_workspace:cmd_workspace_update_stale:snapshot_impl:snapshot_working_copy: jj_lib::lock::unix: Locked "/home/auguste/Desktop/work/skore-hub/.jj/working_copy/working_copy.lock"

Specifications

  • Platform: NixOS 26.05
  • Version: jj 0.45.1-35dbc3623b6dd5a23daf5b5ca09b8640694a72ae