Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: tui初始页选择时键入ctrl c显示问题

jingjinduo3122f92c9080
diff --git a/jiuwenclaw/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenclaw/channels/tui/frontend/src/ui/app-screen.ts
index c3a87d6987..b4e60258ff 100644
--- a/jiuwenclaw/channels/tui/frontend/src/ui/app-screen.ts
+++ b/jiuwenclaw/channels/tui/frontend/src/ui/app-screen.ts
@@ -601,6 +601,12 @@ export class AppScreen implements Component, Focusable {
return;
}
+ if (this.startupPromptList !== null && matchesKey(data, "ctrl+c")) {
+ this.startupPromptList.handleInput(data);
+ this.tui.requestRender();
+ return;
+ }
+
const handled = handleAppScreenKeyInput(data, {
interruptTask: () => this.interruptTask(),
exitApp: () => this.exit(),
@@ -1242,7 +1248,7 @@ export class AppScreen implements Component, Focusable {
padToWidth(palette.text.dim("If unfamiliar, please review the folder contents before proceeding."), width),
"",
...this.startupPromptList.render(width),
- padToWidth(palette.text.dim("↑/↓ choose · Enter confirm · Esc use default workspace"), width),
+ padToWidth(palette.text.dim("↑/↓ choose · Enter confirm · Esc / Ctrl+C use default workspace"), width),
];
}