Repository navigation
feat(agent): connect Vana and Home Assistant by address - #1488
Merged
Merged
Conversation
Add a catalog connection for an app that runs at an address which depends on the person's setup. An entry gives the usual address, which Connect tries first, and a centered pop-up asks for another only if nothing is there. Vana Desktop and Home Assistant are the first two. Sign-in now takes any http:// or https:// address. Over plain HTTP every sign-in request stays on the address given. Before the browser opens, Maple checks that an MCP server answers there, so a wrong address or a missing integration is reported instead of a sign-in that cannot work. Home Assistant has no registration, so Maple names itself by its callback origin where a server says it accepts that. It gives sign-in addresses as paths when reached by a name it was not told, which includes the usual .local name, and these are read as that server's own. rmcp refuses a private address named in metadata, so a server reached over plain HTTP is read directly from its own address when that happens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in Fluent localization and Responses compaction. The conflicts were one import line and one settings field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The localization work rules out reading English to decide anything, and the address pop-up opened by comparing a failure's text. Sign-in failures the UI acts on now travel as McpSignInError and HostFailure codes, and sign_in_mcp_server moves to the presented dispatch, because the String path turns every failure into an unknown code. The UI keeps these as UiText, so one on screen follows a language change. Vana and Home Assistant get their summaries, field labels and help in both catalogs. The pop-up uses Fluent for its title, buttons and input name, and named accessible text and a link role for the rest. Connected rows and the composer's integrations list showed the English summary a catalog app saved when it connected. They now show it in the person's language while it is unchanged. Anything a person wrote stays as written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
added a commit
that referenced
this pull request
Nov 7, 2026
A permission request's desktop notification used the runtime's English fallback text under the generic question title. It now has its own title and the translated reason, so a Spanish interface shows no English there. The mode chip's accessible name now says what it sets, as "Permissions: Auto", and the question card's options expose their text to accessibility. Recording the Spanish review also stamps the twelve strings #1488 added. They landed translated but unstamped, which has failed master's translations_were_reviewed_against_the_current_english since #1488. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 7, 2026
AnthonyRonning
added a commit
that referenced
this pull request
Nov 7, 2026
#1488 added twelve messages with their Spanish text but no review record. Its CI ran before #1489 added the stale-translation check, so master's agent-test and agent-full-macos now fail in translations_were_reviewed_against_the_current_english. Generated with `just translations-reviewed es`. The Spanish text is unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Adds Vana Desktop and Home Assistant to the Apps catalog through one new connection type: an app at an address that depends on the person's setup. Neither needs any app-specific code.
An entry gives the usual address, and Connect tries it first. A centered pop-up asks for another address only if nothing is there, so most people connect in one click. Vana connects at
127.0.0.1:47321, the port Vana Desktop gives its server by default. Home Assistant trieshomeassistant.local:8123.To make this work, sign-in now takes any
http://orhttps://address, which also applies to+ Custom server.This covers the Vana card from #1313 without its Vana-specific code.
Changes
addressconnection withlabel,help,default,path,appNameandgetUrl.sign_in_atturns what the person gives into a server address, addinghttp://and the app's path if they are left off.sign_in_endpointaccepts any HTTP or HTTPS address with no credentials or fragment. Over plain HTTP,PlainOAuthHttpholds every sign-in request to the address given.client_id_metadata_document_supported, Maple uses its callback origin as the client ID. Home Assistant accepts this because the callback shares that origin, so nothing has to be hosted..localname.fill_in_pathsreads those as the server's own. This is allowed only over plain HTTP, so HTTPS stays strict.discover_metadatareads that server's own metadata directly.check_server_answersruns before the browser opens, so a wrong address or a missing Home Assistant integration is reported rather than sending someone through a sign-in that cannot work.SOURCES.md.McpSignInErrorandHostFailurecodes, so the pop-up no longer depends on the words of a failure, andsign_in_mcp_servermoved to the presented dispatch so those codes survive. Failures stayUiText, so one on screen follows a language change.Behavior
Known tradeoffs
http://can be read on the way. This is deliberate, because most Home Assistant setups are plain HTTP on a local network, and there is no local-only rule any more, so this applies to publichttp://addresses too.http://127.0.0.1:<port>/rather than Maple. Changing that would need a hosted client metadata document..locallookup takes about 5 seconds before the pop-up appears.Validation
maple-agentand 1,314 in the app, plusjust ci-lint. The final tree differs from what was tested only by Compact Responses within the sliding window in one summary #1485, which changes no Agent code, so that result still applies.failed_stop_restores_enabled_remote_and_real_retry_retains_ownershipfailed once withWouldBlockon its finaltry_lock. It then passed 6 of 6 alone and in the full rerun. This PR changes no host or remote code apart from oneFromimpl, so this looks like a race under parallel load, but that is unconfirmed.All on macOS against real apps, with a local test account:
localhost.localname and127.0.0.1The Home Assistant devices were its built-in
demointegration, and the Vana data was the fictional records from #1313. The Vana task ran with the Home Assistant connection down, and that did not get in its way.Also checked on screen: the pop-up for both apps, a missing integration on a real instance over a LAN IP, an unreachable address, and Esc.
After moving onto the localization work, in Spanish on macOS through the real host process: translated search found Home Assistant, a failed usual address opened the pop-up in Spanish, an empty field and a bad scheme gave Spanish errors, and a typed address with no server reported on the card. That card error switched to English live. A real Home Assistant sign-in then succeeded through the new dispatch, and connected rows and the composer list read in Spanish. The accessibility tree showed the dialog, the
Direcciónfield, the link and the buttons by name.Not proven
.localname. Those two ran through Home Assistant's login API with the real sign-in code, in a temporary test that is not part of this PR.homeassistant.localitself, since there was no such host to test against.Still in English
The other fixed sign-in failures, such as access not being approved, and the browser page after sign-in were English before this PR and stay that way. This PR's own text is translated.
🤖 Generated with Claude Code