Exporting a single request still includes unrelated “docs” content
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
Only the selected request and its direct dependencies should be included in the exported file. Unrelated folders and their documentation should be excluded, especially when exporting a single request.
### Actual Behavior
After the fix in [#8505](https://github.com/Kong/insomnia/issues/8505), exporting a single request as “Insomnia v5” no longer includes the entire workspace, which is great. However, the export still contains the names of all folders and the content from their “docs” fields, even if those folders are unrelated to the request being exported.
### Reproduction Steps
1. Create a workspace with multiple folders and several requests.
2. Add documentation (in the “docs” tab) to multiple folders.
3. Select a single request to export (via Export > Selected requests > Insomnia v5).
4. Open the generated .json file.
5. Observe that the export still includes unrelated folder names and all “docs” content from those folders.
### Is there an existing issue for this?
- [x] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Which sync method do you use?
- [ ] Git sync.
- [ ] Insomnia Cloud sync.
- [x] Local only
### Additional Information
Hi Insomnia team! First of all, thank you so much for the recent fix in [#8505](https://github.com/Kong/insomnia/issues/8505) — the reduced file size when exporting individual requests is already a great improvement, and I really appreciate your responsiveness and support.
I just wanted to share a small follow-up issue related to that fix. When exporting a single request, the resulting file still includes the names of all folders/directories, along with the “docs” content from them.
In my case, I use the “docs” section frequently to document internal details, headers, or ideas — so these additional entries end up exposing more information than necessary, even when I only want to export a specific request.
### Insomnia Version
11.0.1
### What operating system are you using?
Windows
### Operating System Version
Windows_NT x64 10.0.22631
### Installation method
Download + autoupdate
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
Reproduce the issue using the listed workspace, folders, docs, and single-request export steps, then inspect the generated Insomnia v5 JSON. Done means the file contains only the selected request and its direct dependencies, with unrelated folder names and docs content excluded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100