github / github/copilot-cli

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

未关闭
#3,212 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:platform-linux
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### 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.

贡献指南

打开贡献指南

调研方向

在使用所述 symlink 设置的 Ubuntu 24.04 WSL Linux 上复现该问题,然后跟踪 CLI 确定并报告当前目录的位置。完成标准是从 /symlinked/path 打开 CLI 时报告该逻辑路径,而不是 /real/path,并在所述环境中验证这一行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
linux, shell, ubuntu
领域
cli, operating-systems
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。