feat: the files sidebar, Markdown thinking, a banner that clears
- The chat's top-right menu only repeated the per-turn menu. It now opens a files sidebar that slides in from the right, the way the official client's right panel does: browse the session directory with a breadcrumb and an up key, filter the current directory, search its subdirectories (bounded, skipping .git/node_modules/build and friends), preview text/code/Markdown/ images, edit and save text files, create files and folders, and download any file through the system save dialog. - The panel's "..." menu carries the official client's "显示被 git 忽略的文件" toggle (the listing asks the server to respect gitignore by default) and a refresh. 项目知识 and 终端 have their tabs, marked as coming later. - Thinking blocks are Markdown too (headings, lists, inline code), rendered with the shared MarkdownView at a smaller, quieter size. - The reconnect banner stayed forever: the stream loop sets it when the SSE connection drops and nothing cleared it. Any event proves the stream is back (the server greets every connection with server.connected), so it now clears the message then. - Markdown rendering moved to lib/widgets/markdown_view.dart, shared by messages, thinking, compaction summaries and file previews. Version 0.3.9 (code 309).
This commit is contained in:
1 parent
b9433c30cb
commit
9b53338908
9 files changed
+1118
-80
No files matched your search
@@ -27,6 +27,21 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.3.9 文件侧栏、思考 Markdown 与重连提示(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 文件侧栏 | 会话顶栏原来的 ⋮(和每轮底部的菜单重复)换成侧栏按钮,从右侧滑出面板:目录浏览、面包屑、上一级、搜索(当前目录即时过滤 + 子目录递归搜索,跳过 .git/node_modules/build 等,最多 400 个目录/200 条结果)、新建文件/文件夹、刷新 |
|
||||
| 预览 | 文本与代码等宽显示;Markdown 按 Markdown 渲染(共用聊天那套主题修正);图片用 InteractiveViewer 缩放;二进制提示无法预览。文本可切到编辑并保存(`/api/fs/write`) |
|
||||
| 下载 | `/api/fs/raw` 取原始字节,交给系统保存对话框(Android SAF / 桌面对话框) |
|
||||
| 显示被忽略的文件 | 「⋯」菜单里的开关(`respectGitignore=false`),默认按下图与官方一致的行为隐藏 git 忽略项;另含刷新 |
|
||||
| 占位页 | 「项目知识」「终端」两个页签已在位,内容标注「即将支持」 |
|
||||
| 思考 Markdown | 展开思考块时不再按纯文本渲染,改用与回答一致的 Markdown 渲染(字号更小、颜色更淡) |
|
||||
| 重连提示 | 事件流恢复(服务端每个连接都会先发 `server.connected`)即清除「连接中断,正在重连…」,不再一直挂着 |
|
||||
| 版本 | **0.3.9(code 309)** |
|
||||
|
||||
---
|
||||
|
||||
## 0.3.8 内置 `/compact` 与压缩记录(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user