github / github/copilot-cli

CLI reports canonical path instead of symlink (logical) path on WSL Linux

Đang mở
#3,212 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:platform-linux
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

When opening the CLI in a symlink folder on WSL Linux (Ubuntu 24.04), the current folder is reported as the canonical (symlink target) folder instead of the logical path (symlink folder). This breaks workflows that rely on the symlinked path.

### Affected version

_No response_

### Steps to reproduce the behavior

1. Create a symlinked folder: `ln -s /real/path /symlinked/path`
2. Enter the symlinked path: `cd /symlinked/path`
3. Open the CLI in this folder.
4. Observe that the folder reported by the CLI is `/real/path` instead of `/symlinked/path`.

### Expected behavior

The CLI should report the logical (symlink) path (`/symlinked/path`) as the current directory, matching user expectation and shell behavior.

### Additional context

- Operating system: WSL Linux (Ubuntu 24.04)
- This impacts scripts and tools that depend on the reported path being identical to the logical location.
- Workaround: none known.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Reproduce the issue on WSL Linux with Ubuntu 24.04 using the symlink setup described, then trace where the CLI determines and reports the current directory. Done means opening the CLI from /symlinked/path reports that logical path rather than /real/path, with the behavior verified in the stated environment.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
linux, shell, ubuntu
Lĩnh vực
cli, operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.