github / github/copilot-cli

Changing workdir doesn't emit event anymore

Ouverte
#3,362 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:sessions
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.