diff --git a/static/i18n.js b/static/i18n.js index ec0df00f..3c9af6f1 100644 --- a/static/i18n.js +++ b/static/i18n.js @@ -1318,6 +1318,7 @@ const LOCALES = { cron_job_updated: 'Job updated', cron_model_label: 'Model Override', cron_model_hint: 'Override the default model for this job.', + cron_model_no_agent_hint: 'No-agent jobs run the configured script directly; model is unused.', cron_model_use_default: 'Default (use profile/system default)', cron_delete_confirm_title: 'Delete cron job', cron_delete_confirm_message: 'This cannot be undone.', @@ -7104,6 +7105,7 @@ const LOCALES = { cron_job_updated: 'Job updated', cron_model_label: 'Model Override', cron_model_hint: 'Override the default model for this job.', + cron_model_no_agent_hint: 'No-agent jobs run the configured script directly; model is unused.', cron_model_use_default: 'Default (use profile/system default)', cron_delete_confirm_title: 'Delete cron job', cron_delete_confirm_message: 'This cannot be undone.', @@ -14630,6 +14632,7 @@ const LOCALES = { cron_job_updated: 'Job updated', cron_model_label: 'Model Override', cron_model_hint: 'Override the default model for this job.', + cron_model_no_agent_hint: 'No-agent jobs run the configured script directly; model is unused.', cron_model_use_default: 'Default (use profile/system default)', cron_delete_confirm_title: 'Delete cron job', cron_delete_confirm_message: 'This cannot be undone.', diff --git a/tests/test_cron_model_provider_picker.py b/tests/test_cron_model_provider_picker.py index 91f6ae75..1edbcd93 100644 --- a/tests/test_cron_model_provider_picker.py +++ b/tests/test_cron_model_provider_picker.py @@ -193,3 +193,9 @@ def test_cron_model_picker_i18n_keys_exist(): assert "cron_model_label" in I18N_JS assert "cron_model_use_default" in I18N_JS assert "cron_model_hint" in I18N_JS + # #4031: the no-agent hint key must be DEFINED in the locale table (with its + # value), not merely referenced in panels.js — t() returns the key name itself + # for a missing translation, so a missing key would render the literal + # "cron_model_no_agent_hint" to the user instead of the hint text. + assert "cron_model_no_agent_hint:" in I18N_JS + assert "No-agent jobs run the configured script directly" in I18N_JS