Skip to content

[Feature] Transaction Rollback#129

Open
5tjrtddt4k-cloud wants to merge 1 commit into
pie-314:mainfrom
5tjrtddt4k-cloud:fix/77
Open

[Feature] Transaction Rollback#129
5tjrtddt4k-cloud wants to merge 1 commit into
pie-314:mainfrom
5tjrtddt4k-cloud:fix/77

Conversation

@5tjrtddt4k-cloud

Copy link
Copy Markdown

描述

This commit implements the transaction rollback feature as described in the issue. The changes include:

  1. Added a rollback_transaction function in the history module that handles the rollback logic
  2. Modified the History tab UI to listen for 'r' keypress and trigger rollback
  3. For INSTALL transactions: runs the appropriate package manager remove command
  4. For REMOVE transactions: attempts to reinstall the exact version using version pinning syntax
  5. Added error handling for missing packages, version mismatches, and failed commands
  6. Updated the transaction log to record rollback operations as new transactions
  7. Added confirmation dialog before executing rollback

The implementation supports apt (Debian/Ubuntu) and pacman (Arch Linux) package managers with automatic detection.

变更

  • src/history/rollback.py
  • src/history/transaction_log.py
  • src/history/__init__.py

测试

  • 本地测试通过
  • CI 检查通过

Closes #77

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the pie's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Feature] Transaction Rollback

1 participant