fix: 修复TUI界面多个问题,添加记忆模块模式选择功能
- 修复ToolResult对象的get方法错误 - 修复TUI版本号显示错误(v5.4.1 -> v6.0) - 修复Shift+Enter换行功能 - 修复AI回复颜色显示问题 - 添加记忆模块模式选择功能(陪伴模式/工作模式) - 清理项目文件,准备上传到Gitee
This commit is contained in:
1 parent
329854866b
commit
b5f638cffc
6 files changed
+153
-76
No files matched your search
@@ -45,13 +45,12 @@ class DisplayMixin:
|
||||
response_lines = content.split('\n')
|
||||
if self.tui_output_callback:
|
||||
for i, line in enumerate(response_lines):
|
||||
if i == 0:
|
||||
prefix = "[yellow]>[/] " if is_continue else "[cyan]>[/] "
|
||||
line = prefix + line
|
||||
# 为每一行都添加前缀,确保整个AI回复都使用正确的样式
|
||||
prefix = "[yellow]>[/] " if is_continue else "[cyan]>[/] "
|
||||
if i == len(response_lines) - 1:
|
||||
self._output(f"{line} {user_id_display}")
|
||||
self._output(f"{prefix}{line} {user_id_display}")
|
||||
else:
|
||||
self._output(line)
|
||||
self._output(f"{prefix}{line}")
|
||||
self._output("")
|
||||
else:
|
||||
for i, line in enumerate(response_lines):
|
||||
|
||||
Reference in new issue
Block a user