Skip to content

feat(pm-stack): the console hands the Android app to the signed-in owner - #12423

Merged
dezren39 merged 1 commit into
mainfrom
claude/pm-console-app-download
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/pm-console-app-download

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What

The console serves the signed Android build that is on the host at /console/pm-console.apk, to the signed-in owner only. The page header shows "Android app" when a build is there.

Why

The signed APK had no way onto the phone that did not publish it somewhere else first. With this the phone gets the app from the site it opens: sign in, tap, install. Replacing the file on the host is the whole release.

Changes

  • PM_CONSOLE_ANDROID_APK (default ~/.local/state/pm-console/android/pm-console.apk).
  • GET /console/pm-console.apk: 200 with application/vnd.android.package-archive for the owner, 404 when no build is on the host, 401 or 403 for anyone else. Never passed to the dashboard.
  • /console/api/me reports androidApp, and the page shows the link from it.

Evidence

Check Result
cd pm-stack/console && bun test 33 pass
Faults planted in the route 5 of 5 caught
The build it will serve workflow run 44988192986, signed on the host by sign.sh (#12422): certificate 8B:82:…:FC:12, the one in signing-fingerprint.txt and in the live /.well-known/assetlinks.json

Undo

Revert this PR; the link disappears and the path answers 404.

Refs #12360, #12412, #12422.


Generated by Claude Code


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The signed APK had no way onto the phone that did not publish it
somewhere else first. The console now serves the build that is on the
host at /console/pm-console.apk, to the signed-in owner only, and the
page header shows "Android app" when a build is there. Putting a new
signed file in place is the whole release.

- config: PM_CONSOLE_ANDROID_APK (default
  ~/.local/state/pm-console/android/pm-console.apk).
- /console/api/me reports whether a build is present.

Tests: 33 bun tests. Five planted faults in the route are all caught
(no existence check, any method, wrong content type, the page told a
build exists when none does, the setting ignored).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 05:45
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63acc1e2-00a7-49a6-b43d-7844ab755620
Commits

Reviewing files that changed from the base of the PR and between a498d65 and cfff6f9.

Files selected for processing: 7

  • pm-stack/console/README.md
  • pm-stack/console/android/README.md
  • pm-stack/console/public/app.js
  • pm-stack/console/public/index.html
  • pm-stack/console/src/config.ts
  • pm-stack/console/src/server.ts
  • pm-stack/console/test/console.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T05:47:05.279748Z cfff6f9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 0efffdb into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/pm-console-app-download branch November 22, 2026 05:47
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.

2 participants