Files
openshell_controller/app/api/openshell/terminal/route.ts
T
Mark McKeen 32ad2f506f feat: add sandbox dashboard and terminal actions
- add sandbox overview buttons for OpenClaw dashboard and OpenShell terminal
- add backend routes to resolve dashboard endpoint and terminal attach stub
- surface operator messages in sandbox overview panel
2026-03-29 09:27:38 -06:00

15 lines
501 B
TypeScript

import { NextResponse } from 'next/server'
export async function GET(request: Request) {
const { searchParams } = new URL(request.url)
const sandboxId = searchParams.get('sandboxId') || 'unknown'
return NextResponse.json({
ok: true,
sandboxId,
attached: false,
note: 'Embedded terminal transport is not live yet. This route is the integration point for attaching to an OpenShell terminal session.',
suggestedCommand: `openshell sandbox exec ${sandboxId} -- /bin/sh`
})
}