Repository navigation
test: lint app-reachable text for terminal commands and removed features - #7340
Merged
kovtcharov-amd merged 2 commits intoNov 12, 2026
Merged
Conversation
The rc18 desktop app told users to run `gaia connectors connect google` and `pip install amd-gaia[browser]`. A desktop install has neither command, so the user had nothing to do. It also offered an agent list in a product that is one agent. In the style of test_amd_gaia_urls.py, this scans every string the agent, its tools and the Agent UI backend can produce, the Agent UI's English strings, and the TUI's strings, for: a `gaia <subcommand>` to type (subcommands read from the parser), pip, `lemonade-server serve`, and the Agent Hub, agent catalog, agent list and standalone email agent. The 66 existing violations are counted per file with their issue (amd#7338, amd#7339, amd#4825). The count is exact both ways, so a new string fails and a fixed one has to lower its number.
5 of 8 tasks
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.
The rc18 desktop app told users to run
gaia connectors connect googleandpip install amd-gaia[browser]. A desktop install has neither command, so the user was left with nothing they could do; it also offered an agent list in a product that is one agent. This adds a lint, in the style oftest_amd_gaia_urls.py, over every string the desktop app or the TUI can show, so the next such message fails the PR that adds it.It flags a
gaia <subcommand>written as something to type (the subcommands are read from the parser, so a new one is covered),pip install,lemonade-server serve, and the removed features: an agent list, an agent catalog, an Agent Hub, the standalone email agent. The TUI is a terminal, so only the last three rules apply there.What it found on main: 66 strings, counted per file with the issue that tracks them. The count is exact both ways: a new string fails, and fixing one fails until its number is lowered, so the list can only shrink.
gaia ...orpip install ...commandgaia hubEight more matches are not text for a user (a table of commands GAIA holds for approval, developer API schema text) and are listed separately with the reason.
A fix PR that changes one of these strings (#7164, #7261, #7108) will need to lower the matching count when it lands after this.
Test plan
python -m pytest tests/unit/test_user_facing_text.py -qpasses (5 tests)"Run \gaia init` to fix this."to any file undersrc/gaia/agents/tools/` and the test fails naming the file and linetest_unit.ymlrunstests/unit/); no workflow change needed🔍 Technical details
src/gaia/ui,src/gaia/agentsandhub/agents/gaia/python/gaia_agent. The Agent UI is covered by its English locale file (0 violations today). Go string literals are read with comments blanked out.test_the_rules_catch_what_rc18_shippedpins the exact rc18 strings so a rule cannot be loosened to get green, andtest_the_rules_leave_ordinary_text_alonepins prose such as "the gaia daemon".