Commit 1f5516e
Report authoritative cwd in recordContextChange E2E tests (#2036)
The runtime now treats a local session's cwd as authoritative: it is
changed via setWorkingDirectory, and a recordContextChange that reports a
divergent cwd is ignored (the RPC still succeeds but emits no
session.context_changed event). See github/copilot-agent-runtime#12896.
The RPC session-state E2E tests set the working directory to a second
directory and then reported a third, divergent cwd while waiting for a
session.context_changed event. Under the updated contract that event is
never emitted, so the C# test timed out. Report the authoritative current
cwd (secondDirectory) instead so the event fires, and update the C#,
Node, Python, and Go tests accordingly. The Rust test already reported the
authoritative cwd and is unchanged.
Copilot-Session: d99e2065-4f40-4f33-90a6-04b2786ac87f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 29b071b commit 1f5516e
4 files changed
Lines changed: 12 additions & 0 deletions
File tree
- dotnet/test/E2E
- go/internal/e2e
- nodejs/test/e2e
- python/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
534 | 537 | | |
535 | 538 | | |
536 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| |||
0 commit comments