Studio page says "exercise open in another tab" for any loading error

Open Beginner friendly
#4,110 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Pranav-Singh-Devloper is already working on this.

Since Nov 7, 2026.

  • #4111 by @Pranav-Singh-Devloper — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
79/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, react, typescript

Research direction

Start by reading react_frontend/src/routes/Project.tsx and academy/views.py, the two entry points named in the issue. Compare how the server returns errors for a missing exercise and an already open session with how the studio page handles loading failures. Done when the page shows the other-tab message only for that session error and communicates other errors; use the listed URLs to reproduce both cases.

Written by the indexing model from the issue text.

Description

When an exercise fails to load, the studio page always says "You have open a Robotics Academy exercise in another tab or window", whatever the actual error is.

For example, opening an exercise URL that doesn't exist (a typo, or an old link) shows that message even when no other exercise is open. Opening the correct exercise right after works, so there was no other session.

The server does return the real reason, but the page doesn't show it:

GET /academy/enter_exercise/?project_id=follow_lin
500 {"error": "An error occurred: Exercise matching query does not exist."}

GET /academy/enter_exercise/?project_id=follow_line   (second tab open)
500 {"error": "An error occurred: Alredy open session"}

Both cases return the same response shape, so the page can't tell them apart.

Steps to reproduce

  1. Start Robotics Academy (jderobot/robotics-academy:latest, 6.1.13) and don't open any exercise.
  2. Open http://localhost:7164/academy/studio/follow_lin.
  3. The page says an exercise is open in another tab.
  4. Open http://localhost:7164/academy/studio/follow_line: it loads normally.

Expected: the "another tab" message only appears when another exercise is open. For other errors (exercise not found, server error), the page says what went wrong.

Environment: macOS (Apple Silicon), Docker Desktop, Chrome, jderobot/robotics-academy:latest (6.1.13). The same code is on humble-devel (react_frontend/src/routes/Project.tsx, academy/views.py).

https://github.com/user-attachments/assets/31f00df3-5de4-4408-8a8a-fb6a2d4f79bc

I'd like to work on this.

Dominant language
Python
Stars
516
Forks
380
Avg merge
10h 53m
Merged PRs (30d)
42

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JdeRobot/RoboticsAcademy

All issues in JdeRobot/RoboticsAcademy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.