fix(notebook): send the notebook path to the UI with forward slashes (#1466)

* fix(notebook): send the notebook path to the UI with forward slashes

On Windows a notebook's snapshot and output events carried its canonical
path as `to_string_lossy()` (`C:\a\b.ipynb`), and the UI uses that path as
the notebook tab's identity, while the project tree and editor name the same
file `C:/a/b.ipynb`. NotebookSnapshot.path and NotebookOutputEvent.path are
now IpcPath, like the other path fields on the IPC boundary (#1456 did the
same for Spring route sources and Add to .gitignore).

* chore: regenerate bindings for the notebook IpcPath fields

---------

Co-authored-by: l0ng-ai <[email protected]>
Цей коміт міститься в:
kevinhтаl0ng-ai authored and GitHub committed 2026-11-05 20:25:22 +08:00
1 джерело 1aec21b43f
коміт 4a217a4473
3 files changed
+18 -8

No files matched your search

+2 -2
Переглянути файл
@@ -5342,7 +5342,7 @@ export type NotebookEdit = { type: "setSource"; cell: string; source: string } |
export type NotebookOutputEvent = {
id: string,
path: string,
path: IpcPath,
cell: string,
msgId: string,
kind: string,
@@ -5354,7 +5354,7 @@ export type NotebookOutputEvent = {
export type NotebookSnapshot = {
id: string,
path: string,
path: IpcPath,
version: number,
dirty: boolean,
canUndo: boolean,