mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4225] [Other] Allow storage on mounted media and symlinked home #4960
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
74c5c7dAllow storage on mounted media and symlinked home3612000Merge branch 'Niko1221:main' into fix/allow-run-media-data-dirde89ec7Merge branch 'Niko1221:main' into fix/allow-run-media-data-dir5d67302Merge 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.
--family swift#4676