In ACP, content on tool_call_update replaces the call's whole content array, but the timeline replaced a call's output, diffs and images only when the update carried that kind. With Claude Code, an Edit that failed and was retried showed both diffs in "Edited 1 file", and the failed row kept a diff button, because the failed result carries only the error text. An update with content now replaces all three, keeping a command's announced "$ cmd" line.
A turn the agent ended at its output token limit (max_tokens) or its limit of model requests (max_turn_requests) looked finished; it now ends with a line saying so, as a refusal already does.
Co-authored-by: ntbang0901 <[email protected]>
Local History > Revert of a file deleted outside the IDE wrote it back like a new file: snapshots hold the document text (LF, no BOM) and the restore opened an empty file, so a CRLF .bat came back with LF, a UTF-8 file without its BOM, a GBK file as UTF-8. Snapshots now also keep the file's bytes (what a save wrote, or the file as read from disk), and Revert writes those bytes back when the file is missing. A save that changes only line endings is now its own revision.
Copy/Paste in the Project view, F5 and Save As of an open file without unsaved changes re-encoded the buffer, so mixed line endings came out all LF and an image opened as text was copied empty. A clean document is now copied as its file's bytes; a buffer with unsaved changes is copied as before.
Co-authored-by: ntbang0901 <[email protected]>
With i18n.commitEncoding set to a legacy encoding (ISO-8859-1, Shift_JIS, GBK, windows-1251), Git names that encoding in each commit and expects the message in it. The IDE piped UTF-8 to git commit, so its commits read as mojibake in other tools, and decoded every commit as UTF-8, so correctly encoded commits showed replacement characters in the Git Log, commit details and Annotate, and Amend, Undo Commit and the rebase editor started from that text.
Messages are now written in i18n.commitEncoding (Commit, amending an earlier commit, the edited cherry-pick message, rebase rewords and squashes), and text it cannot represent is refused. Commits are read in the encoding they name (log index, rebase editor, Undo Commit), and git log/blame/show calls whose output the IDE parses pass -c i18n.logOutputEncoding=UTF-8. The log index tables move to new versions so cached summaries are decoded again.
Co-authored-by: ntbang0901 <[email protected]>
After a staged rename (git mv, or a moved file added to the index) and an edit, Annotate said the file had no committed history, Show History for File was empty and the gutter marked every line as added: blame, the gutter's base and the file history looked the new name up in HEAD, which only has the old one.
When a path is in the index but not in HEAD, Repo::committed_path finds HEAD's name from the staged rename with the same rename detection status uses, and blame, line hunks and the file history read the file under that name. Inline blame, Show Current Revision and Compare with Revision look it up under the committed name too; the author lens and "reformat only changed text" follow from the same commands.
Co-authored-by: ntbang0901 <[email protected]>
Files dragged from the Changes tree (Commit tool window, the Git window's Local Changes tab and the Commit dialog) could only be dropped on a change list. They now also land on an agent composer as @ references, like files dragged from the Project view; a multi-selection drags every selected file. The changes drag type moves to ui/pointerDrag.ts as CHANGES_DRAG so the composer can accept it without importing the VCS feature; dropping onto a change list is unchanged.
Co-authored-by: chiyanking <[email protected]>
Open permission requests and forms were tracked per task, not per session. Stop Subagent never answered the subagent's open request (ACP requires a cancelled session's pending requests to be answered with cancelled), the end of the task's turn marked every open card Cancelled without answering it so the agent kept waiting and a still-working subagent lost its card, and a request the agent withdrew with $/cancel_request kept its card open.
Each pending request now records its session and JSON-RPC id. Stop Subagent, or the subagent reporting idle, cancels that session's requests; stopping or ending the task's turn cancels only the task's own; a withdrawn request ($/cancel_request, or $/cancelRequest from the native drivers) is cancelled and its card closes. Dropping the connection for a network retry or recycling an idle session now answers open requests too, and the v2 dialect passes the request id through.
Co-authored-by: ntbang0901 <[email protected]>
The shell integration printed the working directory raw in the OSC 7 file:// URL, and both the backend and the terminal view parsed it as a URL, so a folder named C#, what? or 100% lost everything from the # or ? on, or failed to decode, and the terminal's directory (new tabs, links, Run in terminal) went wrong.
The zsh and bash integrations now percent-encode every byte outside [/._~A-Za-z0-9-] (fish uses string escape --style=url), and both parsers take everything after the host as the path, decode %XX escapes and keep any other %, so shells and tools that print the path raw still work.
Co-authored-by: ntbang0901 <[email protected]>
The HTTP client decoded every response body as lossy UTF-8, so a GBK, Shift_JIS or ISO-8859-1 page showed replacement characters, and a body that was valid text in its declared charset could be taken for binary. Bodies are now decoded with encoding_rs in the encoding of their byte order mark, else the Content-Type charset, else an HTML <meta> or XML declaration, else UTF-8; the binary check uses the declared charset too.
Form-urlencoded bodies written one parameter per line (key = value &, as the "separate lines" layout writes them) were sent with line breaks and spaces around the separators. Each run of text lines is now joined and the whitespace around & and a parameter's first = dropped; variable values, included files and whitespace inside names and values are sent as they are.
Co-authored-by: ntbang0901 <[email protected]>
On macOS, Finder and the system file APIs write file names decomposed (NFD) while Git stores them precomposed (core.precomposeUnicode). The IDE compared the two spellings byte for byte, so a committed file named like café.txt showed every line as added, Annotate found no history, Compare with HEAD had an empty base, the tree showed no change colour and Rollback found nothing (and deleted the file, taking it for untracked).
Paths handed to Git are now precomposed where Git precomposes them (Repo::git_spelling), and status spells names like the disk does, as it already did after a case-only rename. Add to .gitignore writes rules Git applies, and the source of a staged rename is found by segment count instead of a suffix match (renamedFromPath, shared with pairsRenames).
Co-authored-by: ntbang0901 <[email protected]>
Load Changes from Disk and File > Reload from Disk replaced the text but kept the buffer's old line separator, so after another program rewrote a CRLF file as LF the next save converted every line back; only the watcher's reload re-detected it. The read-only state was read once on open, so a file made read-only outside the IDE still accepted edits and autosave wrote it.
The watcher reload, Load Changes from Disk and Reload with Encoding now share take_disk_text, which takes the separator found in the new text (.editorconfig's when set; text without a line break keeps the buffer's) and the file's write permission. The watcher and focus check also follow a permission-only change, and a new IdeEvent::DocReadOnly updates the status bar lock, the read-only banner and the editor (library sources stay read-only).
Co-authored-by: ntbang0901 <[email protected]>
The TODO preview, Problems preview, notebook cells, HTTP response bodies and database text views drew file text in JetBrains Mono 13 px whatever Settings › Editor › Font said, and the Find in Files, Search Everywhere and Bookmarks previews kept the font they were opened with: each CodeMirror view set the editor font on itself, so a view that built its own editor or plain text never got it. The family, size and line height are now set on the root next to the weights, editor themes take ligatures from the root's switch, and those views read them, so all of them follow the setting and its changes. Previews and diff panes draw tabs at the file's tab size (its open document's, else its Code Style) instead of a fixed 4 or 8. In Tools › Terminal, "Use editor font" also disables Size, and disabled font fields show the font actually in use (likewise Agents › Chat's "Use interface font").
Closes#8168
Co-authored-by: ntbang0901 <[email protected]>
Join Lines on a line ending in a `//`, `#` or `--` comment turned the next line's code into comment text. Like IntelliJ's JoinLinesHandler, a line comment that code would follow now becomes a block comment (`int a = 1; /* first */ int b = 2;`); where the language has no usable block comment there (Python, Ruby, Lua), the comment moves to the end of the joined line.
Move Statement Up/Down in JSON swapped whole lines with their commas, leaving a missing or trailing comma. Moved members and array elements now take the commas of their new places, also when moving into or out of a nested object or array, and nothing moves out of the top-level value.
Co-authored-by: ntbang0901 <[email protected]>
On SQL Server, Count rows and Last Page failed for a query ending in ORDER BY (error 1033), one starting with WITH (error 156), or one with a trailing OPTION hint: the count wraps the query as `select count(*) from (<query>) q`, and SQL Server allows none of these in a derived table. For SQL Server the count now drops a top-level ORDER BY that has no TOP, OFFSET … FETCH or FOR XML/JSON (it doesn't change the count), puts a leading WITH in front of `select count(*)`, and moves an OPTION clause after the derived table. Other dialects get the same count query as before.
Co-authored-by: ntbang0901 <[email protected]>
#8172 recorded a cross-file Markdown preview link's origin by moving the source editor's caret before opening the destination. In Split mode that selection pulled focus back into the source editor while the open was still in progress, so the new destination tab was deactivated at once. In Split mode the clicked line is now recorded in navigation history directly, without touching the caret; Preview Only keeps using the hidden editor's caret, which is the reader's position.
Co-authored-by: arookieofc-ai <[email protected]>
cargo deny failed on main and every PR: wasmtime 49.0.7 has 14 new advisories (RUSTSEC-2026-0633 to -0643, -0646 to -0648), among them memory corruption when instantiating a non-exported component module, Cranelift jump/spillslot offset overflows, missing Spectre guards in memory.copy/memory.fill, and host panics or stack overflows triggerable from guest code. The 49 line gets no fix; this moves wasmtime and wasmtime-wasi to the patched 51.0.1 (the plugin host compiles unchanged) and updates the yanked pin-project-lite 0.2.17 to 0.2.19. No new crates.
Maven modules that share sources by symlinking a folder into src/main/java built with `mvn compile` but failed in the IDE's own Java build: jbuild listed sources with DirEntry::file_type(), which does not follow links, so classes under the linked folder never reached javac. Linked folders under resource roots had the same gap in change detection.
Source and resource walks now follow links. Cycles are skipped only along the current descent path; includes/excludes match each literal path and a file reached through several paths is listed once afterwards, preferring a path without links, so an excluded alias cannot hide a valid path. Each folder is read fully before descending (one open directory at a time), entries are visited in a stable order, and javac gets the literal link path so errors and breakpoints name the file the user opened. Trees without links list exactly the same files as before.
Co-authored-by: audichuang <[email protected]>
A diff opened in its own window had no way to move to the next changed file: Show Diff in New Window built a single-file diff without the change set, and neither the window nor diff tabs had a files counter. Show Diff in New Window now builds its diff the same way as Show Diff (one selected change brings its whole changelist, several bring exactly those; a diff tab's own data still wins), so Compare Previous/Next File appear. A "2/5 files" counter between them opens the chain's files grouped by folder, with Expand All / Collapse All and speed search; Enter or a double-click shows that file in place, saving a staged draft first.
Refs #7433
Co-authored-by: wildcatDownstairs <[email protected]>
The local dogfood cross-build (#8124) checked for cargo-zigbuild with `cargo zigbuild --version`, which cargo-zigbuild 0.24.1 rejects, so `dogfood:servers` / `dogfood:all <target>` reported the tool missing even when it was installed. The probe now runs `cargo zigbuild --help`.
Co-authored-by: dengliu <[email protected]>
A profile Maven activates by `<activation><os>` showed unchecked in the Maven tool window and no deactivation was ever passed, so unticking it could not keep it out of a build (per-platform native classifiers ended up in the jar). The POM reader ignored `<os>`. It now parses `<name>`, `<family>` and `<arch>`, requires every named field to match this machine (families as Maven's OsUtils: mac/darwin, unix covering Linux and macOS, windows; amd64/x86_64 and aarch64/arm64 spellings; a leading `!` negates). A matching profile counts as active by default, so the tool window shows it implicitly enabled and unticking it sends `-P !id`; it also suppresses activeByDefault siblings as Maven does.
Closes#8171
Co-authored-by: Jackzigen <[email protected]>
Main's Frontend and E2E jobs failed on stale expectations and one costly selector. The Visual Studio and ReSharper keymap presets (#8106) intentionally bind the caret-selection actions and, on Windows, use Ctrl+Alt+Click to add carets, but the tests still expected every preset to keep the old defaults. `github.issue.refresh` now has a shortcut (#8147), so the menu item's accessible name includes it. `.bannerStack > * + *` (#8167) restyles sibling subtrees on insertion and trips the selector-cost test; `:not(:first-child)` selects the same rows.
Co-authored-by: arookieofc-ai <[email protected]>
Refreshing External Libraries on multi-repository workspaces kept re-running the same probes: `cargo locate-project --workspace` and failing offline `cargo metadata` for every crate, and an uncancellable `has_java_sources` walk through non-ignored dependency trees.
- `cargo locate-project` results are cached per (dir, cargo), validated against the cargo binary and every ancestor Cargo.toml.
- Failed offline `cargo metadata` and `has_java_sources` results are cached only for paths under a project root with a healthy watcher. Watcher batches drop them on `.java` changes, new directories, removals, Cargo manifest or `.cargo/config` changes, and ignore/exclude changes, before the scan epoch is bumped; hitting the watch limit clears them. Timeouts and cancellations are never cached, and nothing expires by time.
- `has_java_sources` honours cancellation and skips dependency/build directories, and still checks the project's source roots for every root, so results are unchanged. `python_groups` honours cancellation.
Co-authored-by: dengliu <[email protected]>
Add `dogfood:servers` to cross-build static Linux x86_64 and aarch64 openidea-server binaries with cargo-zigbuild and stage them for upload on the next remote connection. `dogfood:all` builds the local app and the servers together, and still accepts `<remote_name>` to build natively on that host.
Zig and cargo-zigbuild are declared as task-level mise tools for `dogfood:servers` and `dogfood:all` only, so `mise run setup` stays a plain `pnpm install`; the musl Rust targets are added with rustup the first time a cross build needs them.
Co-authored-by: dengliu <[email protected]>
Several features and MCP tools request run_configs, full vcs_status and sdk_project_libraries independently, so on large or multi-repository workspaces overlapping refreshes ran the same full-tree walks and git index sweeps side by side on the blocking pool. Each project now runs at most one of each scan at a time: callers that arrive while one is running with the same state key share its result.
The key carries a per-project epoch that watcher batches, IDE file operations, settings and workspace changes, and run-config saves bump; vcs_status also stamps each repository's index, HEAD and packed-refs, so a caller after a change never joins a scan started before it and instead waits for a single fresh rerun. The libraries stream replays earlier batches to joined callers in order, lets each caller cancel on its own, and cancels the shared run only when every caller has left. A panicking leader releases its waiters, who retry.
Co-authored-by: dengliu <[email protected]>
File > New Project > JavaScript gains Hono and Elysia generators. Hono runs create-hono non-interactively with the chosen template and package manager (it installs dependencies itself, since it prompts without --install) and requires Node.js 20.19+. Elysia requires Bun 1.0+, runs `bun create --no-install --no-git elysia <name>`, then `bun install` when Install dependencies is checked; Git is initialized by the scaffold engine.
Closes#7955
Co-authored-by: wildcatDownstairs <[email protected]>
.NET run configuration detection walked dependency and build trees (Python venvs, CocoaPods, Xcode DerivedData, SwiftPM checkouts, out/) looking for project files. These directories are now skipped, case-insensitively, alongside bin/obj/node_modules/target/build/dist/vendor/packages. Detection stays complete: there is no depth or directory budget, so deeply nested projects without a solution near the root are still found (covered by a new test).
Co-authored-by: dengliu <[email protected]>
Back/Forward now walk through positions in Markdown previews. In Preview Only mode a click records the clicked source line (the preview keeps its scroll) and Back/Forward scroll to the remembered line with a short highlight (none under reduced motion). Same-file #anchor links record their origin and destination in both Preview Only and Split mode; a link to another file records the link line first. In Split mode a plain click in the preview leaves the source editor's caret alone. A clicked position is no longer overwritten by the passive shown-line update, and the Live MDX preview forwards the Back/Forward shortcuts from its iframe.
Co-authored-by: dengliu <[email protected]>
Two e2e specs failed on main. #8097 made the Commit tool window focus the changes tree first, but the spec still expected the message field; the expectation now follows the new behaviour and checks that the Commit action focuses the message. #8037 made Edit Commit Message check ancestry with vcs_merge_base, which the interactive-rebase fixture did not stub, so its older commit was rejected before the protected-history check; the fixture now answers it.
Co-authored-by: arookieofc-ai <[email protected]>
Select Opened File now reveals two more kinds of library tabs in the Project view:
- kotlin-language-server's temporary copies of library sources (an OS temp `kotlinlangserver<digits>` folder): the file's package and top-level types are read and matched against the listed External Libraries roots (JDK `src.zip` modules, `rt.jar`, binary jars before `-sources.jar`, Kotlin `*Kt` facades, class folders), dropping stale lookups.
- C# `csharp:` decompiled and source-generated documents (both the project-path and the legacy `metadata/projects/.../assemblies/...` forms): mapped to the matching .NET project's Dependencies node (package, project reference, framework, analyzer, or Dependencies itself).
Closes#8050
Co-authored-by: wildcatDownstairs <[email protected]>
Adds the `customEditor.toolbar` menu location (plugin API 1.21). A `[[contributes.menus]]` entry with `view` naming one of the plugin's own split or preview custom editors puts its command as an icon button in a thin strip above the text half of that editor; `when` works as for other menus. The host rejects a missing or unknown `view`, a tab-layout editor, unknown commands and submenus at install time. Buttons use the command's icon (else the plugin icon), the command title as tooltip and aria-label, and run with the same editor context as editor.title; the strip is hidden in preview-only mode and when nothing applies.
Closes#7796
Co-authored-by: wildcatDownstairs <[email protected]>
Adds `views.set-badge` (`host::set_view_badge`) to plugin API 1.21: a plugin sets or clears a short badge on the stripe icon of one of its declared `[[contributes.views]]` tool windows, per invoking window, without a capability. Text is at most 4 characters (no control characters), numbers above 99 show as "99+", and `None`, "" or "0" clear it. Badges are dropped when the plugin is disabled, reloaded or uninstalled and when the window closes; a window reads the current set with `plugin_view_badges` and follows `ViewBadgeChanged` events. Plugin views reuse the workbench `StripeBadge` (honouring Show tool window badges); grouped views show each member's badge on its tab and an aggregate on the stripe.
Closes#8006
Co-authored-by: wildcatDownstairs <[email protected]>
A plugin exporting `providers` together with `rename` or `completion_resolve` failed to link: `rename-provider` and `completion-resolve-provider` imported their `document`, `file-edit` and `completion-item` types from `providers`, and wit-component refuses to add `providers` as an export once another export depends on it as an import. Both interfaces now define those records locally, like hover, file-actions and diagnostics already do. The rename and completion-resolve fixtures co-export `providers`, and all components are rebuilt. These interfaces are new in API 1.21, which has not been released.
Co-authored-by: RuyimgByCN <[email protected]>
Language servers always received "locale": "en" in initialize. The UI locale (appearance.locale, mapped to a BCP 47 tag such as zh-CN) is now sent, and running servers restart when it changes, so servers with localized messages follow the UI language.
Adds Settings > Editor > Code Editing > Error Highlighting > "Show diagnostic source and code on hover" (on by default) to hide the source/code line under each problem in editor tooltips; the Problems tool window still shows it.
Closes#8156
Co-authored-by: wildcatDownstairs <[email protected]>
The agent image preview only closed with Esc or its Close button. It now also closes on a click outside the dialog; clicks inside keep it open.
Co-authored-by: chiyanking <[email protected]>
Clicking Previous/Next Occurrence in the editor's Find bar moved keyboard focus onto the button, so Ctrl+V did nothing afterwards. The arrow buttons no longer take focus: focus stays in the search field or the editor, whichever had it. Ctrl/Cmd+Enter in the search field now moves focus to the editor with the current match selected (or closes the bar when the query is empty), so a paste replaces that match and the arrows or F3 continue from there.
Refs #8139
Co-authored-by: waht41 <[email protected]>
Open In and Copy Path/Reference built GitLab-style /-/tree/... pages for gitcode.com remotes because remoteHosting fell back to self-managed GitLab for unknown hosts. GitCode serves GitHub-style routes (/tree, /blob, #L anchors), so it is now recognized as a GitHub-layout hosting and its menu items are labeled "GitCode".
Co-authored-by: muutot <[email protected]>
Plugins can add panes to the Project tool window and commands to the Git branch menus:
- `[[contributes.projectViewPanes]]` with the `project-view-provider` export regroups a directory's native children under virtual folders. Existing nodes keep their icons, Git status and actions. `project-view.refresh` / `select-in` and `projectViewContext` menu items work against these panes. Requires `project.read`.
- `git.branches.popup` and `git.branch.context` menus. `invocation.git-action-context` gives the command the repository roots and the full ref of the clicked branch. Requires `vcs.read`.
- `views.open-revision-comparison` opens the IDE's comparison of two full commit IDs as a Compare tool window tab, the same one Compare Versions opens. The repository must be a mapped Git root of the invoking trusted project. Requires `vcs.read`.
All of this is part of plugin API 1.21. A project-view test fixture and host tests cover the provider, the branch menu context and the comparison call. The plugin components and bindings are rebuilt.
Co-authored-by: kirito1105 <[email protected]>
When an SSH clone of a github.com, gitlab.com, bitbucket.org or codeberg.org
repository fails with a refused key or "Repository not found", the dialog
explains that the key may belong to another account and offers Clone with HTTPS,
which uses the Git credential helper such as GitHub CLI.