travel-agent-cli 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/python/interactive.py +3 -1
package/package.json
CHANGED
package/python/interactive.py
CHANGED
|
@@ -168,7 +168,9 @@ class ChatScreen(Screen):
|
|
|
168
168
|
def action_submit(self) -> None:
|
|
169
169
|
"""提交输入"""
|
|
170
170
|
input_widget = self.query_one("#chat-input", Input)
|
|
171
|
-
|
|
171
|
+
# 手动触发提交事件
|
|
172
|
+
from textual.events import InputSubmitted
|
|
173
|
+
input_widget.post_message(InputSubmitted(input_widget))
|
|
172
174
|
|
|
173
175
|
def action_clear(self) -> None:
|
|
174
176
|
"""清屏"""
|