[PR #4225] [Other] Allow storage on mounted media and symlinked home #4960

Open
opened 2026-11-07 16:31:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4225
Author: @emourad
Created: 10/26/2026
Status: 🔄 Open

Base: main ← Head: fix/allow-run-media-data-dir


📝 Commits (4)

  • 74c5c7d Allow storage on mounted media and symlinked home
  • 3612000 Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir
  • de89ec7 Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir
  • 5d67302 Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir

📊 Changes

6 files changed (+141 additions, -7 deletions)

View changed files

📝 apps/host/server/chat-files.mjs (+15 -2)
📝 apps/host/tests/chat-files.test.mjs (+31 -3)
📝 strata_control/folders.py (+9 -1)
📝 tests/terminal/test_folders_home.py (+38 -0)
📝 tools/strata_mcp.py (+13 -1)
📝 tools/test_strata_mcp.py (+35 -0)

📄 Description

Problem and result: Strata rejected model storage folders on Linux when they were under /run/media, or when a user's home directory resolved through a symlink to /var/home. These paths are now allowed through the relevant folder checks, while unrelated protected system folders remain refused.

Related issues: #3997, #3487, #3516

Approach: Apply the same narrow exceptions to the Terminal, desktop chat-folder, and MCP install path checks. The existing checks still reject other locations under /run and /var.

Validation:
Passed: python -m unittest tests.terminal.test_folders_home -v — 5 tests passed.
Passed: python -m unittest tools.test_strata_mcp.Validation -v — 8 tests passed.
Passed: (cd apps/host && node --test tests/chat-files.test.mjs) — 3 passed, 1 harness-dependent test skipped.
Passed: Python and Node syntax checks; git diff --check.
Not run: Test on a physical external drive or a Silverblue/Bazzite system.

Limits: The path rules were tested locally with regression tests; real removable-drive mounts and immutable Linux distributions were not available for testing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4225 **Author:** [@emourad](https://github.com/emourad) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/allow-run-media-data-dir` --- ### 📝 Commits (4) - [`74c5c7d`](https://github.com/Niko1221/Strata/commit/74c5c7d5be849d72c1405f5ffb5781f79173c72b) Allow storage on mounted media and symlinked home - [`3612000`](https://github.com/Niko1221/Strata/commit/3612000a3581d3a9a078d4d359aae2f80e32b854) Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir - [`de89ec7`](https://github.com/Niko1221/Strata/commit/de89ec70d217743dc8aacae9fd25d7a359796ccc) Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir - [`5d67302`](https://github.com/Niko1221/Strata/commit/5d67302ae66b48a36468c5246fc9328d0c17566a) Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir ### 📊 Changes **6 files changed** (+141 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/chat-files.mjs` (+15 -2) 📝 `apps/host/tests/chat-files.test.mjs` (+31 -3) 📝 `strata_control/folders.py` (+9 -1) 📝 `tests/terminal/test_folders_home.py` (+38 -0) 📝 `tools/strata_mcp.py` (+13 -1) 📝 `tools/test_strata_mcp.py` (+35 -0) </details> ### 📄 Description Problem and result: Strata rejected model storage folders on Linux when they were under /run/media, or when a user's home directory resolved through a symlink to /var/home. These paths are now allowed through the relevant folder checks, while unrelated protected system folders remain refused. Related issues: #3997, #3487, #3516 Approach: Apply the same narrow exceptions to the Terminal, desktop chat-folder, and MCP install path checks. The existing checks still reject other locations under /run and /var. Validation: Passed: python -m unittest tests.terminal.test_folders_home -v — 5 tests passed. Passed: python -m unittest tools.test_strata_mcp.Validation -v — 8 tests passed. Passed: (cd apps/host && node --test tests/chat-files.test.mjs) — 3 passed, 1 harness-dependent test skipped. Passed: Python and Node syntax checks; git diff --check. Not run: Test on a physical external drive or a Silverblue/Bazzite system. Limits: The path rules were tested locally with regression tests; real removable-drive mounts and immutable Linux distributions were not available for testing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4960
No description provided.