Commit Graph

13781 Commits

Author SHA1 Message Date
LouisLv 94433253d7
fix: mcp stdio should run in workspace & support mcp tool enable/disable (#4605)
* fix: mcp stdio should run in workspace

* feat: implement mcp tool enable/disable

* fix: test
2025-07-21 14:00:20 +08:00
LouisLv be6af3732e
refactor(ai-native): enable mcp server by default (#4594) 2025-07-18 15:29:25 +08:00
Dan c9b2cbc1a3
fix: rules requested by agent (#4589)
* fix: rules requested by agent

* chore: fix globs

* chore: update llm context

---------

Co-authored-by: 大表哥 <binshao54@gmail.com>
2025-06-15 14:33:40 +08:00
大表哥 3073aeb848
refactor: simplify summary generation logic in DefaultChatViewHeader (#4585) 2025-06-13 11:02:25 +08:00
Dan 228c24ca7e
feat: support comments on multi-diff view (#4567)
* feat: support comments on multi diff view

* refactor: implement BaseMonacoEditorWrapper and DiffEditorPart for enhanced editor functionality

* feat: support lazy load comments with multi-diff view

* chore: fix build

* feat: improve style and comment attatch

* chore: fix build

* chore: export multi-diff api

* chore: fix build

* feat: improve comments rendered

* fix: comments visibility

* chore: update editor handler

* feat: support update docuemt model for diff edit part

* fix: multi comment rendered

* chore: fix comments service

* style: improve scroller style and add reval function

* chore: add resource label metadata

* chore: fix types

* chore: update relative path

* chore: update icon color

* chore: delay comments display

* chore: fix tests

* chore: fix typos

* chore: fix test

* chore: fix test

* chore: fix comment update

* fix: comment range rendered

* chore: fix comments
2025-06-13 11:01:54 +08:00
大表哥 9d68f85049
feat: Implement context compression and summary (#4581)
* feat(chat): enhance message summary provider to accept message history for summarization

* refactor: improve memory management in chat model

* chore: lint

* chore: lint

* chore: add simple impl
2025-06-09 14:48:42 +08:00
LouisLv 5f86502d3d
refactor: update tool registration to prevent duplicates (#4561)
* refactor: update tool registration to prevent duplicates

* build: update @modelcontextprotocol/sdk and import SSEClientTransport directly

* refactor: add null check for message ID in file operations

* chore: skip useless test

* fix: use camelCase for all builtin tool args

* refactor: use path.join for constructing file paths in ListDir and ReadFile handlers

* refactor: simplify file creation logic by delegating to CreateNewFileWithTextHandler

* refactor: enhance error handling and logging in file creation process

* fix: type

* fix: import
2025-06-06 18:17:20 +08:00
Dan b9022f46a7
feat: improve chat mention selection style (#4579)
* feat: support process large image on tool result

* fix: typos

* chore: improve compress

* chore: reverse chat history

* chore: fix

* chore: update iconfont

* chore: add rules

* chore: update icons

* chore: update icons

* chore: update icons

* feat: support better llm context

* feat: support rules configuration

* feat: support add rules manualy

* feat: support global and cursor rules

* feat: support manage reference on header

* chore: support add context by click @

* feat: support remove context by chat input

* chore: fix types

* feat: improve some cases

* chore: use findApplicableRules function

* chore: fix build

* chore: update deps

* feat: improve model selection style

* chore: update locks

* feat: support showing model icons on selection

* chore: update style

* style: improve context style

* style: improve reasoning style

* feat: improve thinking style

* chore: update component values and styles

* chore: add Qwen 3 mention option and remove MDC parser doc

* chore: update ai package version in native package.json

* chore: update component values and styles

* chore: remove uesless test case
2025-06-06 10:38:25 +08:00
Dan 281361fe77
feat: support chat agent rules and context management (#4578)
* feat: support process large image on tool result

* fix: typos

* chore: improve compress

* chore: reverse chat history

* chore: fix

* chore: update iconfont

* chore: add rules

* chore: update icons

* chore: update icons

* chore: update icons

* feat: support better llm context

* feat: support rules configuration

* feat: support add rules manualy

* feat: support global and cursor rules

* feat: support manage reference on header

* chore: support add context by click @

* feat: support remove context by chat input

* chore: fix types

* feat: improve some cases

* chore: use findApplicableRules function

* chore: fix build

* chore: update deps

* chore: update locks
2025-06-04 15:32:37 +08:00
大表哥 3b97a07cc8
fix: editor selection sync logic (#4580)
* fix: editor selection sync logic

* chore: remove log

* chore: remove log

* Update main.thread.editor.ts
2025-06-04 15:18:13 +08:00
大表哥 e5915318bf
feat(chat): add message summary provider to ChatFeatureRegistry (#4573)
* feat(chat): add message summary provider to ChatFeatureRegistry

* feat(chat): enhance message summary provider to accept message history for summarization

* feat(chat): implement message summary caching and update logic based on message count

* chore: remove unused test case
2025-06-04 11:47:46 +08:00
大表哥 e68714ee4a
chore: remove reasoning_content from history (#4576) 2025-06-03 13:56:45 +08:00
大表哥 6da2b20c9f
fix(terminal): update Windows OS check to use application service (#4572) 2025-06-03 11:25:01 +08:00
LouisLv c927acc015
fix(layout): optimize layout resizing and tabbar change handling (#4575)
- Improve layout resizing logic by checking for currentId before resetting
- Optimize tabbar change handling by ignoring undefined currentId values
2025-05-30 16:24:27 +08:00
LouisLv 4f11da8a78
refactor: optimize layout tabbar implementation & support drag & drop for all tabbar containers (#4571)
* refactor: use view/extendView/panel instead of location to seperate slot from ide view position

* refactor: refactor tabbar service with strategy mode

* refactor: add tabbarConfig to determine isLatter in custom slotRenderer

* refactor: use config instead of strategy

* fix: fix refactor problems

* fix: refactor issues

* fix: use mutate instead of measure in setAbSize

* chore: remove todos

* refactor: update layout commands

* chore: rename TabbarConfig to TabbarBehaviorConfig

* chore: update menu i18n

* fix: collectTabbarComponent side

* chore: rm useless comment

* feat: support drag & drop for all views

* feat: accordion horizontal support

* fix: update alignment when need

* fix: restore issue with tab move

* fix: reset test code

* fix: alignment bug

* fix: ci

* fix: change deprecated command

* fix: defaultPanel empty string support

* fix: ai-chat defaultSize restore, store when restore finished

* fix: layout test

* fix: use view instead of custom component for search view

* fix: defaultSize
2025-05-30 12:03:50 +08:00
Dan 6bead4e9b8
feat: support handing large image on tool result (#4574)
* feat: support process large image on tool result

* fix: typos

* chore: improve compress

* chore: reverse chat history

* chore: fix
2025-05-29 17:46:06 +08:00
大表哥 b3891a25fb
feat: add post-apply handler for lint error correction and improve code formatting (#4566)
* feat: add post-apply handler for lint error correction and improve code formatting

* chore: add try catch

* chore: add impl

* feat: enhance post-apply handling and improve diagnostic information for code blocks
2025-05-29 16:38:21 +08:00
bakaptr 9d7784b5b1
fix: check command `enablement` when keybinding is triggered (#4569)
* fix: check command `enablement` when keybinding is triggered

* chore: add missing `@opensumi/monaco-editor-core`
2025-05-28 09:19:16 +08:00
Dan 864d71d179 chore: update v3.9.0 CHANGELOG 2025-05-20 17:02:09 +08:00
github-actions[bot] 6791ce569a v3.9.0 2025-05-20 08:57:13 +00:00
大表哥 d6d172bca1
refactor(terminal): extract common link related code to terminal-link.ts (#4549)
1. Move regex patterns and constants to terminal-link.ts
2. Create ILinkInfo interface for link information
3. Extract extractLineInfoFromMatch function to common module
4. Update imports and usages in related files
5. Remove duplicate code in link providers
2025-05-20 16:37:42 +08:00
Dan 473f45dbc3
fix: update tool name sanitization regex for Claude 3.5+ Sonnet (#4562)
* fix: update tool name sanitization regex for Claude 3.5+ Sonnet requirements in MCP server

* fix: update tool name sanitization regex for Claude 3.5+ Sonnet requirements

* refactor: use toClaudeToolName function

* chore: remove comments
2025-05-20 15:28:35 +08:00
Dan 5d19aee75c
fix: scm tree node duplicated (#4556)
* fix: scm tree node duplicated

* fix: handle duplicate resource insertion in SCM provider
2025-05-19 16:32:14 +08:00
Dan 517461a95f
fix: trim mcp command and url (#4557)
* fix: trim command and URL fields in MCP server form

* fix: trim URL field in MCP server form for consistency
2025-05-19 11:44:13 +08:00
Dan c421db406b
feat: support more tool name (#4558) 2025-05-16 10:58:26 +08:00
LouisLv 04fef66f8b
fix: model made no change (#4555)
Co-authored-by: Dan <danwu.wdw@alibaba-inc.com>
2025-05-15 18:17:04 +08:00
大表哥 e6cb941c3a
fix: watcher logic (#4552)
* fix: watcher logic

* fix: types

* fix: types

* 📝 CodeRabbit Chat: Update file-service-watcher.ts in hosted recursive file service

---------

Co-authored-by: Dan <danwu.wdw@alibaba-inc.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-05-15 15:24:32 +08:00
LouisLv f04aa80d19
fix: improve error handling for tool call arguments and results in ChatModel (#4554) 2025-05-15 14:47:51 +08:00
LouisLv b8b5e74909
feat: optimize thinking style (#4553) 2025-05-15 11:41:15 +08:00
Dan 30a6932fd3
style: improve terminal tab style (#4551)
* style: improve terminal tab style

* chore: remove useless code

* style: improve styles
2025-05-15 10:06:37 +08:00
LouisLv af1769481b
feat: support apply none to skip apply (#4550)
* feat: support apply none to skip apply

* fix: format apply error & update when need
2025-05-14 18:12:38 +08:00
Dan 0d8a0cdd55
refactor: upgrade markdown renderer from 4.x to 15.x (#4548)
* feat: add auto-scroll and update styles for ChatEditor

* refactor: add test data in debug tree node

* style: improve scm action button style

* chore: remove useless code

* chore: fix markdown render

* feat: upgrade marked from 4.x to 15.x

* chore: fix auto scroll

* chore: fix markdown parse

* chore: add deps

* chore: scroll into view while output

* chore: update deps

* chore: update highlight element ref
2025-05-14 16:37:31 +08:00
Dan 197a201402
feat: support auto scroll code block on chat (#4547)
* feat: add auto-scroll and update styles for ChatEditor

* refactor: add test data in debug tree node

* style: improve scm action button style

* chore: remove useless code

* chore: fix markdown render
2025-05-14 11:45:21 +08:00
LouisLv 01616f2cee
fix: remove prefix of builtin tools (#4546) 2025-05-14 10:49:06 +08:00
Dan b838b53d66
fix: not process attached key to LLM (#4545)
* feat: not process attached key to LLM

* style: add font size to mention input style
2025-05-13 15:32:49 +08:00
LouisLv d0efae9869
fix: block change lines may be undefined (#4544) 2025-05-13 15:03:46 +08:00
LouisLv 4f0501b697
fix: update diff-manager & apply action btns when need (#4538) 2025-05-13 14:20:29 +08:00
Dan d2fb1ca267
fix: debug variables order (#4536)
Co-authored-by: 大表哥 <binshao54@gmail.com>
2025-05-13 11:38:10 +08:00
大表哥 4cba6c856c
fix: nsfw logic (#4539) 2025-05-13 10:54:13 +08:00
LouisLv fec8d4717a
fix: integrate preference service for default model selection in ChatMentionInput (#4535) 2025-05-13 10:52:37 +08:00
大表哥 03bd40c4fa
feat: add terminal auto execution policy settings and localization (#4529)
* feat: add terminal auto execution policy settings and localization

* feat: enhance terminal auto execution policy with new labels and UI updates

* chore: typo
2025-05-12 15:40:01 +08:00
LouisLv ffa44beaf7
feat: support collapse/expand all files in multiDiffEditor (#4531) 2025-05-12 14:44:02 +08:00
Dan ef1836d2ea
feat: improve debug variables order and fix console log (#4533)
* feat: improve debug variables order and fix console log

* chore: improve log style

* chore: fix typos
2025-05-12 11:55:34 +08:00
Dan e90988a2e2
chore: improve terminal tool prompt (#4530) 2025-05-09 17:19:56 +08:00
大表哥 fb82396be9
fix: remove TypeScript ignore comment and improve keytar import handling (#4528) 2025-05-09 10:39:16 +08:00
Dan 26ad68b680
feat: improve LLM context service enhance logic (#4527)
* fix: llm context service enhance

* chore: remove current file context when has referenced

* chore: improve file context

* feat: add model change restriction and tooltip style update

* fix: update model switch tip for ongoing sessions

* refactor: remove unused Tooltip import and CSS rule

* refactor: update model selector tooltip text

* chore: fix clear file from context

* chore: fix attach file content

* chore: update tips

* fix: progress view id

* chore: update mcp config

* chore: remove useless code

* chore: update model position

* chore: use NODE_BINARY_PATH command

* chore: fix update logic

---------

Co-authored-by: ensorrow <zheyanglv@qq.com>
2025-05-08 16:11:38 +08:00
LouisLv a6934951b5
feat: support multi file diff editor (#4523)
* feat: support multifile diff editor

* feat: implement ResourceLabel

* refactor: reorganize multi-diff related files and imports

* chore: rename to multi-diff

* refactor: use IMultiDiffSourceResolverService to update resources

* chore: use class MultiDiffEditorItem

* feat: support default multi scheme

* feat: implement _workbench.openMultiDiffEditor

* fix: empty uri

* feat: implement multi diff for apply

* fix: missing register

* chore: use side to determine content source

* feat: reuse multi-diff-editor

* feat: support multi-diff viewState

* feat: support multi-diff dirty

* feat: support multi-diff command

* feat: optimize styles of viewChanges

* refactor: update multi-diff source and editor handling

* refactor: update file paths in status bar contribution

* refactor: use doLayoutEditors to avoid skip

* fix: update filter condition for session code blocks

* refactor: update ChangeList and MultiDiffEditor components

* refactor: update URI creation and handling in multi-diff components
2025-05-08 16:08:49 +08:00
Dan bb36783854
feat: improve python debug stack frames view (#4525)
* fix: open python debug stack frame

* chore: fix build

* chore: improve style
2025-05-07 16:18:04 +08:00
Dan dc1a4c3623
feat: support mcp.json for MCP configurations (#4522)
* fix: text paste on chat input

* fix: mcp server bootstrap

* feat: support mcp.json

* feat: support chinese tool name

* chore: add comment for mcp tool name

* feat: support load mcp server from mcp.json

* feat: support mcp configuration editor title

* chore: fix logic

* chore: fix types

* fix: save mcp server

* chore: fix json schema

* fix: mcp server start

* chore: update test

* fix: restart server after edit

* fix: mcp configuration schema

* chore: fix mcp

* chore: fix remove

* chore: fix test

* chore: fix test
2025-04-29 18:00:35 +08:00
Dan e0054bfb55
feat: improve tool result display (#4521)
* feat: improve tool result display

* style: update style
2025-04-28 11:56:03 +08:00