Lightpanda: the headless browser designed for AI and automation
Config: restore log options after parsing agent mode in a test
Adrià Arrufat59813cf2a0b6
diff --git a/src/Config.zig b/src/Config.zigindex f8e173ff2..0041667b3 100644--- a/src/Config.zig+++ b/src/Config.zig@@ -1787,6 +1787,11 @@ pub fn tagJsonArray(comptime E: type) []const u8 {}test "Config: parseArgs --load-resources defaults stylesheets on for mcp and agent" {+ // Parsing agent mode lowers the global log level, which other tests in+ // this process expect log lines from.+ const saved_log_opts = log.opts;+ defer log.opts = saved_log_opts;+var arena = std.heap.ArenaAllocator.init(std.testing.allocator);defer arena.deinit();