Skip to content

fix: remove public sharing feature for prompts/agents#2317

Merged
geclos merged 1 commit intomainfrom
fix/remove-share-prompt-feature
Feb 17, 2026
Merged

fix: remove public sharing feature for prompts/agents#2317
geclos merged 1 commit intomainfrom
fix/remove-share-prompt-feature

Conversation

@geclos
Copy link
Collaborator

@geclos geclos commented Feb 17, 2026

This PR removes all features related to sharing prompts/agents publicly from the Latitude codebase.

Changes

Deleted Components

  • All /share/d/* routes and related UI components (ForkButton, Header, Messages, SharedDocument, etc.)
  • Published documents API routes
  • Sharing-related server actions (forkDocumentAction, addSharedMessagesAction, runSharedPromptAction)

Deleted Core Services

  • Published documents repository
  • Published documents database schema and types
  • Published documents services (create, update, findSharedDocument, findForkedDocument)
  • Published documents test factories

Updated Files

  • Removed ROUTES.share from routes.ts
  • Removed publishedDocuments from API routes
  • Removed sharing-related event types from events.d.ts:
    • publicDocumentRunRequested
    • sharedChatMessageRequested
    • forkDocumentRequested
  • Updated event handlers index.ts to remove sharing event handlers
  • Removed forkDocument event publishing from fork service (kept fork functionality for cloneAgent onboarding)

Notes

  • The document fork functionality is preserved in packages/core/src/services/documents/fork/ as it's used by the cloneAgent action for onboarding new users with sample agents
  • The published_documents database table should be dropped in a follow-up migration

Testing

  • pnpm lint passes
  • pnpm tc passes for the web app and core package

Related

Remove all features related to sharing prompts/agents publicly:
- Delete all /share/* routes and components
- Delete published documents API routes
- Delete sharing-related actions (forkDocumentAction, addSharedMessagesAction, runSharedPromptAction)
- Remove published documents repository, schema, and services
- Remove sharing-related event types (publicDocumentRunRequested, sharedChatMessageRequested, forkDocumentRequested)
- Update routes to remove share path helpers
- Keep document fork functionality for cloneAgent action (used in onboarding)
@geclos geclos marked this pull request as ready for review February 17, 2026 11:51
import { IntegrationType } from '@latitude-data/constants'
import { ToolSource } from '@latitude-data/constants/toolSources'
import { getIntegrationToolsFromConfig } from '../../../../services/documents/fork/helpers'
import { getIntegrationToolsFromConfig } from '../../fork/helpers'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this ok?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

@geclos geclos merged commit 26bbc66 into main Feb 17, 2026
18 checks passed
@geclos geclos deleted the fix/remove-share-prompt-feature branch February 17, 2026 12:13
@github-project-automation github-project-automation bot moved this from Inbox to Done in Latitude LLM Roadmap Feb 17, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants