Fast and light shell approval "Always allow" button shows raw English backticks and scrambles commands in Arabic

Open Beginner friendly
#9,236 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@tylerbea is already working on this.

Since Nov 28, 2026.

  • #9235 by @tylerbea — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, typescript

Research direction

Start in src/gaia/apps/webui/src/stores/notificationStore.ts at alwaysScopeText and trace how bash_execute:exact: and bash_execute:cmd: scopes are handled. Then read src/gaia/apps/webui/src/components/PermissionPrompt.tsx around the fallback label and the cited sidecar.cpp label. Done means the Arabic approval button is translated, has no literal backticks, and displays the command left-to-right.

Written by the indexing model from the issue text.

Description

agent-ui bug p3

When gaiacpp ("Fast and light") asks permission to run a shell command in Arabic, the "Always allow" button injects untranslated Run `...` with literal backticks and scrambles command punctuation in RTL, making an approval decision harder to read accurately.

Steps

  1. Switch GAIA to Arabic in Settings › General while Fast and light (gaiacpp) is active.
  2. Ask GAIA to run an exact shell command such as python3 -c "print(42)".
  3. Inspect the dashed "Always allow" button on the shell approval card.

Expected: The button translates the action into Arabic, omits literal markdown backticks, and keeps the command text isolated left-to-right.
Actual: The button shows untranslated Run with literal backticks and RTL-reordered command quotes.

GAIA version: main at 2529a7fc1, browser preview of the built Agent UI on macOS.

🔍 Technical details
  • src/gaia/apps/webui/src/stores/notificationStore.ts:138-148 (alwaysScopeText) only recognizes Python file_change and <tool> on ... scopes, returning null for gaiacpp's bash_execute:exact: and bash_execute:cmd: scopes.
  • src/gaia/apps/webui/src/components/PermissionPrompt.tsx:309-310,481 falls back to raw notification.alwaysLabel (Run `...` from cpp/agents/gaiacpp/sidecar.cpp:241-249) without LTR isolation around the command.

Fix: #9235

Dominant language
Python
Stars
1.6k
Forks
169
Avg merge
15h 4m
Merged PRs (30d)
847

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from amd/gaia

All issues in amd/gaia

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.