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] 修复linux系统无法使用鼠标选中文本
haowenzhong1f70ade07065f
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.tsindex 197f9ea8d4..948b44b0c8 100644--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts@@ -799,7 +799,6 @@ export class AppScreen implements Component, Focusable {setCurrentCwd(process.cwd());// Initialize startup prompt for workspace trustthis.initStartupPrompt();- this.tui.terminal.write(ENABLE_MOUSE_TRACKING);}private initStartupPrompt(): void {@@ -846,6 +845,14 @@ export class AppScreen implements Component, Focusable {this.editor.focused = value;}+ private setMouseTrackingEnabled(enabled: boolean): void {+ if (enabled) {+ this.tui.terminal.write(ENABLE_MOUSE_TRACKING);+ } else {+ this.tui.terminal.write(DISABLE_MOUSE_TRACKING);+ }+ }+dispose(): void {if (this.transientNoticeTimer) {clearTimeout(this.transientNoticeTimer);@@ -4634,6 +4641,7 @@ export class AppScreen implements Component, Focusable {if (!pendingQuestion) {this.questionList = null;this.questionDetailsMap = null;+ this.setMouseTrackingEnabled(false);return;}@@ -4641,6 +4649,7 @@ export class AppScreen implements Component, Focusable {if (!question || question.options.length === 0) {this.questionList = null;this.questionDetailsMap = null;+ this.setMouseTrackingEnabled(false);return;}@@ -4708,6 +4717,7 @@ export class AppScreen implements Component, Focusable {list.setSelectedIndex(selectedIndex);}this.questionList = list;+ this.setMouseTrackingEnabled(true);}private handleQuestionSelection(label: string): void {@@ -4721,6 +4731,7 @@ export class AppScreen implements Component, Focusable {this.otherInputMode = true;this.pendingQuestionAnswers.set(this.activeQuestionIndex, label);this.questionList = null;+ this.setMouseTrackingEnabled(false);this.syncEditorSubmitState(snapshot);this.tui.requestRender();return;