code-server automatically opens notebooks and changes metadata on start
- 主要語言
- TypeScript
- 星號
- 79.3k
- 分支
- 6.8k
- 平均合併
- 2 天 7 小時
- 30 天內合併 PR
- 39
描述
### Is there an existing issue for this?
- [x] I have searched the existing issues
### OS/Web Information
- Web Browser: Microsoft Edge
- Local OS: Amazon Linux 2023
- Remote OS: Amazon Linux 2023
- Remote Architecture:
- `code-server --version`: 4.98.0
### Steps to Reproduce
1. Clone a git repository in your code-server environment
2. Create a jupyter notebook in the git repository (let's call it test.ipynb)
3. Open the test.ipynb file in the JupyterLab environment (NOT code-server) and edit it
4. Git commit the edits from the JupyterLab terminal: `git add .` and then `git commit -m "test commit"`
5. Now open the code-server environment:
- > The first strange thing is that the test.ipynb file will open automatically.
- > The second strange thing is that it edits the metadata of the notebook:

### Expected
1. It shouldn't open the test.ipynb file automatically in the code-server environment.
2. it shouldn't edit the notebook metadata.
### Actual
1. It opens the test.ipynb file automatically in the code-server environment.
2. It edits the notebook metadata.
### Does this bug reproduce in native VS Code?
This cannot be tested in native VS Code
### Does this bug reproduce in GitHub Codespaces?
This cannot be tested in GitHub Codespaces
### Are you accessing code-server over a secure context?
- [x] I am using a secure context.
### Notes
My code-server environment runs inside a Docker container.
In this container I have installed:
- jupyterlab: 4.4.2
- jupyterlab_server: 2.27.3
- jupyterhub: 1.5.0
- code-server: 4.98.0
Also note that if I create a new Jupyter Notebook from code-server, these are the metadata I see:

While, if I create a new Jupyter Notebook in the Jupyterlab environment, these are the metadata I see:

貢獻指南
研究方向
使用回報的 code-server、JupyterLab 與 notebook 設定重現該行為,從啟動/開啟工作區的流程開始。比較 code-server 啟動前後的 notebook 中繼資料,接著找出負責此行為的整合進入點。完成條件是 notebook 不會自動開啟,且其中繼資料保持不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- jupyter-notebook
- 領域
- developer-experience
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100