Skip to content

Add feature to share chat with anyone in the tenant - #859

Merged
chiragjn merged 7 commits into
mainfrom
cj-add-tenant-level-share-session
Sep 25, 2026
Merged

chiragjn merged 7 commits into
mainfrom
cj-add-tenant-level-share-session

Conversation

@chiragjn

@chiragjn chiragjn commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Closes AGE-2357


Note

Medium Risk
Expands who can read session content within a tenant when shared is enabled; write/stream/download paths are intentionally unchanged but mis-set sharing could expose sensitive transcripts.

Overview
Adds a shared flag on agent sessions so the owner can expose read-only conversation access to anyone in the tenant.

Owners set shared via session PATCH (defaults to false on create; existing rows stay private after migration). When shared is true, GET session, list/get turns, and list session/turn events succeed for any tenant subject—not only the creator or named-agent managers. Updates, turn creation, subscribe, and sandbox file download still require the original access rules (creator-only where applicable today).

Persistence spans in-memory, Postgres, and SQLite stores; OpenAPI, route docs, and TS/Python SDKs are regenerated to surface shared on Session and UpdateSessionRequest.

Reviewed by Cursor Bugbot for commit 29e3108. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bfe4d9f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@truefoundry/trueforge-sdk Patch
@truefoundry/trueforge Patch
@truefoundry/trueforge-core Patch
@truefoundry/trueforge-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chiragjn
chiragjn marked this pull request as draft September 23, 2026 11:24

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/trueforge/src/apis/sessions.ts Outdated
@chiragjn
chiragjn marked this pull request as ready for review September 24, 2026 06:21
@chiragjn
chiragjn force-pushed the cj-add-tenant-level-share-session branch from 6fac847 to a6b56a5 Compare September 24, 2026 06:21

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a6b56a5. Configure here.

Comment thread packages/trueforge-core/src/agent-session/schemas/session.ts
@chiragjn
chiragjn merged commit 4726a31 into main Sep 25, 2026
12 checks passed
@chiragjn
chiragjn deleted the cj-add-tenant-level-share-session branch September 25, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants