-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
The Agent Sandbox UI calls GET /api/domains during context hydration (hydrateSandboxContext()), but this endpoint does not exist in the backend routes, resulting in a 404.
Steps to Reproduce
- Open the Agent Sandbox UI
- Observe network tab —
GET /api/domainsreturns 404 - Backend logs show:
Route GET:/api/domains not found
Expected
A GET /api/domains endpoint should return the list of domains for the current authenticated user/key.
Impact
The sandbox cannot auto-detect domain context, forcing users to manually configure domain IDs.
Suggested Fix
Add a GET /api/domains route in src/api/routes.ts that returns domains scoped to the authenticated principal.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working