Skip to content

feat: install and monitor latest claw-code#2934

Open
bloodf wants to merge 1 commit intoultraworkers:mainfrom
bloodf:heitor/auto-update
Open

feat: install and monitor latest claw-code#2934
bloodf wants to merge 1 commit intoultraworkers:mainfrom
bloodf:heitor/auto-update

Conversation

@bloodf
Copy link
Copy Markdown

@bloodf bloodf commented Apr 30, 2026

Summary

  • adds claw update to install the latest canonical claw-code source from https://github.com/ultraworkers/claw-code
  • starts a best-effort periodic checker in interactive sessions that compares the built GIT_SHA to canonical HEAD and prints a notice when an update is available
  • keeps updates explicit: the checker never installs automatically, and claw update uses a temporary clone instead of merging or mutating the current checkout
  • documents CLAW_DISABLE_UPDATE_CHECK=1 and CLAW_UPDATE_CHECK_INTERVAL_SECONDS=<seconds> for local control

Test plan

  • cargo fmt --all -- --check
  • cargo test -p rusty-claude-cli update_checker -- --nocapture
  • cargo test -p rusty-claude-cli update_subcommand_parses_without_repo_options -- --nocapture
  • cargo check -p runtime -p api -p commands -p tools -p rusty-claude-cli

@bloodf bloodf changed the title Add local fork auto-update command feat: add local fork update command Apr 30, 2026
@bloodf bloodf force-pushed the heitor/auto-update branch from ef62599 to d7bf159 Compare April 30, 2026 05:33
@bloodf bloodf changed the title feat: add local fork update command feat: install latest claw-code with update Apr 30, 2026
The update path should track the current canonical claw-code source instead of merging a branch or fork into the user's checkout. This keeps updates explicit: the process periodically checks canonical HEAD and prints a notice, while claw update performs the install from a fresh temporary clone.

Constraint: ultraworkers/claw-code has no releases or tags, so latest currently means canonical HEAD.

Rejected: Merge origin or upstream branches during update | mutates local worktrees and can clobber fork-specific changes.

Rejected: Auto-install from the periodic checker | surprising side effect during an interactive session.

Confidence: high

Scope-risk: moderate

Directive: Keep update checks best-effort and keep installation behind the explicit claw update command.

Tested: cargo fmt --all -- --check

Tested: cargo test -p rusty-claude-cli update_checker -- --nocapture

Tested: cargo test -p rusty-claude-cli update_subcommand_parses_without_repo_options -- --nocapture

Tested: cargo check -p runtime -p api -p commands -p tools -p rusty-claude-cli
@bloodf bloodf force-pushed the heitor/auto-update branch from d7bf159 to 52e51c5 Compare April 30, 2026 05:45
@bloodf bloodf changed the title feat: install latest claw-code with update feat: install and monitor latest claw-code Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant