Skip to content

Add agent thread sharing - #46140

Merged
mikayla-maki merged 12 commits into
mainfrom
add-agent-sharing
Jan 6, 2026
Merged

Add agent thread sharing#46140
mikayla-maki merged 12 commits into
mainfrom
add-agent-sharing

Conversation

@mikayla-maki

@mikayla-maki mikayla-maki commented Jan 6, 2026

Copy link
Copy Markdown
Member

Staff only ship for now

Here's the agent planning doc that guided this: https://gist.github.com/mikayla-maki/c826b7997bd85b58273c1def9397940b

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jan 6, 2026
@mikayla-maki
mikayla-maki requested a review from rtfeldman January 6, 2026 07:45
- Add AgentSharingFeatureFlag for gating the feature
- Add SharedThread proto messages (ShareAgentThread, GetSharedAgentThread)
- Add shared_threads database table with migration
- Add SharedThreadId type and SeaORM entity
- Add create_shared_thread and get_shared_thread database queries
- Add RPC handlers for sharing and retrieving threads
- Add integration tests for RPC flow
- Add database tests for SQLite and PostgreSQL

This implements the server-side infrastructure for agent thread sharing.
Client-side implementation (SharedThread struct, UI, URL handling) to follow.
- Add 'imported' field to DbThread for tracking imported threads
- Add 'imported' field to Thread and is_imported() method
- SharedThread::to_db_thread() now sets imported: true
- Add is_imported_thread() helper to AcpThreadView
- Implement sync_thread() to fetch and reload imported threads
- Add sync button (ArrowCircle) for imported threads in UI
- Hide share button for imported threads to prevent re-sharing
- Fix SharedThreadId to implement TryFromU64 and Nullable traits
- Add tests for imported flag and sync functionality
Adds a simple modal that accepts any URL:
- zed:// URLs are processed internally (agent sharing, extensions, etc.)
- Other URLs are validated and opened in the default browser

Useful for testing features like agent thread sharing across instances.
@mikayla-maki
mikayla-maki marked this pull request as ready for review January 6, 2026 07:46

@rtfeldman rtfeldman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Based on our realtime convo, approach seems good! 🤘

@mikayla-maki
mikayla-maki merged commit 3da9269 into main Jan 6, 2026
36 of 38 checks passed
@mikayla-maki
mikayla-maki deleted the add-agent-sharing branch January 6, 2026 20:49
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Staff only ship for now

Here's the agent planning doc that guided this:
https://gist.github.com/mikayla-maki/c826b7997bd85b58273c1def9397940b

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Staff only ship for now

Here's the agent planning doc that guided this:
https://gist.github.com/mikayla-maki/c826b7997bd85b58273c1def9397940b

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants