Commit Graph
89 Commits
Author SHA1 Message Date
xintaofeiandClaude Opus 4.6 8362bdf2c7 fix(settings): limit model provider agent types and adjust card layout
Restrict supported agent types to Claude Code, Codex CLI, and Gemini CLI. Reposition agent type badges to be vertically centered beside the name and API URL block in provider cards.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 11:20:12 +08:00
xintaofeiandClaude Opus 4.6 b64976e4d6 feat(settings): refactor agent auth modes and add model provider authentication
- Split env vars and config file persistence into separate save operations
- Add model_provider_id field to agent_setting for tracking selected provider
- Add "Model Provider" auth mode for Claude Code, Codex CLI, and Gemini CLI
- Add "Custom Endpoint" auth mode for Claude Code (previously only official subscription)
- Unify auth mode labels across all three agents (official subscription / custom endpoint / model provider)
- When model provider is selected, fill api_url and api_key into env and config automatically
- Resolve model provider credentials at ACP connect time as a backend fallback
- Clear provider deletion cascades to agent_setting.model_provider_id
- Claude Code writes API credentials to config.env (ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN)
- Codex: switching auth modes patches config.toml instead of clearing it
- Add i18n keys for new auth modes in all 10 supported languages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 22:10:18 +08:00
xintaofeiandClaude Opus 4.6 ba19299696 feat(settings): add model provider management with full CRUD support
Add a new settings page for managing API model providers (name, API URL,
API key, applicable agent types). Includes database migration, SeaORM
entity, backend CRUD commands/handlers, frontend settings UI with agent
type filter, add/edit/delete dialogs, and i18n support for all 10 locales.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:35:14 +08:00
xintaofeiandClaude Opus 4.6 32a1c5adc0 fix: improve error message when exporting long conversations as image
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 23:38:25 +08:00
xintaofeiandClaude Opus 4.6 4c36369dd2 feat: add export conversation to image, markdown, and HTML formats
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 18:56:37 +08:00
xintaofeiandClaude Opus 4.6 9396127cd9 feat: add @ file mention support in chat input and unify directory attachment
Support typing "@" in the chat input to trigger a file list popup with
filtering, keyboard navigation, and file/directory attachment. Directories
from the sidebar file tree now attach as resource links instead of injecting
text into the input.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 22:43:27 +08:00
xintaofeiandClaude Opus 4.6 efd8e1104f features: add commit and push option to git commit window
- Add split button with dropdown in commit dialog supporting both
  "Commit" and "Commit and Push" actions
- Pass folderId through gitCommit/gitPush API calls so backend emits
  events that the folder window can receive for toast notifications
- Update Tauri git_commit and git_push commands to accept folder_id
  parameter with window label fallback for cross-window compatibility
- Wrap commit page with GitCredentialProvider for push authentication
- Keep commit window open when push fails so user can see the error
- Add i18n translations for all 10 locales

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:22:41 +08:00
xintaofeiandClaude Opus 4.6 b2d10fa008 optimize: terminal spawn lifecycle to eliminate output race condition
Move PTY spawn from context layer to view layer so event subscription
happens before spawn, preventing loss of initial terminal output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 13:55:38 +08:00
xintaofeiandClaude Opus 4.6 d0e0aad525 optimize: WeChat QR code auth flow and channel reliability
- Generate QR code server-side when iLink API returns SPA page URL
  (added qrcode + image crates for PNG generation)
- Strip bot_token from frontend response (new WeixinQrcodeStatusPublic type)
- Add request timeouts and shared HTTP client for QR code endpoints
- Fix TOCTOU race on reply_context double-lock (single lock scope)
- Extract do_send() helper to deduplicate sendmessage logic; resend now
  checks ret field for context expiry instead of HTTP status only
- Cap pending_messages buffer at 50 to prevent unbounded memory growth
- Generate stable X-WECHAT-UIN per backend instance instead of per request
- Extract ILINK_CHANNEL_VERSION constant (was hardcoded in 4 places)
- Add 5-minute client-side QR expiry timeout in frontend dialog
- Track consecutive polling errors and show warning after 3 failures
- Stabilise onAuthSuccess/onClose callback refs to prevent polling restarts
- Replace dead i18n key weixinOpenQrcode with weixinPollError

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 11:22:51 +08:00
xintaofei 8050e30a55 features: supports WeChat channel 2026-04-02 00:17:23 +08:00
xintaofei b98f50340f Feature: Supports remote branch deletion 2026-04-01 12:41:15 +08:00
xintaofei 296b0c7806 优化MCP管理,支持所有Agent 2026-03-31 22:15:48 +08:00
xintaofei 25a2bd0922 Agent在实时响应中因为错误而中断时发送系统通知 2026-03-31 15:43:00 +08:00
xintaofei f06360a59d 消息渠道的消息支持多语言 2026-03-31 13:49:16 +08:00
xintaofei f2a53acc9d 修复错误警告 2026-03-31 13:11:08 +08:00
xintaofei edc12a0e39 支持渠道、指令(自定义前缀)和事件(启用/禁用)管理 2026-03-31 11:49:24 +08:00
xintaofei d18cec33bf 初步集成消息通道,支持Telegram + Lark机器人 2026-03-30 22:51:49 +08:00
xintaofei 8d393b3b4f 优化web/server模式下的目录选择,现在支持目录树选择,而不是硬文本写入 2026-03-30 14:59:23 +08:00
xintaofei d653a20779 修复:会话消息的工具调用里展开后无法显示新文件的内容 2026-03-29 11:34:32 +08:00
xintaofei d75f94acf3 Merge branch 'main' into cline 2026-03-28 20:15:21 +08:00
xintaofei be3f4986d7 支持Cline Agent 2026-03-28 20:14:48 +08:00
xintaofei ab8a936767 优化文件编辑权限请求的差异样式 2026-03-28 18:47:00 +08:00
xintaofei a049db51e2 优化agent请求文件修改权限时的文件差异显示样式 2026-03-28 18:10:20 +08:00
xintaofei 0ab9d46b63 支持实时响应时解析编辑工具的代码行号 2026-03-28 17:13:29 +08:00
xintaofei c0b3e9aff9 优化编辑工具调用的行号解析 2026-03-28 15:46:52 +08:00
xintaofei cb1c7211ef 修复右侧边栏“差异”区域统计的行数不正确 2026-03-28 15:07:23 +08:00
xintaofei 8bd19738d0 优化消息里读/写内容显示样式 2026-03-28 14:04:19 +08:00
xintaofei 10725df8ab 现在会话输入框会记住用户的配置选项和模型选择,避免每次都要重新勾选 2026-03-27 22:19:07 +08:00
xintaofei ea77c5b0e8 folder增加项目启动器入口,优化窗口跳转 2026-03-27 15:25:55 +08:00
xintaofei 3b080c801b 优化项目启动器的创建功能 2026-03-27 15:08:53 +08:00
xintaofei 7c89e150f9 初始化项目启动器代码 2026-03-27 13:05:27 +08:00
xintaofei bf32cb71e7 修复build问题 2026-03-26 22:19:19 +08:00
xintaofei f61f9fb025 修复所有lint警告和错误 2026-03-26 21:47:13 +08:00
xintaofei c4bb0ed092 web浏览器下页面都新窗口打开 2026-03-25 23:21:56 +08:00
xintaofei 21e51dabf3 支持web端访问更新/web管理接口 2026-03-25 23:07:59 +08:00
xintaofei e93b0586b9 支持标签页folder窗口打开 2026-03-25 21:56:54 +08:00
xintaofei 388f92637c 优化folder打开逻辑 2026-03-25 18:24:32 +08:00
xintaofei 218055ab01 完善folder页面的web接口实现 2026-03-25 15:27:43 +08:00
xintaofei ac09d3db9e 初始化web服务功能 2026-03-25 14:26:26 +08:00
xintaofei 6067d5f9c4 修复git未跟踪文件目录显示不全 2026-03-24 10:05:36 +08:00
xintaofei be08b59aa0 支持把目录附加到会话(临时处理) 2026-03-23 18:15:30 +08:00
xintaofei 017b598649 支持在git推送时选择远程源 2026-03-23 16:39:49 +08:00
xintaofei b010ef071d 修复本地新创建的分支无法推送到远程 2026-03-23 16:09:18 +08:00
xintaofei d9032f1c82 添加git推送窗口,显示待提交列表和查看文件差异 2026-03-21 20:37:19 +08:00
xintaofei 048b8a8480 修复警告和错误 2026-03-21 19:29:29 +08:00
xintaofei d0655066b6 发送系统通知时携带folder名 2026-03-21 19:14:38 +08:00
xintaofei 32d922a346 修复lint问题 2026-03-21 18:06:59 +08:00
xintaofei 450b081e88 重构git凭证托管,改为操作系统托管 2026-03-21 18:00:05 +08:00
itpkcn@gmail.com aaad19adb5 支持实时处理Git凭证 2026-03-21 13:20:46 +08:00
itpkcn@gmail.com 62fab2c3f2 设置界面支持版本控制和github账号管理 2026-03-21 11:33:48 +08:00