developer-roadmap icon indicating copy to clipboard operation
developer-roadmap copied to clipboard

"Fork the Course" option is shown for my own course, preventing me from marking lessons as completed.

Open choudharymk opened this issue 6 months ago • 5 comments

What is the URL where the issue is happening

https://roadmap.sh/ai/postgres-database-fundamentals-from-basic-to-advanced

What browsers are you seeing the problem on?

Chrome

Describe the Bug

I created a course using the AI Tutor via the "Create Roadmap" feature. After the initial creation, I modified the course by updating it with additional lessons using the "Modify Prompt" option.

After this update, the course started showing a "Fork Project" option—even though I am the original creator. Now, whenever I try to mark any lesson as completed, a popup appears asking me to fork the course first. When I attempt to fork the course, it shows an error: "You cannot fork your own course."

This is blocking me from progressing in my own course, which seems like an unintended behavior.

Output from browser console (if any)

Image

Participation

  • [ ] I am willing to submit a pull request for this issue.

choudharymk avatar Jun 06 '25 06:06 choudharymk

I am looking into it

arikchakma avatar Jun 07 '25 14:06 arikchakma

I am not able to reproduce the issue, can you please visit try again? I don't see that warning.

arikchakma avatar Jun 07 '25 14:06 arikchakma

Thanks for looking into it!

I’d like to clarify that this issue doesn't always appear immediately — it happens intermittently.

Here’s what I’ve observed:

After creating or modifying a course using the AI Tutor (especially after using the "Modify Prompt" option), everything may initially work fine.

However, if I navigate away and later return to the course (sometimes after a browser refresh or using the back button), the "Fork Project" option starts appearing on my own course.

When I then try to mark any lesson as completed, I get a popup saying I need to fork the course first.

If I try to fork it, I receive the error: "You cannot fork your own course."

It seems like the issue might be triggered by a conflict between a newly generated course and an existing one with a similar or identical structure/link.

Please let me know if I can help further by sharing a screen recording or specific steps to reproduce.

choudharymk avatar Jun 08 '25 04:06 choudharymk

Okay I will have a look. Thank you for sharing the details.

arikchakma avatar Jun 09 '25 14:06 arikchakma

@choudharymk Can you please share a screen recording? I have followed your instructions, still can't reproduce it on my local and prod.

arikchakma avatar Jun 13 '25 05:06 arikchakma