Commit Graph
337 Commits
Author SHA1 Message Date
Abeautifulsnow e7dffeca37 fix(ai): tool call status cards, table overflow, streaming TextDelta
* fix(ai): merge tool call status cards

* fix(ai): constrain markdown table overflow

* fix(ai): restore streaming of answer text via TextDelta events

The on_chunk closure was missing live AgentEvent::TextDelta emission for text content, causing the AI answer text to appear all at once after the turn completed. Reasoning deltas were unaffected.

Root cause: commit c30033628 rewrote the on_chunk closure and accidentally dropped the TextDelta emit line while keeping ReasoningDelta intact.

Fix: restore TextDelta emit in on_chunk for incremental streaming, and remove the post-turn full-TextDelta workaround which would duplicate content.

* test(ai): extract chunk_to_events and add streaming event tests

Extract the event-generation logic from the on_chunk closure into a pure function chunk_to_events() to make it testable, and add 6 unit tests covering all chunk content combinations: text-only, reasoning-only, mixed, empty, and edge cases.

This ensures a regression like the one fixed in the previous commit (where TextDelta emission was dropped while ReasoningDelta was kept) would be caught by tests.
2026-07-02 18:49:50 +08:00
zipgandstaff 4efff9a190 fix(editor): prompt before closing unsaved SQL tabs
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-07-02 16:43:55 +08:00
Abeautifulsnow a0754206d3 feat(ai-config): persist AI settings per provider (#2412)
## 背景说明
AI 设置原本只有一个配置槽,切换模型厂商时会覆盖之前填写的 endpoint、API Key、model 等信息。本次改动让每个模型厂商各自保存一份配置,并在设置页和对话窗口提供已配置状态与快速切换能力。

## 修改内容
- 新增 ai_provider_configs 存储表,用于按 provider 保存独立 AI 配置
- 新增 Tauri/Web API:保存和加载 provider 级 AI 配置
- 设置页 provider 下拉展示“当前/已配置”状态
- 设置页切换 provider 前会先保存当前表单编辑内容,避免未保存输入丢失
- 对话窗口模型选择器支持查看并切换已配置过的其他 provider
- provider 配置保存时强制 config.provider 与 provider key 一致,避免错位配置污染
- 所有语言补齐新增 i18n 文案

## 修复的问题
- 切换模型厂商时原厂商配置会丢失
- 设置页切换 provider 时本地表单编辑态可能未保存
- provider key 与 config.provider 不一致时可能激活错误厂商
- 对话窗口模型选择器只能看到当前 provider 的模型,不能看到其他已配置厂商

## 测试
- npx tsc --noEmit
- cargo check -p dbx-core
- cargo check -p dbx-web
- cargo check --manifest-path src-tauri/Cargo.toml
2026-07-02 14:24:57 +08:00
47dc35ccb2 feat(settings): 启动时标签页恢复策略三选项 (all/pinned/none) (#2395)
* feat(settings): 添加启动标签页恢复策略

* i18n: 补齐启动标签页恢复策略 5 个 locale 译文

---------

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
Co-authored-by: t8y2 <1156263951@qq.com>
2026-07-02 12:23:24 +08:00
8747df53ef fix(mongodb): support multi-command execution
* fix mongodb multi-command execution

* fix(connection): 复制连接时保持在同一组内

- 修改 `addConnection` 方法以支持指定目标组 ID
- 更新 `duplicateConnection` 函数以传递目标组 ID
- 添加测试用例以验证复制连接的功能

* fix: add MongoDB data transfer entry

* feat(editor): SQL 编辑器选区大小写转换

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>

* fix(editor): 修复SQL快捷执行导致执行全量SQL的问题 (#2384)

- 将执行SQL语句的逻辑从直接请求改为通过事件发射
- 增强了代码的可扩展性和可维护性

* fix(sidebar): cache tooltip overflow measurement

* fix(dialog): allow dragging window from modal overlay

* fix(oracle): reuse shared pool for data tabs

* fix(sidebar): reduce comment text repaint cost

* fix(saved-sql): preserve folder on metadata save

* fix(agent): execute transaction control SQL as statements

* feat(vector): add Qdrant/Milvus collection dimension display (#2396)

* fix(oracle): 修复时间字段编辑和表结构修改报错

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>

* fix(agents): limit common version bumps

---------

Co-authored-by: 二丫讲梵 <eryajf@163.com>
Co-authored-by: zipg <geeky@foxmail.com>
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
Co-authored-by: t8y2 <1156263951@qq.com>
Co-authored-by: lexmin0412 <zhangle_dev@outlook.com>
2026-07-02 12:19:38 +08:00
二丫讲梵 de7f2fe6b6 fix(editor): 修复SQL快捷执行导致执行全量SQL的问题 (#2384)
- 将执行SQL语句的逻辑从直接请求改为通过事件发射
- 增强了代码的可扩展性和可维护性
2026-07-02 11:18:14 +08:00
zipgandstaff de74629c6f feat(editor): SQL 编辑器选区大小写转换
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-07-02 10:55:43 +08:00
t8y2 dfd1e7e6d1 fix(editor): preserve snippet tab navigation 2026-07-01 20:29:06 +08:00
ff1a0f5eda fix: 隔离 MySQL 大库场景前台查询与后台元数据加载 (#2354)
* fix: isolate data tab mysql queries from metadata loads

* refactor(completion): drop unused limiter snapshot and share concurrency constant

---------

Co-authored-by: zero <zero@zeroMacmini.local>
Co-authored-by: t8y2 <1156263951@qq.com>
2026-07-01 20:03:09 +08:00
luoianun 95e3cb6571 fix(presto): optimize metadata completion 2026-07-01 19:05:45 +08:00
onenewcode 93eeeaa9c6 feat(mongo): add dropIndex and dropIndexes support across full stack 2026-07-01 17:53:09 +08:00
zipgandstaff 38d761cba6 fix(editor): stop scrollbar drag triggering text selection in SQL editor
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-07-01 17:43:37 +08:00
t8y2 23ab48bfb7 fix(editor): add visual indication for non-editing shortcut IDs 2026-07-01 14:49:35 +08:00
t8y2 00b5715307 feat(settings): move settings into main tab 2026-07-01 14:06:40 +08:00
t8y2 d88e1b1e6a fix(mcp): use node entry for Windows configs 2026-07-01 13:40:48 +08:00
t8y2 1499008ba8 fix(editor): suppress SQL completion in strings 2026-07-01 11:48:43 +08:00
zipgandstaff 910fde75e1 Fix:修复左侧运行多条 SQL 只执行首条 (#2256)
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-07-01 00:00:26 +08:00
zipgandstaff c38bc05417 Fix:修复 SQL 子查询语义诊断误报 (#2184)
* Fix:修复 SQL 子查询语义诊断误报

* Improve:添加 SQL 语义诊断开关

* Improve:优化 SQL 语义诊断开关说明

* Fix:收紧 SQL 语义诊断飘红范围

* Improve:调整 SQL 语义诊断默认策略

---------

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-06-30 20:15:59 +08:00
zipgandstaff ccb91784b3 perf(editor): cache executable statement ranges for large SQL scrolling
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-06-30 18:05:37 +08:00
funnytime 3e7cf30ce5 feat(grid): add data grid quick entry 2026-06-30 09:14:44 +08:00
zipg 79298f49d9 improve: 优化 SQL 语义诊断范围 2026-06-29 20:05:26 +08:00
zipg e3ec2228d3 fix: 优化 WHERE 字段补全排序 2026-06-29 19:42:53 +08:00
lexmin0412 bc409cffc0 feat(ai): add vector DB assistant tools 2026-06-29 11:46:41 +08:00
t8y2 d01ffb0d55 feat(web): support context path deployments 2026-06-29 09:14:37 +08:00
大峰 190b5b4ad8 fix(editor): support schema-qualified table navigation 2026-06-29 01:51:20 +08:00
二丫讲梵 df43561738 feat(editor): add executable statement markers and per-statement run 2026-06-28 12:13:29 +08:00
zipg 38d300bd35 fix(mysql): 修复 enum/set 字段长度显示异常 2026-06-28 09:59:07 +08:00
zipg 28e7cdfacc improve: 统一表单控件小圆角样式 2026-06-28 00:51:45 +08:00
t8y2 bc5ae91abd fix(ai): open assistant links externally 2026-06-27 16:40:04 +08:00
huangyemin 4ad6723512 feat(ai): support custom Anthropic messages API 2026-06-27 10:02:13 +08:00
eryajf 76e2d33cd3 feat(update): add configurable update download source 2026-06-26 22:25:42 +08:00
t8y2 fbcf3591d0 feat(settings): add MCP config templates for AI clients 2026-06-26 19:15:12 +08:00
zipgandstaff 90bed417e9 fix: 完善 SQL 表名和字段语义诊断 (#1961)
Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
2026-06-26 18:47:10 +08:00
t8y2 f3dfa3e1a7 fix: 修复 webdav 文件格式以恢复 CI 检查 2026-06-26 16:52:13 +08:00
二丫讲梵 861200d664 fix: 修复webdav自动定时同步异常的问题 (#1921) 2026-06-26 15:35:48 +08:00
49e79eb934 feat: 支持 SQL 参数查询
* Fix: 支持 SQL 参数查询

* Fix: 修复前端格式检查

---------

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
Co-authored-by: t8y2 <1156263951@qq.com>
2026-06-26 14:19:05 +08:00
lexmin0412 f17f91c3be feat(mcp): add OpenCode config guide in settings (#1887) 2026-06-26 11:24:30 +08:00
dalew d815a16b86 feat(redis): move scan page size to connections 2026-06-26 11:13:34 +08:00
zipg 0f312084ff fix(sidebar): paginate table list by page size 2026-06-25 23:54:09 +08:00
Oleksandr Liakhevych 034cce47e0 fix(ai): Codex CLI provider reliability fixes for DBX Desktop
* fix(ai): resolve Codex CLI from shell PATH on macOS

* fix(ai): hide Codex CLI subprocess windows on Windows

* feat(ai): allow to set environment variable for Codex CLI

* fix(ai): parse Codex MCP tool events

* fix(mcp): honor Postgres TLS settings in direct queries
2026-06-25 22:31:14 +08:00
二丫讲梵 16f546ada1 feat(AiAssistant): 增加输入框高度调整功能,AI 回答同时支持输入
- 新增输入框高度拖拽调整功能
- 保存用户偏好的输入框高度
- 优化输入框在窗口调整时的响应
2026-06-25 22:13:04 +08:00
二丫讲梵 c2aeaaa8f7 feat(ai): 添加 Codex CLI 命令解析和环境变量处理功能
- 实现了对 Codex CLI 命令的解析,支持路径解析和环境变量设置
- 增加了对命令环境的处理,确保正确的执行路径
- 添加了相关的单元测试,确保功能的正确性
2026-06-25 16:47:43 +08:00
zipg 150daadb53 fix(grid): optimize data grid interactions 2026-06-25 13:51:14 +08:00
Spencer.Chang 529454e6d1 feat(structure): add configurable preset fields for new tables 2026-06-25 01:05:36 +08:00
miracle 588ba3352d feat: stream query result CSV/XLSX exports
* docs: add query result streaming export design

* feat(core): stream query result exports

* feat: expose query result streaming export APIs

* feat(desktop): stream query result exports from grid

* fix: route query result export cancellation through its command

* fix: reduce query export batch size and cancel latency

* opt: del local test files
2026-06-24 21:18:11 +08:00
t8y2 3be3eb698a fix(editor): make Tab key honor configured indent width 2026-06-24 14:49:20 +08:00
luoianunandt8y2 b8511051cd feat(editor): auto alias SQL table completions
* feat: auto alias SQL table completions

* fix: preserve alias suggestion fallback order

---------

Co-authored-by: t8y2 <1156263951@qq.com>
2026-06-24 14:48:47 +08:00
二丫讲梵 3ebfae05a2 feat(nacos): add Nacos management console (#1456) 2026-06-24 01:19:18 +08:00
Spencer.Chang ff1559f018 feat(editor): add View DDL action to query editor context menu (#280) 2026-06-24 00:48:35 +08:00
t8y2 cebb39cb80 feat(completion): add scoped metadata assistant 2026-06-24 00:40:28 +08:00