Commit Graph
4651 Commits
Author SHA1 Message Date
HybridTalentComputing dce8946498 fix(auth): remove unnecessary 'from' parameter from auth URL 2026-06-16 22:04:59 +08:00
Leo f758dadfa0 Revise README with new download figures and links
Updated download statistics and project details in README.
2026-06-16 21:42:36 +08:00
HybridTalentComputing 0dcea26ec1 docs: bump version to 3.86.3 and update changelog
更新版本说明,记录本次四个修复,清理历史更新记录。
2026-06-16 21:17:24 +08:00
HybridTalentComputing e9959269ee fix(chat): prevent message loss after cancel via newTask fallback
cancel 任务后,handleSendMessage 的三分支路由(messages.length===0 /
clineAsk 有值 / isTaskRunning)会全部 miss:cancel 后 Controller 走
resumeTaskFromHistory,此时既没有 pending ask(clineAsk===undefined),
任务也不在 streaming(isTaskRunning===false),三条分支都不命中,
messageSent 保持 false,用户输入的消息被静默丢弃,输入框不清空、
UI 看起来像卡死,只能 reload 窗口才能恢复。

修复:在三分支之后加兜底——当 messageSent 仍为 false(说明任务处于
不确定状态,最常见就是 cancel 后的死区)时,用 newTask 新开任务承载
用户输入,确保消息永远不会被吞掉。

注意:这只是消除"消息被吞"的症状。cancel 清理不彻底的根因
(VscodeTerminalProcess 缺少 terminate()、abort 流程卡住)仍需单独处理。
2026-06-16 20:56:58 +08:00
HybridTalentComputing a8496114b0 fix(hooks): resolve global hooks dir via localized documents path
钩子的"写入/界面"路径与"发现/执行"路径之前不一致:写入侧(createHook /
toggleHook / deleteHook / refreshHooks)硬编码 os.homedir()/"Documents"
"Cline"/"Hooks",而执行侧(disk.ts ensureHooksDirectoryExists →
getDocumentsPath)正确读取系统本地化的 Documents 路径。

在 Linux 中文系统(文档目录本地化为 ~/文档)上,这导致钩子被存进凭空
新建的 ~/Documents/Cline/Hooks,界面可见但无法执行;移到 ~/文档 后执行
得了但界面又识别不到。Rules/Workflows/MCP 不受影响,因为它们走的是
disk.ts 的 getDocumentsPath()。

修复:让 resolveHooksDirectory() 与 refreshHooks() 复用 getDocumentsPath()
(Linux 走 xdg-user-dir,Windows 走 MyDocuments 特殊文件夹),与执行管线
统一,消除两套路径实现的不一致。globalHooksDirOverride 优先级保持不变,
测试不受影响。

upstream v3.86.1→v3.89.2 范围内未修复此 bug,本补丁为独立修复。
2026-06-16 20:25:16 +08:00
HybridTalentComputing 3b5cb91322 fix(vscode): add timeout to shell integration stream to prevent indefinite hang
VSCode 终端模式下,命令执行完成但输出大量内容时,shell integration 的
]633;D 完成序列可能丢失(自定义 prompt、MSYS2、tmux 等场景尤其常见),
导致 VscodeTerminalProcess.run() 里的 `for await (data of stream)` 永不
退出,completed 事件不 emit,命令框一直显示"等待中/已跳过"。

此时用户被迫 cancel,又因 VscodeTerminalProcess 缺少 terminate() 无法真正
中断,状态进入死区(clineAsk=undefined 且 isTaskRunning=false),后续发送
的消息被消息路由三分支静默吞掉,只能 reload 窗口。

修复:
- 新增 SHELL_INTEGRATION_STREAM_TIMEOUT_MS = 30000 常量
- 把 for-await 循环改为手动迭代 + AbortController 超时竞速
  (Promise.race([iter.next(), abortPromise])),30 秒无完成序列则中断
- 超时后走兜底:emit 剩余 buffer + 抓取终端当前内容作为 fallback 输出 +
  emit completed/continue,解除卡死
- 流正常结束时取消超时定时器,行为与原来完全一致

移植自 upstream open PR cline/cline#11430 (rodboev)。
2026-06-16 19:57:42 +08:00
HybridTalentComputing 03128d4f65 fix(vscode): probe @vscode/ripgrep-universal layout for VS Code ≥1.122.0
VS Code 1.122.0 把打包的 ripgrep 从 @vscode/ripgrep 迁移到
@vscode/ripgrep-universal,二进制路径从扁平布局改为按平台/架构子目录
(node_modules/@vscode/ripgrep-universal/bin/<platform>-<arch>/)。

旧代码的 4 个探测路径全是 ≤1.121.x 的布局,在 1.122+ 上全部 miss,导致
getBinaryLocation("rg") 抛 "Could not find ripgrep binary",searchFiles
返回空结果,@ 添加文件/文件夹一直显示"未找到结果"。

在探测链最前面增加对新布局的探测,旧探测保留作为旧版 VS Code 的回退。

移植自 upstream cline/cline#11178 (85be70bb2)。
2026-06-16 19:33:22 +08:00
HybridTalentComputing 8b4c97116f bugfix 2026-06-03 15:30:50 +08:00
Leo ee70ffbdf5 Fix WeChat QR code link in README.md
Updated WeChat QR code image link in README.
2026-06-02 21:58:12 +08:00
HybridTalentComputing 72aab3d9ac docs: update download milestone in README and improve HTTP headers in OpenRouterHandler 2026-06-02 21:51:40 +08:00
HybridTalentComputing 724424a6bb feat: add ShengSuanYun login handling and callback processing 2026-06-02 21:40:12 +08:00
HybridTalentComputing 92b97fb580 refactor: remove redundant API provider updates in auth handling 2026-06-02 21:17:24 +08:00
HybridTalentComputing b986a1672c feat: implement caching and data handling improvements in ClineAccountView 2026-06-02 20:32:37 +08:00
HybridTalentComputingandClaude Opus 4.7 d5c19b88eb docs: add shengsuanyun sponsor intro to README and reorder provider to 4th
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 00:12:38 +08:00
HybridTalentComputingandClaude Opus 4.7 9056a0df32 feat: add shengsuanyun provider (synced from main branch)
Add 胜算云 (ShengSuanYun) as an independent API provider with API key
authentication and dynamic model selection. Core files copied from main
branch with minimal import path adaptations for v3.86.1 compatibility.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 23:59:45 +08:00
HybridTalentComputingandClaude Opus 4.7 8ee0490867 fix: restore biome.jsonc config and fix lint errors for v3.86.1 build
Restored biome.jsonc from main branch to fix 764 lint errors caused by
incorrect config (root:false, missing VCS section, wrong schema). Also
disabled useIterableCallbackReturn rule which is new in biome 2.3.x.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 21:16:50 +08:00
HybridTalentComputing ef4308a522 docs: align extension id references with cline-chinese fork 2026-06-01 19:51:20 +08:00
HybridTalentComputing 7d16bc806a feat: reapply prompt localization, branding, and MCP naming on v3.86.1 2026-06-01 19:47:40 +08:00
HybridTalentComputing 591cad2f7d fix: reapply ZAi provider localization tweak on v3.86.1 2026-06-01 19:46:29 +08:00
HybridTalentComputing b33ac6bdc9 refactor: reapply settings and chat localization cleanup on v3.86.1 2026-06-01 19:45:53 +08:00
HybridTalentComputing f3a4d6ce2a refactor: reapply provider and settings localization on v3.86.1 2026-06-01 19:44:22 +08:00
HybridTalentComputing 9cfe31a509 refactor: reapply translation usage follow-up on v3.86.1 2026-06-01 19:43:42 +08:00
HybridTalentComputing dee5257e13 refactor: reapply translation usage cleanup on v3.86.1 2026-06-01 19:43:05 +08:00
HybridTalentComputing 1144bab296 feat: restore cline-chinese extension identity on v3.86.1 2026-06-01 19:41:15 +08:00
HybridTalentComputing f17f13370c chore: reapply cline-chinese localization baseline on v3.86.1 2026-06-01 19:39:51 +08:00
HybridTalentComputing 1bd829e583 chore: sync upstream v3.86.1 baseline into root layout 2026-06-01 19:22:08 +08:00
HybridTalentComputing 00922d7cf9 feat: update MCP settings file references to 'cline_chinese_mcp_settings.json' across the codebase 2026-05-25 23:26:32 +08:00
HybridTalentComputing 4ab894d334 Refactor SVG logos to replace Cline robot with Panda design and update imports
- Updated ClineLogoSanta.tsx to replace the original robot logo with a Panda design, adjusting paths and colors accordingly.
- Modified ClineLogoVariable.tsx to reflect the same Panda design changes as in ClineLogoSanta.tsx.
- Changed ClineLogoWhite.tsx to incorporate the new Panda design while maintaining the white color scheme.
- Updated import paths for Environment type to use the new configuration structure.
2026-05-25 20:50:07 +08:00
HybridTalentComputing 1955a90c13 feat: update title references to 'Cline Chinese' in activity bar and configuration 2026-05-25 20:34:31 +08:00
HybridTalentComputing b675ac1b3e Add multilingual support for system prompt tools
- Enhanced tools to support English and Simplified Chinese descriptions and instructions.
- Updated `read_file`, `replace_in_file`, `search_files`, `subagent`, `use_mcp_tool`, `use_skill`, `web_fetch`, `web_search`, and `write_to_file` to include locale-based instruction handling.
- Improved user experience by providing localized messages for tool descriptions and parameter instructions.
2026-05-25 20:22:47 +08:00
HybridTalentComputing 704be7b32c feat: enhance tool completion instructions with localized support and detailed guidance 2026-05-25 20:12:15 +08:00
HybridTalentComputing cc4c66d5b1 feat: add Chinese localization support for tool use prompts and guidelines
- Implemented locale-based formatting for tool use sections, including guidelines and instructions, to support Chinese (zh-CN) language.
- Added new Chinese templates for tool use formatting, guidelines, user instructions, and task descriptions.
- Enhanced tool specifications to include locale-aware descriptions and instructions.
- Introduced utility functions for locale detection and text selection based on the user's language preference.
- Updated SystemPromptContext to include locale information for better context handling.
2026-05-25 20:11:16 +08:00
HybridTalentComputing 1cbb2b708b bugfix3 2026-05-25 17:12:00 +08:00
HybridTalentComputing 2ec7ddd245 bugfix2 2026-05-25 15:57:42 +08:00
HybridTalentComputing cba06aa590 bugfix 2026-05-25 15:36:49 +08:00
HybridTalentComputing 085fa925c1 bugfix 2026-05-25 01:01:34 +08:00
HybridTalentComputing 5b0baa5a76 Refactor settings components for improved localization and code clarity
- Updated VercelModelPicker to use translation keys for user prompts.
- Simplified ModelAutocomplete and BedrockProvider by removing unnecessary dependencies in useEffect hooks.
- Enhanced AihubmixProvider and HicapProvider to ensure proper dependency tracking in useEffect hooks.
- Improved ClaudeCodeProvider and LiteLlmProvider by utilizing translation keys for descriptions.
- Streamlined ClineProvider and OpenRouterProvider by removing unnecessary fragments.
- Updated DifyProvider to use translation keys for platform description and note on model selection.
- Enhanced HuggingFaceProvider to clarify API key storage information using translation keys.
- Improved LMStudioProvider with translation keys for user instructions.
- Updated MiniMaxProvider to use translation keys for API endpoint selection instructions.
- Refined OcaModelPicker to ensure strict equality checks.
- Enhanced OpenAICompatibleProvider and XaiProvider to use optional chaining for safer property access.
- Updated BrowserSettingsSection and GeneralSettingsSection to use translation keys for checkbox labels.
- Improved TerminalSettingsSection with translation keys for terminal reuse settings.
- Fixed pricingUtils to use Number.isNaN for better readability.
- Cleaned up providerUtils by removing commented-out code for clarity.
- Updated useOpenRouterKeyInfo to include data in dependency array for useEffect.
- Enhanced select component stories for better readability and structure.
- Fixed WorktreesView to handle optional chaining for deleteWorktree properties.
- Added new translation keys for common and settings JSON files in English and Chinese locales.
2026-05-25 00:52:09 +08:00
HybridTalentComputing cad947b54c Refactor translations for improved localization
- Updated account-related components to use translation keys for profile, dashboard, and logout actions.
- Enhanced ViewHeader to dynamically translate environment display names.
- Localized history view labels for task grouping and button actions.
- Added translation support for onboarding model search placeholder.
- Updated VercelModelPicker to reflect loading states with translations.
- Localized ClaudeCodeProvider and LMStudioProvider placeholders and labels.
- Enhanced LiteLlmProvider with translations for placeholders and instructions.
- Added translation support in OcaProvider for various user messages and instructions.
- Updated OllamaProvider and QwenCodeProvider to use translation keys for better localization.
- Enhanced SapAiCoreProvider with localized model selection and orchestration mode labels.
- Updated ApiConfigurationSection and BrowserSettingsSection to use translation keys for settings labels.
- Enhanced FeatureSettingsSection with remote configuration tooltip translations.
- Updated CreateWorktreeModal to use translations for clear button labels.
- Added new translation keys in common-misc.json and settings.json for better internationalization support.
- Updated Chinese translations to match new English keys and improve localization accuracy.
2026-05-25 00:28:53 +08:00
HybridTalentComputing 576b6da4bf Refactor provider components to use translation for labels and placeholders
- Updated model selector labels to use translated strings in AnthropicProvider, AskSageProvider, ClaudeCodeProvider, GeminiProvider, HicapProvider, MiniMaxProvider, MoonshotProvider, QwenCodeProvider, QwenProvider, VertexProvider, and ZAiProvider.
- Changed placeholder texts to use translation in BedrockProvider, DifyProvider, HuggingFaceProvider, LMStudioProvider, LiteLlmProvider, OpenAICompatibleProvider, OpenAiCodexProvider, OpenRouterProvider, SapAiCoreProvider, and VercelAIGatewayProvider.
- Enhanced user experience by providing localized text for various input fields and messages across multiple provider components.
2026-05-24 23:53:43 +08:00
HybridTalentComputing 10e40e66b0 Refactor translation usage in various components to utilize destructured 't' from useTranslation and update localization files for consistency 2026-05-24 23:30:12 +08:00
HybridTalentComputing 15b2131542 Refactor translation usage across components to use destructured 't' from useTranslation 2026-05-24 23:16:31 +08:00
HybridTalentComputing e2c831321e Remove unnecessary 'dev' flags from package-lock.json and update README.md content 2026-05-24 22:37:03 +08:00
HybridTalentComputing 3f6ace03fa Update upstream sync guide with LFS handling and identifier prefix changes 2026-05-19 11:29:52 +08:00
HybridTalentComputing 13542459c8 Refactor command identifiers and configuration keys to use 'cline-chinese' prefix 2026-05-19 11:25:09 +08:00
HybridTalentComputing ad9b0b0970 Add upstream sync guide for Cline Chinese project 2026-05-15 17:30:40 +08:00
HybridTalentComputing 532575edaf v3.83.0 sync 2026-05-15 17:23:57 +08:00
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00
HybridTalentComputing d76cedc538 Bump version to 3.46.10 in package.json 2026-05-01 15:14:50 +08:00
HybridTalentComputing b23bed9275 Add new icon for market representation in SVG format 2026-05-01 15:03:18 +08:00
HybridTalentComputing 01e9e7ea0b Update registration message in SSYAccountView for clarity and new user incentives 2026-05-01 14:09:20 +08:00