feat: add ConsoleMain test entry for dumb console

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
abel533
2026-04-09 23:03:40 +08:00
co-authored by Copilot
parent d9ca1c7dd2
commit 6fcd0caa9e
2 changed files with 49 additions and 0 deletions
@@ -45,6 +45,9 @@ public class ClaudeCodeRunner implements CommandLineRunner {
// 检查是否强制使用旧模式
String tuiMode = System.getenv("CLAUDE_CODE_TUI");
if (tuiMode == null) {
tuiMode = System.getProperty("CLAUDE_CODE_TUI");
}
if ("legacy".equalsIgnoreCase(tuiMode)) {
log.info("Legacy TUI mode requested via CLAUDE_CODE_TUI=legacy");
replSession.start();