Графік комітів
4403 Коміти
Автор SHA1 Повідомлення Дата
LU XIANGRUIтаwildcatDownstairs e30ae3f6b8 feat(run): add Flask and FastAPI run configurations (#6647)
Flask and FastAPI apps could only run as ordinary scripts. Adds Flask server and FastAPI run configuration types: Flask runs python -m flask run with FLASK_APP / FLASK_DEBUG (read by every Flask version), host, port and extra options; FastAPI runs python -m uvicorn <module:app> with reload, host, port and options. Both use the Python interpreter choice and debug with debugpy; under the debugger Flask runs with --no-debugger, and without subprocess attach the reloader is turned off so breakpoints still stop.

A top-level (or src/) app.py, wsgi.py, main.py or app/main.py assigning Flask(...) or FastAPI(...) to a module-level name gets a detected configuration. The list of Python run kinds is now one function (ide_run::is_python_kind) instead of copies in the host, Docker, process and SDK code.

Closes #6532

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 13:25:10 +08:00
LU XIANGRUIтаwildcatDownstairs 9ee8f67e9f feat(languages): Jinja2 Template language for .jinja, .jinja2 and .j2 files (#6645)
.jinja, .jinja2 and .j2 files opened as Plain Text. They now open as Jinja2 templates, with the extension before them deciding the content between the tags: Jinja2 HTML (.html.j2, .html.jinja, .htm.*) gets the HTML language server, Emmet, tag closing and linked tags like Django templates; any other name (nginx.conf.j2, values.yaml.j2, base.jinja) is a Jinja2 Template over plain text without HTML tooling.

Both use @codemirror/lang-jinja (now a direct dependency, the same 6.0.1 already in the lockfile): highlighting, folding and indentation of block statements, completion of tags, filters and tests, and tag matching. The file icon follows the extension before .j2, and breakpoints in a file typed as a Jinja language turn on debugpy's jinja support.

Closes #6644

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 13:23:45 +08:00
LU XIANGRUIтаwildcatDownstairs 5b486f1588 feat(vcs): detect Git LFS pointer files and pull LFS objects (#6749)
A repository tracking files with Git LFS gave no sign of it, and when the LFS objects were not downloaded (git-lfs missing, or a clone with GIT_LFS_SKIP_SMUDGE) the files stayed pointer files without explanation.

Once per repository and session in a trusted project, the LFS-tracked files whose checkout is still a pointer are listed (git ls-files ':(attr:filter=lfs)'). A notification names them and offers Pull LFS Objects (git lfs pull, after git lfs install --local when no config sets up the filter; an existing hook is kept), or says Git LFS is not installed and links to git-lfs.com. Git > Pull LFS Objects runs the same pull as a remote operation with progress, console output and cancel; it shows for repositories whose root .gitattributes uses filter=lfs.

Merged with the submodule actions from #6738: both repository flags, operations and notices are kept side by side.

Closes #6743

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 13:00:49 +08:00
LU XIANGRUIтаwildcatDownstairs 6f8e8501c6 feat(settings): offer the OpenIDEA counterparts of JetBrains plugins (#6734)
Importing JetBrains settings now reads installed.txt and disabled_plugins.txt instead of listing plugins as not imported. Plugins with a known OpenIDEA counterpart are looked up in the marketplace while the confirmation is open and offered for install afterwards; IdeaVim turns on the built-in Vim emulation; disabled and unmapped plugins are listed.

Closes #6732

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:51:51 +08:00
LU XIANGRUIтаwildcatDownstairs 27c7323c0b feat(python): inherit base interpreter packages when creating a virtualenv (#6668)
Add Python Interpreter › Virtualenv / uv Environment gets "Inherit packages from base interpreter" (off by default, as in PyCharm), creating the environment with --system-site-packages for venv and uv. A virtualenv picked as the base is refused with the option on, since venv and uv build on the Python it came from.

Closes #6664

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:49:48 +08:00
LU XIANGRUIтаwildcatDownstairs 41cb8f993e feat(settings): import JetBrains inspection profiles (#6725)
Importing JetBrains settings now carries over inspection profiles (inspection/*.xml): Default merges into OpenIDEA's Default profile and other profiles become IDE-level profiles of the same name. Inspections with a counterpart keep their state and level, PEP 8 codes PyCharm ignores are turned off for Ruff and pylsp, and the confirmation lists what has no equivalent.

Closes #6723

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:48:26 +08:00
LU XIANGRUIтаwildcatDownstairs 6e37a1a977 feat(python): run and debug conda interpreters with their environment activated (#6702)
Python runs, tests and debug sessions started a conda interpreter without activating its environment, so on Windows packages whose DLLs live in Library\bin failed to import and the environment's tools weren't on PATH. When the launch's interpreter belongs to a conda environment, the launch gets what `conda activate` sets: CONDA_PREFIX, CONDA_DEFAULT_ENV (base, the envs/ name, or the path) and the environment's folders in front of PATH (Windows' Library\* folders included); values the configuration sets itself are kept.

Closes #6690

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:48:16 +08:00
LU XIANGRUIтаwildcatDownstairs e99fcb0c49 feat(python): manage packages of conda environments with conda (#6688)
In a conda environment every package change used pip, including for packages conda installed. Packages a conda-meta record owns (matched by their .dist-info / .egg-info, so torch → pytorch is found) are now upgraded, changed and removed with conda (`conda update`, `conda install pkg<constraint>`, `conda remove --force`); everything else, and requirements only pip reads, keep using pip. Outdated checks skip conda's packages, whose PyPI versions may not be on conda's channels yet.

Closes #6687

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:48:06 +08:00
LU XIANGRUIтаwildcatDownstairs 2f31544d04 feat(python): create conda environments with any Python version (#6678)
Add Python Interpreter › Conda Environment only listed the Python versions of local interpreters, so an environment with another version (or any, with no local Python) couldn't be created although conda downloads it. The version list now also offers Python 3.10–3.15; a version without a local interpreter is passed as is (`conda create … python=3.12`). The newest local version stays the default, 3.13 without one. conda's own error (the …Error: block, without the channel hints) is shown when create fails.

Closes #6672

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:47:56 +08:00
LU XIANGRUIтаwildcatDownstairs cbcd84f1d2 feat(vcs): initialize and sync Git submodules (#6738)
A project cloned without --recurse-submodules had empty submodule folders and no sign of it. Repositories now report submodules whose checkout was never initialized (skipping update=none and active=false ones); a notification lists them with Initialize, and Git › Submodules gets Initialize Submodules (`git submodule update --init --recursive -- <uninitialized paths>`, so checked-out submodules aren't detached) and Sync Submodule URLs (`git submodule sync --recursive`). Both need a trusted project.

Closes #6726

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:47:05 +08:00
LU XIANGRUIтаwildcatDownstairs a3a56ab10d feat(run): reach development servers run in Docker and Compose containers (#6740)
Development servers on a Docker or Compose run target listened on 127.0.0.1 in the container, and `docker compose run` published none of the service's ports, so the host couldn't reach them.

container_config now recognizes Django runserver (manage.py, django-admin, python -m django), flask run, uvicorn and fastapi dev/run, and when nothing chooses an address makes them listen on all interfaces in the container: runserver gets 0.0.0.0:<port>, flask/uvicorn get FLASK_RUN_HOST / UVICORN_HOST=0.0.0.0 unless the command, env files, the Compose service's environment or .env/.flaskenv set one, fastapi dev gets --host 0.0.0.0. When the target has no ports of its own, the server's port is published on the host's loopback only (through the service's own mapping when it has one). Other commands and shell lines are unchanged.

Closes #6737

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 12:46:51 +08:00
Muuтаmuutot 3961f38f46 feat(templates): save the active file as a template (#6638)
Adds File › Save File as Template… (also in Find Action). The dialog prefills the active file's name, extension and current buffer, unsaved edits included, lets the user edit them and saves the template to the global Default file-template scheme without switching the selected scheme.

Co-authored-by: muutot <[email protected]>
2026-11-29 12:37:37 +08:00
Deng Liuтаdengliu 4c5f4fa1e1 feat(github): add in-IDE GitHub account sign-in in Settings, Pull Requests, and Clone (#6642)
Settings › Version Control › GitHub only listed accounts already signed in with gh, Clone Repository › GitHub told signed-out users to run gh auth login in a terminal, and Pull Requests opened a raw terminal tab.

The PTY sign-in dialog and OAuth device-code parser move from features/agents to src/workbench/CliSignInDialog.tsx and src/platform/deviceCode.ts, so agents and GitHub share them without a cross-feature import. GitHub settings get Sign In… / Add account… (selecting a newly added second account for the project) and Install GitHub CLI when gh is missing; the Pull Requests tool window signs in in-IDE and reconnects, with Add account… in its error state, repository selector and account menu; Clone › GitHub gets Sign In… and Add account…. The merge with main carries the dialog's terminal-reply filtering and FIFO input over to the moved file.

Co-authored-by: dengliu <[email protected]>
2026-11-29 12:29:38 +08:00
Deng Liuтаdengliu 90734775b9 feat(welcome): group recent projects by Local and remote host (#6763)
When the recent list holds remote projects, Welcome › Projects, the Recent Projects popup, the title-bar Project Widget's Recent Projects and File › Open Recent group them under Local and each remote target (SSH · host, WSL · distro, Dev Container · folder), most recently used first, with collapsible groups and the per-row host pill dropped inside a host group; search flattens the groups again. Local-only lists are unchanged. Recent list rows now take their natural height, so two- and three-line remote rows no longer overlap in the popup's virtualized list.

Co-authored-by: dengliu <[email protected]>
2026-11-29 12:28:47 +08:00
Deng Liuтаdengliu b53915e4b6 feat(toolwindows): add setting to hide open tool windows on shortcut (#6781)
Tool window shortcuts focus an open but unfocused tool window on the first press and hide it on the second, as in IntelliJ IDEA. Appearance › Tool Windows gets an opt-in "Hide open tool windows on shortcut" (appearance.toggleToolWindowsOnShortcut, default off): when on, the shortcut hides such a window in one press and focus stays where it was.

Co-authored-by: dengliu <[email protected]>
2026-11-29 12:28:33 +08:00
audichuang d361d7239a fix(editor): fit a hidden tab's kept view instead of drawing a whole reloaded file (#6779)
A background tab keeps its CodeMirror view detached. Measured detached it is out of view, so CodeMirror maps its viewport through changes instead of fitting it, and a reload replacing most of the file (a checkout) made the hidden view draw every new line (30k DOM lines, ~5 s to show the tab again).

onTransactions now maps a detached view's viewport through the composed batch and, only when that exceeds 1,000 lines, runs that one update with the private viewState.inView set (guarded: only when it is a boolean, restored in finally) so CodeMirror fits the viewport. Small hidden edits keep mapping as before.

Closes #6762

Co-authored-by: audichuang <[email protected]>
2026-11-29 12:27:54 +08:00
Deng Liuтаdengliu 77a03ac197 fix(plugins): prevent lock-order deadlock and main-thread stalls during event dispatch (#6784)
PluginHost could deadlock: ensure_active held plugin.runtime across Wasm instantiation and activate(), where plugins call subscribe* (shared.subscriptions), while flush_events_at took queues -> plugins -> subscriptions -> runtime. post_window_events then blocked behind queues on the WebKit main thread, freezing the app (Not Responding).

- A per-plugin `activating` mutex serializes start/stop; `runtime` is now a leaf lock that never spans activation or host callbacks. stop() marks the plugin Disabled under it so a concurrent event can't reactivate it mid-stop.
- flush_events_at, queue_watched_changes, post_events_from and remote_languages snapshot plugins/subscriptions before taking queues instead of nesting the locks.
- plugin_post_events and plugin_set_active_file run off the main thread (async + spawn_blocking); the frontend keeps their order with a FIFO chain, snapshotting the editor context at call time.

Closes #6774

Co-authored-by: dengliu <[email protected]>
2026-11-29 12:27:43 +08:00
Muuтаmuutot f28a11d043 feat(editor): add advanced line copy and paste options (#6708)
Settings > Editor > Smart Keys gets the Line Copy and Paste options: Copy/Cut with no selection act on each caret's line (can be turned off), Copy can select the copied lines, and a linewise paste goes above the caret line, at the caret, or trimmed mid-line. Native, context-menu and Paste from History pastes share the same linewise metadata.

Co-authored-by: muutot <[email protected]>
2026-11-29 11:08:19 +08:00
Muuтаmuutot cdb4f9ab15 feat(python): insert docstring stubs from an intention (#6659)
Python functions and classes without a docstring offer Insert a documentation string stub in Show Context Actions, generating PyCharm's default reStructuredText stub with :param: lines for the parameters (self/cls skipped) and :return:.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:35:35 +08:00
Muuтаmuutot c709844c04 feat(editor): add Save As for existing files (#6534)
File > Save As opens the existing Copy dialog for the active file with Open copy in editor forced on. A single-file copy of an open editor uses the new doc_copy_as, which writes the current buffer with its encoding, BOM and line endings and refuses a target that is open in another editor.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:35:25 +08:00
Muuтаmuutot 2cce84ad2c feat(docs): search the Documentation tool window (#6627)
The Documentation tool window gets a find bar (Cmd/Ctrl+F and a toolbar button) with match highlighting, a match count and previous/next navigation; the query is matched as plain text, and re-rendered documentation keeps the active match without scrolling.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:35:14 +08:00
Muuтаmuutot 91dcd1b7eb feat(project-tree): preview a selected file with Space (#6641)
Quick Preview in the Project tool window: with one file selected, Space opens a read-only, highlighted preview popup without opening an editor tab (an open buffer's text when there is one). Escape, a selection change, focus loss or unmount close it. Bound in the IntelliJ macOS/Windows and VS Code macOS keymaps.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:35:05 +08:00
JunChang Peng 3d275d5a3d feat(vcs): one tint strength for the annotate backgrounds (#6636)
Annotate backgrounds alternated between 18% and 24% tint once a file had more commits than palette colours, so neighbouring commits differed in weight as well as hue, and at 18% some hues were nearly grey. Commit and author colouring now share one tinted() helper at 40%.

Co-authored-by: junchangpeng <[email protected]>
2026-11-29 10:34:51 +08:00
Muuтаmuutot cc49827793 feat(scratch): create a scratch file from the selection (#6635)
A non-empty selection offers Create new scratch file from selection in Show Context Actions. The selection is copied verbatim into a new numbered scratch file (no language template), whose language is detected from the fragment, else the source file's language or extension.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:34:41 +08:00
Muuтаmuutot 7b3813f9e2 feat(templates): duplicate live templates from settings (#6615)
Settings > Live Templates gets Duplicate Template: it creates an editable user copy in the same group with the body, variables, contexts and options, and resets the abbreviation to ABBREVIATION as IDEA does. Plugin templates stay read-only but can be duplicated; the copy drops the plugin origin.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:34:29 +08:00
Muuтаmuutot ebc6dc86f1 feat(project-tree): show file size and modification details (#6613)
Project view Options > Appearance > File Details shows each file's modification date and time and its size beside its name, as IDEA's File Details does. Off by default, persisted with the other view options; a missing modification time shows only the size.

Co-authored-by: muutot <[email protected]>
2026-11-29 10:34:17 +08:00
audichuang 0ae1628678 perf(vcs): load selection history diffs lazily and read deep rows from their commits (#6754)
Show History for Selection ran one git log -L with patches and sent every commit's before/after block in one reply; selecting all of a 5,000-line file with 2,000 commits produced an 849 MB reply. The single git log -L is now read line by line: the first records keep their diffs (at least four, then as many as fit in 512 KiB), the rest keep only the commit header and the +++ path and hunk ranges. A row without its diff is read from its own commit when selected (git log -L <range> -n1 <commit>), and the tab prefetches in the direction of travel. New commands vcs_block_history_summary / _revisions / _revisions_at; the tab falls back to vcs_block_history on older servers. The reader pins --src-prefix/--dst-prefix and applies the lone-CR normalisation from #6757 to the summary path.

Co-authored-by: audichuang <[email protected]>
2026-11-29 10:34:07 +08:00
faysouтаfaysou dc8c45c77c fix(project-tree): hide the horizontal scrollbar between scrolls (#6760)
The Project view's horizontal scrollbar stayed visible at rest. It is now a DOM overlay (the shared Scrollbar gains a horizontal mode) that shows while the content scrolls sideways and fades about a second after scrolling stops, taking no row space either way; its thumb can still be dragged while visible. With the overlay the tree follows the dominant wheel axis over the last 200 ms, so small sideways deltas in a vertical trackpad gesture no longer shift the tree or reveal the bar. Other trees keep the native horizontal scrollbar.

Co-authored-by: faysou <[email protected]>
2026-11-29 10:08:17 +08:00
Deng Liuтаdengliu e5f93b8526 fix(agents): keep OSC 11 color replies from breaking interactive CLI sign-in (#6755)
Signing in to GitHub CLI in the Sign In dialog could abort with "unexpected escape sequence from terminal": gh probes the background color with OSC 11 before prompting, and xterm's reply could be dropped before the PTY id resolved or reordered across concurrent term_write calls, so a late reply reached gh's prompter. gh auth login PTYs (local and remote) now get GLAMOUR_STYLE=notty when unset, which skips the probe; the dialog drops OSC 10/11/12 color replies, buffers input until the PTY exists and writes it in FIFO order, and no longer counts automated cursor/device replies as user input when deciding on the auto-Enter for the device code.

Co-authored-by: dengliu <[email protected]>
2026-11-29 10:06:49 +08:00
audichuang 73ba36381c fix(vcs): don't list Local Changes in History for Selection for clean lone-CR files (#6757)
Show History for Selection on a clean file with lone-CR line endings listed a Local Changes row: HEAD's block was sliced from the raw blob with str::lines(), which keeps lone CRs, so it never equalled the LF-normalised editor block. HEAD's text now goes through diff::normalize_eol before slicing, as line_hunks already does.

Co-authored-by: audichuang <[email protected]>
2026-11-29 10:04:38 +08:00
LU XIANGRUIтаwildcatDownstairs 3bc75e1de0 fix(github): read a choice saved without a host as github.com's (#6753)
Follow-up to #6746. A repository choice saved as owner/name comes from a release that knew only github.com, so it now means github.com's repository of that name, and the Enterprise one only when github.com has none; #6746 had read it as the origin remote's, which reconnected some projects to the Enterprise server. The probe that picks where to ask gh follows the same rule and finds an Enterprise repository by its remote's path.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-29 10:03:56 +08:00
Albince Paliakkara 633bef2e69 fix(vcs): show the focused view's diff for Show Diff and Show Diff in New Window (#6752)
With a key bound to Show Diff in New Window, the Compare tool window opened an empty diff: the diff actions could not ask the focused view what it shows, so they diffed the Project view's or the editor's file against HEAD, and the shelf, stash, patch and review trees only claimed Show Diff's own key. Views now register a diff source on their element (diffSource.ts) and both diff actions ask the one around the focused element first, whatever runs them (shortcut, menu, Find Action). Covered: Compare trees (tool window, comparison window, Push, rebase plan), shelf checklist and panel, Stash view and Unstash dialog, Apply Patch list, Local Changes review dialog and the Git Log's changed files. A guessed file without local changes now shows "No local changes in X" instead of an empty diff.

Fixes #6751

Co-authored-by: albince-mi <[email protected]>
2026-11-28 23:10:17 +08:00
LU XIANGRUIтаwildcatDownstairs 9aa0718cf9 fix(github): keep a new pull request's head on the base repository's host (#6746)
Follow-up to #6742. The new pull request form's head repository picker keyed its options by owner/name, so same-named repositories on an Enterprise server and on github.com could not both be picked, and it offered remotes on another host. It now lists only remotes on the base repository's host, keyed by host/owner/name, and the default head ignores a tracked remote on another host. A selection saved before #6742 (no host) now resolves to the origin remote's repository when that is one of the matches, instead of depending on remote order.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 23:04:41 +08:00
LU XIANGRUIтаwildcatDownstairs 836a4405d6 fix(github): keep GitHub Enterprise and github.com repositories apart (#6742)
Follow-up to #6729. Repositories now compare by host as well, so acme/app on an Enterprise server and on github.com stay two remotes; the selector shows the host when remotes span hosts, and the saved choice is host/owner/name (an older owner/name still loads). connect passes the target's host and root to its own requests and switches the shared API host only after they succeed, so a failed switch no longer redirects the existing connection's requests. Remotes match an Enterprise host whatever its port, keeping gh's host:port for --hostname. Docs note that gh checks the server certificate against the system trust store.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 21:48:48 +08:00
l0ng-ai 952bd0b24b fix(editor): highlight versioned script types such as text/ecmascript-6 as JavaScript (#6736)
@codemirror/lang-html only nests JavaScript into <script> blocks whose type is exactly text/javascript, text/ecmascript and the like, so type="text/ecmascript-6" (old Vue CLI templates) and HTML's legacy text/javascript1.x stayed plain text. HTML, Vue, JSP, Django, Angular and Thymeleaf templates now parse these types as JavaScript.

Fixes #6683
2026-11-28 21:15:16 +08:00
audichuang ac5e4b7259 perf(editor): keep long lines rendered when a selection scrolls into view (#6677)
Extending a selection with Shift+Down over long unwrapped lines got slower with every selected line: while scrolling the head into view, CodeMirror placed each long line's rendered part by the target's fraction of that line (1 above the target, negative below it), so every long line above the caret was redrawn from its end and back. The @codemirror/view patch now centres every unwrapped line's line gaps on the target's x, taken from the target's own line; wrapped lines are unchanged.

Adds selectLongLinesSql/Txt perf scenarios, SQL to the in-memory backend's languages, and a jsdom test for the line gaps.

Refs #4658

Co-authored-by: audichuang <[email protected]>
2026-11-28 21:11:32 +08:00
LU XIANGRUIтаwildcatDownstairs 2ea7d6c41b feat(github): support GitHub Enterprise Server hosts in pull requests (#6729)
gh api does not take the host from the remote as gh pr does, so requests for an Enterprise repository went to github.com. GhApiRequest now carries an optional host passed as gh api --hostname (validated as host[:port]); the GitHub tool window sends the connected repository's host, availability reads the login on that host, and remotes on the host gh resolved count as GitHub remotes. Commit checks in the Git log keep github.com.

Fixes #6717

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 21:00:14 +08:00
LU XIANGRUIтаwildcatDownstairs 16e5cb5763 fix(run): open container paths in tracebacks as project files and copied library sources (#6711)
Tracebacks of runs on Docker and Compose run targets print container paths: a site-packages frame showed File not found and a project frame fell back to a search by file name. The Run console, test tree and Debug Console now know the container a run is in, and an absolute path from such a run resolves through run_container_path: a file under a folder the project interpreter's snapshot copied opens that read-only copy, otherwise the bind mount whose container folder is the longest prefix maps it to the folder here (Compose mounts from docker compose config, cached until a Compose file changes). Paths that map to nothing show File not found; local runs resolve as before.

Closes #6710.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 20:54:55 +08:00
LU XIANGRUIтаwildcatDownstairs 611440f77f fix(python): run the Python Console in a Docker or Compose interpreter's container (#6686)
With a Docker or Compose run target as the project interpreter, the Python Console reported "No Python interpreter" because it only asked for a local interpreter. When there is none but a run target interpreter is set, the console now starts its driver as a python run, which Run already routes into the target's container (project mounted, the target's interpreter, docker stop on Stop). The driver exits on SIGTERM itself, since as a container's PID 1 it would otherwise ignore Stop until docker's SIGKILL.

Closes #6685.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 20:49:10 +08:00
Vladislav Kuzmin 482143769f test(agents): wait for the permission entry before archiving (#6632)
The archive regression waited on NeedsInput, which the permission handler records before it queues the initial permission entry. When the test took the delivery lock first, the handler could not publish the entry and the test then waited for settlement while holding that lock, so the macOS job hung until cancelled. The test now waits for the published permission entry before taking the lock, and uses the shutdown guard to stop the fake agent on failure.

Closes #6631.

Co-authored-by: principalwater <[email protected]>
2026-11-28 20:47:42 +08:00
l0ng-ai 176859987b fix(vcs): list a merge's own changes above its parents' in Git Log (#6731)
With Show Changes from Parents on, a merge commit's changes listed only one group per parent, and the flat view did not show the groups at all. The merge's own changes (files changed against every parent) now come first, followed by a "Changes to <hash> <subject>" node per parent in both the flat and the directory view; a merge with no changes of its own shows "No merge conflicts". The parent filter keeps the merge's own changes and the chosen parent's node.

Fixes #6691
2026-11-28 20:45:36 +08:00
iGinkтаiGink 6cdd52d31a fix(workbench): collapse the merged main menu slot instead of leaving a blank gap (#6721)
With the main menu merged into the toolbar, a window too narrow for the menu titles collapsed them to the hamburger but the hidden measuring copy stayed in flow and held the slot at the full menu width, leaving a blank gap. The measuring copy is now absolutely positioned so the visible presentation sizes the slot, and the fit check counts the bar's free flex space, so the titles return when the window widens.

Co-authored-by: iGink <[email protected]>
2026-11-28 20:37:14 +08:00
LU XIANGRUIтаwildcatDownstairs 90a0fd9901 fix(run): put the source roots on PYTHONPATH in Docker and Compose containers (#6728)
Python runs on Docker and Compose run targets got no source roots on PYTHONPATH, so a src layout failed with ModuleNotFoundError in the container while it worked locally. For Python configurations on a container target, the project's source roots inside the project folder now go on PYTHONPATH (joined with ':' before the configuration's own value), and container::prepare maps them to the container folder. Roots outside the project are not mounted and are skipped.

Closes #6727.

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 20:36:55 +08:00
LU XIANGRUIтаwildcatDownstairs 9d92f47f94 fix(python): address the review of the Django PRs #6542-#6545 (#6656)
Follow-up fixes to the Django support:
- manage.py tasks: manage.py is looked up on each use and only a successful command list is cached; lines run while help loads go to manage.py; a failed help is reported; the active file's project picks the manage.py in a monorepo (shared via platform/django.ts); py/python3.x/Windows forms count as manage.py lines.
- Django console: keeps the project root as working directory with manage.py's folder on sys.path, reads setdefault and os.environ[...] settings forms, and shows auto-imported names once reassigned.
- URL names: re-reading names clears navigation's cache, names nest under include namespaces, and only path/re_path/url name= counts (small Python scanner).
- Field lookups: models keyed per app, multi-table inheritance reverse names fixed, related_query_name/related_name/%(class)s rules, relation lookups and <fk>_id, completion in Q(...) and after F(...).

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-28 20:31:33 +08:00
Deng Liuтаdengliu 68abd00a7f fix(remote-dev): fix vertical text wrapping and clipping in resource tooltip (#6618)
A truncated element with a long data-tooltip put that text in the tooltip's shortcut slot (nowrap, keys font), which overflowed the bubble and crushed the main text to one character per line, as on the Remote Host Resources status item. The tooltip now shows such text as a wrapping note separate from the shortcut and honours data-no-tooltip up to the tooltip owner. The remote status items opt out of the redundant ellipsis tooltip and ellipsize their labels, and the breadcrumbs yield space first in the status bar.

Co-authored-by: dengliu <[email protected]>
2026-11-28 20:29:29 +08:00
audichuang 4c01ce4443 fix(console): scroll the current Find match into view sideways (#6640)
Find in the Run and Debug consoles only scrolled vertically to the current match's row, so a match near the end of a line wider than the console stayed out of sight. Once the virtualized row renders, the consoles now scroll the current match mark into view with block and inline 'nearest', as the HTTP response view does. The reveal runs when Find moves or the query or options change, not on appended output, and its sideways scroll does not re-enable Scroll to End.

Co-authored-by: audichuang <[email protected]>
2026-11-28 20:29:14 +08:00
audichuang 9da53322bc fix(vcs): keep favorite branches per repository (#6709)
Favorite branches were one list per project, so in a multi-repository project starring a branch in one repository starred it in all of them. Each repository now has its own list, and every place that shows or toggles a star (Git Branches popup and submenus, the Git Log Branches pane and branch filter, commit and Tracked Branch submenus) reads and edits the list of the branch's repository. A single-repository project keeps the stars saved before.

Co-authored-by: audichuang <[email protected]>
2026-11-28 20:23:57 +08:00
audichuang 720b18861c fix(github): act on the connected repository in multi-repo projects (#6622)
Jump to Source, Review Mode and the details' checked-out state used the repository selected in the VCS widgets even when the connected pull requests belong to another repository. They now use the review repository: the selected one when it has the connected GitHub repository as a remote, else the connection's root. The branch widget offers the pull request entries only while the selected repository is the review repository.

Co-authored-by: audichuang <[email protected]>
2026-11-28 20:21:22 +08:00
audichuang 802d9d26e2 fix(vcs): keep recent branches per repository (#6705)
Recent branches were stored once per project, so in a multi-repository project a branch checked out in one repository showed up under another's Recent Branches. They are now stored per repository root: checkout, New Branch, Rename, Checkout and Rebase and the multi-repository operations record each repository they ran in, and the popups read that repository's list. A single-repository project still reads the list saved before.

Co-authored-by: audichuang <[email protected]>
2026-11-28 20:21:01 +08:00
audichuang fb97cdac03 fix(vcs): remember "Don't warn about this target" per project and (remote, branch) (#6662)
The Force Push confirmation's "Don't warn about this target" list was one app-wide entry of joined remote/branch strings, so silencing a target silenced it in every project and confused origin + team/feature with origin/team + feature. The list is now kept per project, under the key scheme Push tags already uses, as (remote, branch) pairs; the multi-repository Push dialog confirms such targets separately.

Co-authored-by: audichuang <[email protected]>
2026-11-28 20:20:46 +08:00