github / github/copilot-cli

Changing workdir doesn't emit event anymore

Đang mở
#3,362 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:sessions
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 changing the workdir using the `/cwd new-path` it doesn't record the information in the `events.jsonl` being impossible to track chronogically when the user's working directory changed.

I also noticed that CWD changes also doesn't update the `workspace.yaml` anymore, and it keeps pointing to a incorrect previous CWD.

### Affected version

v1.0.49-1

### Steps to reproduce the behavior

1. Resume any existing session in a git branch
2. Perform `/cwd new-path`
3. Both sessions-id/workspace.yaml + events.jsonl won't reflect the change

### Expected behavior

- workspace.yaml
cwd: new-path

- events.jsonl
`{"type":"session.context_changed","data":...}`

### Additional context

_No response_

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

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

Đánh giá

Issue này chưa được đánh giá.

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.