Skip to content

fix(mobile): phone Claude Code follows Claude's update channel, latest by default - #51

Open
tebiggs wants to merge 1 commit into
mainfrom
fix/phone-claude-updates
Open

tebiggs wants to merge 1 commit into
mainfrom
fix/phone-claude-updates

Conversation

@tebiggs

@tebiggs tebiggs commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Claude Code on the phone's in-app Ubuntu could not reach new versions. Setup wrote Anthropic's apt stable source, so apt-get install --only-upgrade claude-code (run by the app's Update and by the server's provider Update) found nothing newer: the phone sat on 2.1.311 while latest was 2.1.325.

The setup script now writes the apt source for the channel Claude Code's own autoUpdatesChannel setting picks, reading ~/.claude/settings.json, then /etc/claude-code/managed-settings.json and managed-settings.d/*.json, with later files winning as the server's ClaudeMaintenance.readUpdateChannel does. With no setting it uses latest, Claude Code's default. Both the install step and the app's Update rewrite the source, so existing phones move to latest on their next Update. The server's apt update path already reads the channel from that source, so its update check and Update button follow along.

Anthropic's latest apt repository is signed by the same key the app pins (fingerprint 31DDDE24…7ECACE); a scratch apt-get update against it verified and offered claude-code 2.1.325-1 for arm64. Switching back to stable keeps a newer build until stable passes it, since the upgrade never downgrades.

Rejected: switching the phone to the native installer (~/.local/bin/claude), which would add a second, self-updating copy of the binary outside apt's signature check; an in-app Stable/Latest picker, more UI for a setting Claude Code already has.

Tests: device-runtime-script.test.ts gains a table for the default, a user setting and a managed drop-in overriding it. Not yet run on a phone.

🤖 Generated with Claude Code (Claude Opus 5.5)

…t by default

Phone setup pinned Anthropic's apt stable repository, which trails latest by
about two weeks, and the app's Update kept that source. Setup and Update now
write the apt source for Claude Code's autoUpdatesChannel setting (user, then
managed settings, later files win), latest unless it says stable, so existing
phones move to latest on their next Update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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