fix: restore compact desktop chat empty state

This commit is contained in:
boos
2026-06-29 14:52:47 +08:00
parent 258f4c1a00
commit dfae8cdc80
2 changed files with 13 additions and 5 deletions
@@ -31,3 +31,14 @@
- `pnpm --dir desktop run build` passed after bundling built-in skills. - `pnpm --dir desktop run build` passed after bundling built-in skills.
- `cargo check -p open-agent-sdk --manifest-path desktop/src-tauri/Cargo.toml` passed after bundling built-in skills. - `cargo check -p open-agent-sdk --manifest-path desktop/src-tauri/Cargo.toml` passed after bundling built-in skills.
- `pnpm --dir desktop exec tsc --noEmit` passed after merging Agent Workbench into Chat. - `pnpm --dir desktop exec tsc --noEmit` passed after merging Agent Workbench into Chat.
## AQBot 2026-06 Reference Notes
Pulled `AQBot-Desktop/AQBot` at `9c21a2d` for comparison. Useful upstream ideas to consider next:
- Keep the chat empty state minimal: title-only "开始新的对话", with Agent/skills/model controls living in the bottom composer.
- Role module: local role templates, opening messages/questions, role marketplace, and role conversations with badges/avatar.
- Multi-source skill roots: AQBot/Codex/Claude/Agents directories with source filtering, groups, batch enable/disable, and install targets.
- Built-in tools: fetch and file search available without a separate MCP server.
- Conversation workflow polish: message versions, branches, long-context compression, multi-model parallel responses, minimap, and stats panel.
- Import workflow: ChatGPT/Cherry Studio/Kelivo imports with provider key and attachment migration.
+2 -5
View File
@@ -4142,14 +4142,11 @@ export function ChatView() {
) : ( ) : (
<div <div
className="flex flex-col items-center justify-center h-full" className="flex flex-col items-center justify-center h-full"
style={{ gap: 8, padding: '0 24px', color: token.colorTextSecondary }} style={{ padding: '0 24px', color: token.colorTextSecondary }}
> >
<Typography.Title level={3} style={{ margin: 0, color: token.colorText }}> <Typography.Title level={3} style={{ margin: 0, color: token.colorText, fontWeight: 500 }}>
{t('chat.welcome')} {t('chat.welcome')}
</Typography.Title> </Typography.Title>
<Typography.Text type="secondary">
{t('chat.emptyPrompt', '输入消息开始对话,或在下方切换 Agent / 创作模式。')}
</Typography.Text>
</div> </div>
) )
) : ( ) : (