Commit Graph

8 Commits

Author SHA1 Message Date
gemini-cli[bot] 2fdd259666 fix: strip line/column suffixes from Windows path links
This PR implements a workaround for issue #26902 where terminal link handlers on Windows (specifically in the Antigravity editor and standard VS Code) fail to correctly parse and open absolute file paths that include `:line:column` suffixes. On Windows, colons are invalid characters in file paths (except for the drive letter), causing `FileSystemError` when these links are clicked.

### Changes:
- Added `stripLineColumnSuffixes` utility in `packages/core/src/utils/textUtils.ts`.
- Applied this utility across various output formatting paths to ensure safe link generation on Windows:
    - `packages/cli/src/ui/utils/textOutput.ts` (Non-interactive mode)
    - `packages/cli/src/ui/utils/markdownParsingUtils.ts` (Agent output in interactive mode)
    - `packages/core/src/utils/debugLogger.ts` (Core debug logging)
    - `packages/cli/src/ui/utils/ConsolePatcher.ts` (Interactive mode console redirection)
- Added comprehensive unit tests in `packages/core/src/utils/textUtils.test.ts`.

These changes are only active when running on Windows (`process.platform === 'win32'`).

Fixes #26902

cc @google-gemini/gemini-cli-maintainers
2026-05-14 15:57:19 +00:00
Adam Weidman 3eebb75b7a feat(core): agnostic background task UI with CompletionBehavior (#22740)
Co-authored-by: mkorwel <matt.korwel@gmail.com>
2026-03-28 21:27:51 +00:00
Sehoon Shon fc51e50bc6 fix(core): handle surrogate pairs in truncateString (#22754) 2026-03-17 05:41:19 +00:00
Rishabh Khandelwal dde844dbe1 feat(security): Introduce Conseca framework (#13193) 2026-02-24 02:44:28 +00:00
Thomas Shephard 695785c69d feat: preserve EOL in files (#16087)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
2026-01-30 00:57:06 +00:00
Sehoon Shon 42fd647373 fix(core): truncate large telemetry log entries (#16769) 2026-01-16 19:30:48 +00:00
fuyou 73466b626d Fix dollar sign replacement bug in file editing (#7871)
Co-authored-by: Jacob Richman <jacob314@gmail.com>
2025-09-13 06:05:43 +00:00
Abhi ca5dd28ab6 refactor(core): Centralize shell logic into ShellExecutionService (#4823) 2025-07-26 01:56:49 +00:00