Skip to content

bug: make plugin staging and marketplace replacement transactional #916

Description

@kaitranntt

Description

Plugin staging and marketplace repair can destroy the last known-good source or registration before the replacement is validated.

Root Cause

Stable staging is removed before a complete replacement is prepared, and stale marketplace repair removes existing state before proving the new source can be registered.

Acceptance Criteria

  • Build and validate staged payloads in a temporary location before atomic replacement.
  • Preserve or restore the last known-good source on failure.
  • Recover stale or malformed Claude and Codex marketplace registrations.
  • Do not remove verified legacy content until both required provider preparations succeed.
  • Failure-path tests prove rollback behavior.

Affected Files

  • src/commands/init/phases/plugin-install-handler.ts
  • Claude/Codex plugin installer modules
  • staging and migration tests

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingkit-engineerClaudeKit Engineer

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions