Skip to content

fix(update): exclude dist/control-ui from dirty check and restore after build#1976

Closed
Glucksberg wants to merge 4 commits intoopenclaw:mainfrom
Glucksberg:fix/update-dirty-repo-1953-clean
Closed

fix(update): exclude dist/control-ui from dirty check and restore after build#1976
Glucksberg wants to merge 4 commits intoopenclaw:mainfrom
Glucksberg:fix/update-dirty-repo-1953-clean

Conversation

@Glucksberg
Copy link
Copy Markdown
Contributor

Summary

Fixes #1953

The auto-update process runs pnpm ui:build which regenerates dist/control-ui/ assets with new content hashes. Since these files are tracked in git, every successful update left the repo "dirty", causing subsequent update checks to skip.

Changes

  • Exclude dist/control-ui/ from dirty detection using git pathspec
  • Restore dist/control-ui/ after ui:build completes
  • Updated step counts and tests

Test plan

  • All update-runner tests pass (10/10)
  • All update-check tests pass (2/2)
  • Lint and build pass

🤖 Generated with Claude Code

Glucksberg and others added 4 commits January 25, 2026 19:42
When block streaming succeeds, final replies are dropped but TTS was only
applied to final replies. Fix by accumulating block text during streaming
and generating TTS-only audio after streaming completes.

Also:
- Change truncate vs skip behavior when summary OFF (now truncates)
- Align TTS limits with Telegram max (4096 chars)
- Improve /tts command help messages with examples
- Add newline separator between accumulated blocks
- Add value/label support for command arg choices
- TTS menu now shows descriptive title listing each action
- Capitalize button labels (On, Off, Status, etc.)
- Update Telegram, Discord, and Slack handlers to use labels

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…er build

Fixes openclaw#1953

The auto-update process runs ui:build which regenerates dist/control-ui/
assets with new hashes. Since these files are tracked in git, every update
left the repo dirty, blocking subsequent updates.

This fix:
- Excludes dist/control-ui/ from dirty repo detection using git pathspec
- Restores dist/control-ui/ to committed state after ui:build completes

Both changes work together: the exclusion prevents blocking updates while
the restore step keeps the repo clean for users.
@thewilloftheshadow thewilloftheshadow added the channel: telegram Channel integration: telegram label Jan 26, 2026
thewilloftheshadow added a commit that referenced this pull request Jan 26, 2026
Co-authored-by: Glucksberg <glucksberg@users.noreply.github.com>
@thewilloftheshadow
Copy link
Copy Markdown
Member

Squash-merged into main.

  • Squash commit: 6d60c32
  • Included: ignore dist/control-ui for dirty checks + restore after ui build + changelog entry (thanks)
  • Tests: pnpm lint && pnpm build && pnpm test (lint failed in existing src/line/* types)

@thewilloftheshadow
Copy link
Copy Markdown
Member

Closed after squash-merge to main (commit 6d60c32).

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

Labels

channel: telegram Channel integration: telegram

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update process dirties repo, causing subsequent updates to be skipped

2 participants