Repository navigation
feat: shared folders - #137
Open
maxy-shpfy wants to merge 1 commit into
Open
maxy-shpfy wants to merge 1 commit into
maxy-shpfy wants to merge 1 commit into
Conversation
maxy-shpfy
marked this pull request as ready for review
October 29, 2026 18:50
maxy-shpfy
force-pushed
the
maxy/feat--shared-folders
branch
from
October 29, 2026 18:54
acc1bc7 to
b26db1e
Compare
maxy-shpfy
changed the base branch from
maxy/feat--gate-local-agents-by-owner
to
maxy/fix--restore-session-envs-on-revive
October 29, 2026 18:54
maxy-shpfy
marked this pull request as draft
October 29, 2026 18:57
Mbeaulne
approved these changes
Oct 29, 2026
Base automatically changed from
maxy/fix--restore-session-envs-on-revive
to
main
October 30, 2026 00:01
maxy-shpfy
force-pushed
the
maxy/feat--shared-folders
branch
3 times, most recently
from
October 31, 2026 04:51
a29a3e7 to
9165713
Compare
maxy-shpfy
force-pushed
the
maxy/feat--shared-folders
branch
from
October 31, 2026 05:02
9165713 to
ce3c98f
Compare
maxy-shpfy
marked this pull request as ready for review
October 31, 2026 06:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds shared folders: server-managed "project" directories that live outside any single
session so multiple sessions can collaborate in one live workspace.
SHARED_ROOT/<id>directory; metadata is tracked in a newshared_foldersSQLite table (migration0024) with aSharedFolderStore(SQLite + in-memory implementations).
/api/shared-folders:GET /api/shared-folders— list every shared folder (oldest first).POST /api/shared-folders— create a folder and its backing directory; the creator isresolved from their identity when available, and the name defaults to
Shared folder N.mounthost-resource kind. A mount creates aone-way symlink at the session root pointing at the shared folder, so the agent reads and
writes it with its ordinary file tools.
mountNameis an optional single-segment symlinkname (defaults to a sanitized form of the folder's name).
no unmount.
SharedFolderStorethrough the resource routes andseed deps.
Contracts (
@tangent/shared), the embed types, and server docs/README are updated todescribe the feature and the new
SHARED_ROOTconfig.Screenshots
N/A
How to test
pnpm --filter @tangent/server db:migrateto apply migration0024.pnpm dev(local run pointsSHARED_ROOTat a gitignored.sharedfolder).POST /api/shared-folderswith an optional{ "name": "..." }and confirm a201with thecreated folder plus a backing directory under
SHARED_ROOT/<id>.GET /api/shared-foldersand confirm it lists the folder.mounthost resource to a session referencing thefolderId; confirm a symlinkappears at the session root and that two sessions mounting the same folder see each other's
writes live.
pnpm --filter @tangent/server exec tsx --test src/store/sqliteSharedFolderStore.test.tspnpm --filter @tangent/server exec tsx --test src/routes/sessions/resources.test.tsNotes
SHARED_ROOTenv var — set it in deployed environments;pnpm devdefaults to.shared.Stack created with GitHub Stacks CLI • Give Feedback 💬