/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Box, Text } from 'ink'; import { Storage, isDebugLoggingDegraded } from '@qwen-code/qwen-code-core'; import { useConfig } from '../contexts/ConfigContext.js'; import { theme } from '../semantic-colors.js'; /** * Displays debug mode status and log file path when debug mode is enabled. */ export const DebugModeNotification = () => { const config = useConfig(); if (!config.getDebugMode()) { return null; } const logPath = Storage.getDebugLogPath(config.getSessionId()); const isDegraded = isDebugLoggingDegraded(); return ( Debug mode enabled Logging to: {logPath} {isDegraded && ( Warning: Debug logging is degraded (write failures occurred) )} ); };