mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
- Remove verbose tool execution debug logs to reduce noise - Add debug logging for config initialization phases - Add comprehensive debug logging for skill loading/management - Add rate limiting for QwenLogger network error logs - Remove Notifications component from DefaultAppLayout - Update tests to reflect UI changes and logging behavior Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Box } from 'ink';
|
|
import { MainContent } from '../components/MainContent.js';
|
|
import { DialogManager } from '../components/DialogManager.js';
|
|
import { Composer } from '../components/Composer.js';
|
|
import { ExitWarning } from '../components/ExitWarning.js';
|
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
import { useTerminalSize } from '../hooks/useTerminalSize.js';
|
|
|
|
export const DefaultAppLayout: React.FC = () => {
|
|
const uiState = useUIState();
|
|
const { columns: terminalWidth } = useTerminalSize();
|
|
|
|
return (
|
|
<Box flexDirection="column" width={terminalWidth}>
|
|
<MainContent />
|
|
|
|
<Box flexDirection="column" ref={uiState.mainControlsRef}>
|
|
{uiState.dialogsVisible ? (
|
|
<Box marginX={2} flexDirection="column" width={uiState.mainAreaWidth}>
|
|
<DialogManager
|
|
terminalWidth={uiState.terminalWidth}
|
|
addItem={uiState.historyManager.addItem}
|
|
/>
|
|
</Box>
|
|
) : (
|
|
<Composer />
|
|
)}
|
|
|
|
<ExitWarning />
|
|
</Box>
|
|
</Box>
|
|
);
|
|
};
|