Skip to content

Preserve installed tasks when download --force fails - #95

Open
yiwenxx wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
yiwenxx:codex/fix-force-download-rollback
Open

yiwenxx wants to merge 1 commit into
TIGER-AI-Lab:mainfrom
yiwenxx:codex/fix-force-download-rollback

Conversation

@yiwenxx

@yiwenxx yiwenxx commented Nov 18, 2026

Copy link
Copy Markdown

Stage the verified task on the destination filesystem before replacing the installed copy. Restore the old directory if the final rename fails.

Reproduce

  1. Apply only the tests/test_cli.py change to main.
  2. Run the rollback test. It injects an I/O error during the final rename.
uv run python -m unittest discover -s tests -p test_cli.py -k test_force_restores_installed_task_when_replacement_fails

Before the fix, the test fails because the original file is gone. With the fix, the command exits with status 1 and the original file is restored.

Checks

55 unit tests passed, including the rollback test. Ruff lint and format checks passed.

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