fix(cli): resolve missing F12 logs via global console store (#24235)

This commit is contained in:
Tommaso Sciortino
2026-03-30 13:15:10 -07:00
committed by GitHub
parent 9cf410478c
commit 44cdb3e376
5 changed files with 285 additions and 301 deletions
+2
View File
@@ -93,6 +93,7 @@ import { setupTerminalAndTheme } from './utils/terminalTheme.js';
import { runDeferredCommand } from './deferred.js';
import { cleanupBackgroundLogs } from './utils/logCleanup.js';
import { SlashCommandConflictHandler } from './services/SlashCommandConflictHandler.js';
import { initializeConsoleStore } from './ui/hooks/useConsoleMessages.js';
export function validateDnsResolutionOrder(
order: string | undefined,
@@ -294,6 +295,7 @@ export async function main() {
process.exit(ExitCodes.FATAL_INPUT_ERROR);
}
initializeConsoleStore();
const isDebugMode = cliConfig.isDebugMode(argv);
const consolePatcher = new ConsolePatcher({
stderr: true,