# "No code block found" when using 'open in composer' button

**URL:** <https://forum.cursor.com/t/no-code-block-found-when-using-open-in-composer-button/18062>\
**Category:** Bug Reports\
**Created:** [September 21, 2024, 11:02pm UTC](https://forum.cursor.com/t/no-code-block-found-when-using-open-in-composer-button/18062 "2024-09-21T23:02:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skswe](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/skswe/32/5784_2.png) [@skswe](https://forum.cursor.com/u/skswe)\
**Post date:** [September 21, 2024, 11:02pm UTC](https://forum.cursor.com/t/no-code-block-found-when-using-open-in-composer-button/18062/1 "2024-09-21T23:02:49Z")

</div>

I used o1 in chat to create a large number of react components at once. I clicked “open in composer” at the end of the output. The chat opened in composer but it just says “No code block found” everywhere a code change is supposed to be.

Tried refreshing window, verified that codebase is indexed properly, asked sonnet 3.5 to output everything again … same issue.

Screenshots below

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/c/c341ea69332a175108485d720aa5bfb5bb8d7eff.jpeg)

Version info

Version: 0.41.1  
VSCode Version: 1.91.1  
Commit: 10e3716b510a5d447c1a07b2edd37a352bbea4d0  
Date: 2024-09-18T07:38:06.522Z  
Electron: 29.4.0  
ElectronBuildId: undefined  
Chromium: 122.0.6261.156  
Node.js: 20.9.0  
V8: 12.2.281.27-electron.0  
OS: Windows\_NT x64 10.0.22631

Running WSL 2 on Win 11

---

<div class="post-metadata">

**Author:** ![Jack1](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jack1/32/5556_2.png) [@Jack1](https://forum.cursor.com/u/Jack1)\
**Post date:** [September 22, 2024, 12:19am UTC](https://forum.cursor.com/t/no-code-block-found-when-using-open-in-composer-button/18062/2 "2024-09-22T00:19:05Z")

</div>

I have the same issue

---

<div class="post-metadata">

**Author:** ![skswe](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/skswe/32/5784_2.png) [@skswe](https://forum.cursor.com/u/skswe)\
**Post date:** [September 22, 2024, 12:41am UTC](https://forum.cursor.com/t/no-code-block-found-when-using-open-in-composer-button/18062/3 "2024-09-22T00:41:30Z")

</div>

After doing some more digging I found out that cursor chat / composer was writing files to /home/{username}/folder while the file explorer would open files as ~/folder. Even though both paths point to the same location, everything composer / chat was writing wouldn’t be applied to disk.

Did some more digging and found out that 0.41.1 fixed an issue related to WSL that previously required you had to source a custom bash script in /home/{username}/.local/bin/cursor which executes the mounted .exe for cursor in Windows. I removed that bash file and restarted cursor as well as cleared cache in AppData/Roaming/Cursor/Cache and now the issue is gone.

\*\* EDIT \*\* I just jinxed myself the issue is not gone 😂
