coder / coder/code-server

code-server automatically opens notebooks and changes metadata on start

Open
#7,399 6 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
TypeScript
Stars
79.3k
Forks
6.8k
Avg merge
2d 6h
Merged PRs (30d)
41

Description

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

![Image](https://github.com/user-attachments/assets/ac006988-d249-4f43-ab59-3493366d1484)

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

![Image](https://github.com/user-attachments/assets/8788ae0a-b211-4daa-8eb0-533827bc246f)

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

![Image](https://github.com/user-attachments/assets/a8fbd1d2-4463-41cd-9754-8444d9a7664e)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.