Skip to content

Build native Android apps for individual agents - #2192

Merged
asim merged 3 commits into
mainfrom
native-agent-app
Nov 26, 2026
Merged

asim merged 3 commits into
mainfrom
native-agent-app

Conversation

@asim

@asim asim commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Customers can install a native app branded for one published agent, sign in with their own account, and continue private chats or existing paid sessions. Ordinary Mu builds retain agent and server selection.

  • Configure name, icon, package ID, server and agent at build time; produce APKs or Android App Bundles with per-app OAuth callbacks and S256 PKCE.
  • Share the PWA customer boundary through proto-defined profile, history and session responses. Scope tokens, threads, pagination and receipts to the customer; deny tokens access to creator settings and browser checkout.
  • Confirm session start explicitly, restore the bound chat, and disable locked-phone public questions in branded apps.
  • Document signing and upgrades. This version consumes existing purchases: store billing, automated store publication and hosted build/download generation remain separate work.

Validation on latest head: standard and branded Android CI passed, including unit tests, lint, APK/AAB packaging and emulator tests. Protocol CI passed. Server security, browser and race checks passed. Local Go build and targeted vet passed; local full short tests had only the pre-existing missing-Chromium environment failure, covered by passing browser checks on CI. The review's absolute icon-path finding is fixed.

The CLA status requires the contributor's explicit acceptance for the current PR head; no acceptance was supplied on their behalf.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 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-26T12:26:50.412787Z 4dca7bf 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4dca7bf3b7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread client/android/app/build.gradle Outdated
def appName = branded ? brand.name : 'Mu'
def server = branded ? brand.server : ''
def agentName = branded ? brand.agent : ''
def icon = branded ? new File(configFile.parentFile, brand.icon ?: '') : null

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve absolute icon paths when resolving brand configuration

The new branded job in .github/workflows/android.yml writes an absolute icon path into $RUNNER_TEMP/agent-app.json (lines 73–74), but Java's File(parent, child) constructor resolves even an absolute child beneath the supplied parent. Consequently, this produces a path such as $RUNNER_TEMP/home/runner/work/.../icon-512.png, and the icon.isFile() validation rejects the configuration before any branded tests or packaging can run. Check whether the configured icon is absolute before resolving it relative to the configuration directory.

Useful? React with 👍 / 👎.

@asim
asim merged commit 5320611 into main Nov 26, 2026
5 of 9 checks passed
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