feat: native workspace transport connector and backend bridge#336
Open
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
Open
feat: native workspace transport connector and backend bridge#336phreakocious wants to merge 1 commit intoopenagents-org:developfrom
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
Conversation
|
@phreakocious is attempting to deploy a commit to the Raphael's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Summary
Adds a native
workspacetransport type that lets agents connect directly to the workspace backend via HTTP polling, without requiring Discord or other external messaging platforms.WorkspaceConnector(src/openagents/sdk/connectors/workspace_connector.py): New connector that registers agents with the workspace backend, polls for events, and sends responses — supports thread creation, message sending, file operations, and channel managementworkspace/backend/app/routers/transport.py): New FastAPI router providing agent registration, event polling, event submission, and channel/thread listing endpoints for the connectorThreadMessagingAgentAdapterwithprocess_incoming_event()for routing thread events and an_event_channel_mapfor tracking event-to-channel associationsWORKSPACE = "workspace"toTransportTypeworkspace_urlparameter and workspace connector initialization toOpenAgentsClientDesign notes
The connector uses HTTP long-polling rather than WebSockets to keep infrastructure requirements minimal — no sticky sessions or upgrade-aware proxies needed. Agents register on startup and deregister on shutdown. The backend stores pending events per-agent in memory (suitable for single-instance deployments; a shared store like Redis would be needed for horizontal scaling).
Test plan
transport: workspace— confirm it appears in the workspace UI🤖 Generated with Claude Code