Skip to content

feat: native workspace transport connector and backend bridge#336

Open
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
phreakocious:feat/workspace-transport
Open

feat: native workspace transport connector and backend bridge#336
phreakocious wants to merge 1 commit intoopenagents-org:developfrom
phreakocious:feat/workspace-transport

Conversation

@phreakocious
Copy link
Copy Markdown

Summary

Adds a native workspace transport 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 management
  • Transport router (workspace/backend/app/routers/transport.py): New FastAPI router providing agent registration, event polling, event submission, and channel/thread listing endpoints for the connector
  • Adapter integration: Updates ThreadMessagingAgentAdapter with process_incoming_event() for routing thread events and an _event_channel_map for tracking event-to-channel associations
  • Transport enum: Adds WORKSPACE = "workspace" to TransportType
  • SDK client: Adds workspace_url parameter and workspace connector initialization to OpenAgentsClient

Design 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

  • Register an agent with transport: workspace — confirm it appears in the workspace UI
  • Send a message mentioning the agent — confirm it receives the event and responds
  • Test file upload/download through the connector
  • Verify agent deregistration on shutdown
  • Confirm existing Discord/other transports are unaffected

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

@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.

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.

1 participant