Skip to content

fix(schedules): translate the failed scheduled-task notice - #7887

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
tylerbea:fix/schedule-failed-notice-i18n
Nov 13, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
tylerbea:fix/schedule-failed-notice-i18n

Conversation

@tylerbea

Copy link
Copy Markdown
Contributor

In Arabic, the bell showed a scheduled task's "finished" notice translated but its "failed" notice still in English, side by side. Both are translated now, and the Agent UI guide says a clean run raises a notice. Follow-up to #7696, from its review.

Before After

Test plan

  • New Arabic test for the failed-run notice title; store and i18n vitest pass
  • New test:rtl scene with one failed and one finished task, English and Arabic; it fails on main
  • In Arabic, let a scheduled task fail and open the bell

…the finished notice

In Arabic the bell showed a translated finished notice next to an English failed one. Both now come from the translation tables, and the Agent UI guide says a clean run raises a notice.
@github-actions github-actions Bot added the documentation Documentation changes label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

In Arabic, a failed scheduled task's notice now shows a translated title instead of English, next to the already-translated "finished" notice. The Agent UI guide now also says a clean run raises a notice. This is a small, focused fix with a unit test and a visual check in both languages, and I found nothing blocking.

Real-world evidence

N/A: no evidence bundle was produced for this run. The PR description includes before/after Arabic screenshots of the notification center, which is the right evidence for this surface. The last test-plan item (letting a real scheduled task fail in Arabic) is still unchecked, so that live path rests on the screenshots and static review.

🔍 Technical details

Issues Found

None blocking.

  • 🟢 The failed notice's body is still the backend's error text, so in Arabic you get an Arabic title over an English error. That's expected for backend messages, and the new visual test deliberately skips .notification-message. Mentioning it only so nobody reads the screenshot as fully translated.

Checks run

  • No other hard-coded Scheduled task "…" strings remain outside the locale files. Both notices now go through getT(), and the keys exist in both en.ts and ar.ts.
  • The new doc line ("runs that finished before the app opened don't") matches loadSchedules. The first load only records counts and raises no notifications.

Strengths

  • The fix uses the same getT() pattern as the existing finished notice, so the two notices can't drift apart again.
  • The test:rtl scene checks both notices together, runs the untranslated-text audit, and is reported to fail on main. That is the "a bug a person finds is a gap in the checks" loop CLAUDE.md asks for.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 13, 2026
Merged via the queue into amd:main with commit 0a1947d Nov 13, 2026
65 of 67 checks passed
tylerbea pushed a commit to tylerbea/gaia that referenced this pull request Nov 13, 2026
)

The starter-skill CLI test keeps timing out on macOS CI (amd#7887, amd#7912).
It launched a fresh `gaia` process for each of the ~24 starter skills,
and every cold start costs ~3.5 s, so the test took ~80 s on an idle
machine and went past its 180 s limit on a loaded macOS runner. The
imports now run through the real CLI entry point in one process, each
still checked for its own exit code and error message, and the test
takes ~9 s.

What it checks is unchanged: every in-ceiling skill imports, every
over-ceiling one is refused with exit 4 and a "ceiling" message, and a
separate cold `gaia skill list --json` then sees exactly the importable
set.

## Test plan
- [x] `pytest tests/unit/test_starter_skills.py -n 4`: 311 passed, 22
skipped
- [x] Same load (a parallel `-n 3` run of the file): old test 84 s, new
test ~9 s
- [x] 20/20 runs pass under that load
- [x] New
`test_batched_cli_keeps_each_commands_own_exit_code_and_stderr`: a
failing import keeps the same exit code as a standalone run, and its
error doesn't leak into the next command
- [x] `python util/lint.py --black --isort`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants