-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
questionQuestion related to TutorialKit that doesn't require changes in codebase.Question related to TutorialKit that doesn't require changes in codebase.
Description
Describe the bug
Even after keeping allowRedirects: true
(under terminals > panels) and watch: true
(under filesystem), we are not able to create new files from terminal. Example: echo hello > world.txt
. Observe that file is created in webcontainer fs, but not getting reflected in editor's file-tree.
Link to a StackBlitz project which shows the error
Steps to reproduce
- Go to https://stackblitz.com/edit/tutorialkit-api-use-helpbutton-yfxyqb?file=src%2Fcontent%2Ftutorial%2F1-basics%2F1-introduction%2F1-welcome%2Fcontent.mdx
- Click on "Toggle Terminal"
- Go to interactive "Terminal"
- Write command to create file, example
echo hello > world.txt
- Observe that file is created in webcontainer's fs using
ls
- Observe that file is not reflected in editor's file-tree
Expected behavior
If we keep allowRedirects: true
, it should show newly created file in editor's file-tree
For example, if we write echo hello > world.txt
in interactive terminal, it should create file named "world.txt" in editor's file-tree.
Screenshots
Screen.Recording.2024-11-16.144557.mp4
Platform
- TutorialKit version: 1.3.0
- OS: Window
- Browser: Edge
- Version: 130.0.2849.80
Additional context
No response
Metadata
Metadata
Assignees
Labels
questionQuestion related to TutorialKit that doesn't require changes in codebase.Question related to TutorialKit that doesn't require changes in codebase.