fix(ui): translate the context panel's 'no figure' reason
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python, react, typescript
- Domain
- frontend
Research direction
Start in ContextPanel.tsx, where ctx.reason is rendered verbatim without a useT key, then follow the path back through GET /api/chat/context and relayed_context_reason in _chat_helpers.py. Check relay_context_error in relay.py and context_upgrade_message in profiles.py to see where the stable code would be added beside context_error. Done when the panel maps a known code such as not_reported to a translation key and falls back to the English text for unknown codes.
Written by the indexing model from the issue text.
Description
The Agent UI's context panel shows an agent's "why there is no figure" note as raw English, so a user running the UI in another language reads an untranslated sentence there.
Two notes take this path today: the sidecar's own reason (gaiacpp's "Not available yet…", added in #8684) and the relay profile's upgrade message. The fix is to send a stable code next to the English text and have the panel map the code to a translation key, keeping the English as the fallback for codes the UI doesn't know yet.
🔍 Technical details
- Path: the
finalevent'scontext_error→relay.py(relay_context_error) →relayed_context_reasonin_chat_helpers.py→GET /api/chat/context→ContextPanel.tsx, which rendersctx.reasonverbatim with nouseTkey. RelayProfile.context_upgrade_messageinprofiles.pyreaches the same field the same way.- Suggested shape:
context_error_code(for examplenot_reported) besidecontext_error; the panel looks upcontext.reason.<code>.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 169
- Avg merge
- 15h 4m
- Merged PRs (30d)
- 847
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from amd/gaia
-
Fast and light shell approval "Always allow" button shows raw English backticks and scrambles commands in ArabicPossibly taken @tylerbea claimed this today. Openagent-ui bug p3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
agent-ui bug p3
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug needs-human p3
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day
-
ci enhancement p2 security tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
bug ci devops needs-human p2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
documentation good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100