#6786: [Prompt Request] fix: remove dead restore step for gitignored dist/control-ui/
Cluster:
Gateway and System Fixes
## Prompt Request
This is a prompt for your AI agents to implement the fix. Related: #4546, #4591
---
## Context
The `openclaw update` command reports `Update Result: ERROR` even when the update succeeds. This happens because the restore step tries to `git checkout dist/control-ui/` which is gitignored and not tracked.
## Reproduction
```bash
openclaw update
# Observe: all steps pass except "restore control-ui"
# error: pathspec 'dist/control-ui/' did not match any file(s) known to git
# Final status shows ERROR despite successful build
```
## Root Cause
The update runner has a restore step that assumes `dist/control-ui/` is tracked by git. It's in `.gitignore`, so git restore fails. The control-ui is rebuilt fresh anyway, making this restore step unnecessary.
## Expected Behavior
- Update should report SUCCESS when build completes successfully
- Restore of gitignored paths should either be skipped or not fail the overall update
## Fix Direction
In `src/infra/update-runner.ts`:
1. Find the restore step for `dist/control-ui/` (around line 738-747)
2. Remove it entirely (preferred - it's redundant since UI rebuilds), OR wrap it in a try-catch that logs a warning instead of failing
3. Update `gitTotalSteps` count (around line 418) to reflect one fewer step
The simplest fix is removal since the "Building UI" step regenerates these files anyway.
Most Similar PRs
#18676: feat: add patch-ui.sh
by jasonkneen · 2026-02-16
61.0%
#23736: fix(system-prompt): improve prompt cache locality with unique agent ID
by mrx-arafat · 2026-02-22
60.0%
#13068: docs(system-prompt): warn against using exec for gateway restart
by whyuds · 2026-02-10
60.0%
#17221: fix(agents): prevent agents from using exec for gateway management
by CornBrother0x · 2026-02-15
59.4%
#17743: fix(agents): disable orphaned user message deletion that causes ses...
by clawrl3000 · 2026-02-16
57.2%
#21481: ClarityOS: restore/stabilize tab + add update/smoke scripts
by omniclaw · 2026-02-20
56.7%
#18961: fix: detect pnpm package manager in openclaw update
by norci · 2026-02-17
56.5%
#19271: fix: remove false-positive billing text rewrite in sanitizeUserFaci...
by MisterGuy420 · 2026-02-17
56.5%
#7063: fix: update callers of createSystemPromptOverride to match new API
by MohammadErfan-Jabbari · 2026-02-02
56.2%
#17237: fix(update): guard post-install imports after npm global update
by tdjackey · 2026-02-15
56.2%