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:/status中config面板进入编辑后,esc返回两次即可回到原页面
openJiuwen-bot1d59a62a40d1
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.tsindex e5f62a0486..d19f09db73 100644--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts@@ -5208,12 +5208,16 @@ export class AppScreen implements Component, Focusable {const newQuery = state.searchQuery.slice(0, -1);this.updateConfigSearchQuery(newQuery);} else if (matchesKey(data, "escape")) {- // Layered ESC: clear search query first, then exit search mode+ // Layered ESC: clear search query first; once the query is empty, a+ // second ESC exits the editor entirely (back to StatusView config tab+ // when invoked from /status, or closed when invoked via /config).+ // We must NOT burn an ESC just to flip searchMode true→false while+ // staying on the search_list — that is what forced the extra ESC.if (state.searchQuery) {this.updateConfigSearchQuery("");this.configEditorState = { ...this.configEditorState!, searchMode: false };} else {- this.configEditorState = { ...this.configEditorState!, searchMode: false };+ this.closeConfigEditor();}} else if (matchesKey(data, "return") || matchesKey(data, "space")) {const selectedItem = state.list.getSelectedItem();