pi-mono/packages/coding-agent/src
Petr Houška 523b5a4917
fix(coding-agent): normalize find root results (#7569)
Relativize absolute find results with path.relative() instead of slicing
at searchPath.length + 1. path.resolve() keeps the trailing separator for
root paths (POSIX / and Windows bare drive roots like I:\), so the slice
dropped the first character of the first path segment. Preserve directory
markers using platform-aware separators so Windows paths do not gain "//"
and valid POSIX backslashes remain unchanged.

This also avoids treating sibling paths with a shared prefix as children.
Relative results returned by custom glob operations now pass through
unchanged instead of being resolved against process.cwd(), which produced
invalid paths whenever cwd differed from the search path.

Fixes #6104
2026-08-04 00:05:48 +02:00
..
bun fix(coding-agent): bundle OAuth flows in Bun binaries 2026-07-16 15:36:16 +02:00
cli fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
client feat: add remote session client coordination 2026-08-01 02:05:49 +03:00
core fix(coding-agent): normalize find root results (#7569) 2026-08-04 00:05:48 +02:00
extensions fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
modes fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
utils fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
cli.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00
config.ts fix(coding-agent): install checked pi update version 2026-06-21 14:46:07 +02:00
index.ts fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
main.ts fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
migrations.ts fix(coding-agent): treat uppercase config values as literals 2026-06-13 21:24:22 +02:00
package-manager-cli.ts fix(coding-agent): make model refresh cancellation caller-owned 2026-08-04 00:03:52 +02:00
rpc-entry.ts feat(coding-agent): set AI_AGENT environment variable (#7493) 2026-08-03 13:45:32 +02:00