Skip to content

[Bug]: Commit action changes staging before message generation succeeds #9070

Description

@dbalders

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Have staged and untracked changes.
  2. Make commit-message generation fail, such as by using a signed-out provider.
  3. Click Commit.

Expected behavior

No commit is created and the existing staging is unchanged.

Actual behavior

The commit flow runs git reset / git add -A before generating the message. If generation fails, the index stays changed.

Impact

Medium

Version or commit

main @ 2d156a8

Environment

Any Git repository; provider failure is required to trigger the unsafe exit path.

Workaround

Restore the intended staging manually before the next commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions