feat(tools): use installed ripgrep for native file search (#5948)

* feat(tools): expose installed ripgrep through exec

* refactor(tools): launch ripgrep with native argument vectors

* refactor(tools): reuse the fresh exec parameter schema

* fix(tools): select search backend in loader and display rg arguments

* fix(ui): simplify rg previews and localize search completion

* docs: simplify ripgrep configuration note

* docs: keep ripgrep note on one line
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-28 13:44:51 +08:00
1 parent b8893aba56
commit e0b8efa0be
33 files changed
+514 -204

No files matched your search

+4 -3
View File
@@ -4,6 +4,7 @@ from __future__ import annotations
import asyncio
import codecs
import shlex
import time
import uuid
from collections import deque
@@ -280,7 +281,7 @@ class ExecSessionManager:
async def start(
self,
*,
command: str,
command: str | list[str],
cwd: str,
env: dict[str, str],
timeout: int | None,
@@ -301,7 +302,7 @@ class ExecSessionManager:
session = _ExecSession(
session_id=session_id,
process=process,
command=command,
command=shlex.join(command) if isinstance(command, list) else command,
cwd=cwd,
timeout=timeout,
owner_session_key=owner_session_key,
@@ -445,7 +446,7 @@ class ExecSessionManager:
async def _spawn(
self,
command: str,
command: str | list[str],
cwd: str,
env: dict[str, str],
shell_program: str | None,