Skip to content

Add dist/control-ui/ to .gitignore to prevent dirty repo during updates #1838

@Victorpay1

Description

@Victorpay1

Problem

The dist/control-ui/ files are currently tracked in git, but they get modified/regenerated during builds. This causes the auto-update mechanism to fail with a "dirty repo" error:

Update Result: ERROR
  Reason: rebase-failed
  ...
  ✗ git rebase (174ms)
      error: cannot rebase: You have unstaged changes.

The files affected:

  • dist/control-ui/assets/index-*.css
  • dist/control-ui/assets/index-*.js
  • dist/control-ui/assets/index-*.js.map
  • dist/control-ui/index.html

Suggested Fix

Add dist/control-ui/ to .gitignore (or the entire dist/ directory if appropriate). These are build artifacts that should be generated locally rather than tracked.

Workaround

Currently users can work around this by running git restore dist/ before updates, but this is error-prone and the preflight build step in the update process itself triggers the issue.

Environment

  • Clawdbot version: 2026.1.24-3
  • OS: macOS (Darwin arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions