mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Fix noise in headless mode on STDOUT (#1184)
This commit is contained in:
@@ -30,7 +30,6 @@ import {
|
||||
export async function main() {
|
||||
const workspaceRoot = process.cwd();
|
||||
const settings = loadSettings(workspaceRoot);
|
||||
setWindowTitle(basename(workspaceRoot), settings);
|
||||
|
||||
await cleanupCheckpoints();
|
||||
if (settings.errors.length > 0) {
|
||||
@@ -84,6 +83,7 @@ export async function main() {
|
||||
|
||||
// Render UI, passing necessary config values. Check that there is no command line question.
|
||||
if (process.stdin.isTTY && input?.length === 0) {
|
||||
setWindowTitle(basename(workspaceRoot), settings);
|
||||
render(
|
||||
<React.StrictMode>
|
||||
<AppWrapper
|
||||
|
||||
Reference in New Issue
Block a user