Changing workdir doesn't emit event anymore
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
### 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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing the `/cwd new-path` command and how it updates `workspace.yaml` and `events.jsonl`. Reproduce the issue by resuming a session in a git branch, then run `/cwd new-path`. Done means `workspace.yaml` records the new cwd and `events.jsonl` contains a `session.context_changed` event.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100