# 4.8 — Frontend: wire terminal page to /api/exec (GREEN)

Phase: 4 — Terminal (Surface C)
Stage: GREEN

Depends on: [4.4](4.4-api-exec.md)

- [ ] [app/cluster/terminal/page.tsx](../app/cluster/terminal/page.tsx) currently has its own inline `run()` command parser — replace it with a `fetch('/api/exec', { method: 'POST', body: JSON.stringify({ cmd }) })` call so the terminal actually round-trips through the mock API instead of simulating client-side
- [ ] [components/InteractiveTerminal.tsx](../components/InteractiveTerminal.tsx) (the floating Cmd+K terminal) is a separate, older component with its own hardcoded `commands` map — several entries are named after infra/ops tools with no portfolio relevance — decide whether to retire it, or reduce it to the same closed command set as the Surface C terminal and wire it to `/api/exec` too
