github / github/copilot-cli

Changing workdir doesn't emit event anymore

未關閉
#3,362 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:sessions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。