feat(start-os): name the installed web app after the server - #3879
Merged
Conversation
The router serves /manifest.webmanifest with the server's hostname as its name and short_name, so adding the UI to a home screen or installing it from a desktop browser labels it with the server name instead of "StartOS". Chrome refreshes an installed app's name from the manifest; Safari reads apple-mobile-web-app-title instead, which the root component now keeps in step with the hostname. The built manifest is no longer a service-worker asset — ngsw hash-checks the bytes it built, which the served body no longer matches. The Server Name dialog now lists what the name is used for: the server's address, every installed service's local address, the browser tab and installed app name, and SSH and system logs. Closes #2327 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
MattDHill
force-pushed
the
feat/pwa-name-from-hostname
branch
from
September 3, 2026 02:05
602d293 to
f76f60b
Compare
dr-bonez
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2327
Summary
An installed StartOS web app is named after the server rather than
StartOS.RpcContext's router now serves/manifest.webmanifestitself, parsing the built manifest out of the embedded UI dir and replacingnameandshort_namewith the hostname fromAccountInfo. Every other context keeps falling through to the static file, so init and diagnostic mode still resolve the manifest.Safari does not take the Home Screen name from the manifest — it reads
apple-mobile-web-app-title, whichindex.htmlhard-codes.AppComponentnow keeps that tag in step withserverInfo.hostname, alongside the language subscription that was already there. Chrome and Chromium desktop refresh an installed app's name from the manifest on their own; iOS needs the app removed and added again, which the changelog and the docs both say.The manifest is dropped from
ngsw-config.json's prefetch group.ngsw.jsonpins a sha1 of the bytes the build produced, and the served body is no longer those bytes — leaving it listed would fail the service worker's hash check and take it out of service. A note inprojects/start-os/AGENTS.mdwarns the next person off putting it back.Server Name dialog
The dialog now lists what the name is used for, since a rename reaches further than the
.localaddress alone:<name>.local:<port>)Five new strings, translated across all five dictionaries.
docs/src/server-name.mdgains the same facts.Verification
FMT_NATIVE=1 make start-core-format-checknpm run check:i18nThe Rust build and the web typechecks are left to CI.