Files
Adam Shiervani 2614db6b89 feat(ui): add log level selector in Troubleshooting Mode (#1395)
* feat(ui): add log level selector in Troubleshooting Mode

Add a UI dropdown in Advanced > Troubleshooting Mode that lets users
set the system log verbosity (Error, Warning, Info, Debug, Trace).
Changes take effect immediately without restart via new
getDefaultLogLevel/setDefaultLogLevel JSON-RPC endpoints.

Also downgrades the noisy wakeup_on_write permission denied warning
from Warn to Debug level, and removes the INFO→WARN config migration
so users can actually select INFO.

Localized for all 14 languages.

* chore(ui): disable no-floating-promises in oxlint

The rule is not actionable for the current codebase; turn it off explicitly.

* refactor(ui): drop void prefixes on JSON-RPC send in advanced settings

no-floating-promises is disabled in oxlint; match the rest of the codebase.

* fix(ui): localize log level dropdown and fix optimistic update

- Replace hardcoded English dropdown labels with localized m.*() calls
- Replace hardcoded error string with m.advanced_error_set_log_level()
- Optimistically update dropdown on change and revert on RPC failure
- Add 6 new i18n keys across all 14 locales

* chore: add remote-agent to .gitignore and auto-sort i18n in pre-commit

- Ignore the compiled e2e/remote-agent/remote-agent binary
- Add lint-staged rule to run i18n:resort on message JSON changes

* copy(ui): improve log level setting description

Apply outcome-oriented copy: explain what the setting does for the
user and when to change it, rather than restating the control's
mechanics. Updated across all 14 locales.

* fix(logging): scope loggers not rebuilt when config level matches base default

UpdateLogLevel compared the new config level against the base default
(ErrorLevel) instead of the previous config level. When switching from
WARN back to ERROR, the comparison was equal so scope loggers kept
their old WarnLevel filter — WRN messages continued appearing despite
the user selecting Error.

Compare against the previous defaultLogLevelFromConfig instead.

* test(logging): add RPC probe for log level filtering

Add a dedicated emitTestLog JSON-RPC method and a focused e2e spec that
verifies live TRACE/DEBUG/INFO/WARN/ERROR filtering against last.log.

* chore(ui): update .gitignore to exclude screenshot.png file
2026-04-07 12:44:30 +02:00
..
2025-04-16 01:39:23 +02:00
2025-04-16 01:39:23 +02:00
2025-09-29 14:09:30 +02:00