microsoft / microsoft/qdk

Kata playground: switching to tutorial and back to samples, disables "Run" button in the sample.

Open
#1,849 0 comments 0 reactions 0 assignees View on GitHub
bug low-priority
Dominant language
Rust
Stars
1k
Forks
212
Avg merge
3d 8h
Merged PRs (30d)
65

Description

**Describe the bug**

Katas: switching to tutorial and back to samples, disables "Run" button in the sample.

**To Reproduce**

1. Open [Q# playground](https://microsoft.github.io/qsharp/)
2. Click "Teleportation" tutorial
3. Click "Entanglement" sample
4. See the error
5. Workaround: reload the page

**Expected behavior**

Loading tutorial pages must not affect samples

**Screenshots**

![Sample run disabled](https://github.com/user-attachments/assets/390f47ce-859d-41c2-b83e-d6b5ad7d444c)

**System information**

Windows 10, 11
Chrome and MS Edge browser

Additional information
Same issue for many other tutorials and samples (but not all of them!)
The fix (most likely) should introduce a unique URI for samples and the linked code.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Q# playground by switching from the Teleportation tutorial to the Entanglement sample, then inspect the playground's tutorial and sample navigation entry points. Done when switching between tutorials and samples leaves the sample's Run button enabled without requiring a page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.