fix(projects): open draft after adding project

This commit is contained in:
Bohdan Triapitsyn
2026-08-10 16:10:03 +03:00
parent bd4e7668fb
commit f9595cb80b
7 changed files with 94 additions and 10 deletions
@@ -88,7 +88,7 @@ This module provides OpenCode server integration utilities for the web server ru
- `GET /api/config/opencode-resolution`
- `POST /api/opencode/upgrade` (enforces the active runtime's upgrade capability, serializes supported OpenCode upgrades, then restarts managed OpenCode so the new binary is active)
- `GET /api/opencode/upgrade-status` (returns version availability plus the authoritative `upgrade.supported`, `upgrade.manager`, and `upgrade.reason` capability)
- `POST /api/opencode/directory`
- `POST /api/opencode/directory` (validates and activates an existing project directory; `{ create: true }` explicitly creates the requested project directory before activation, including outside the previously active workspace)
- `GET /api/provider/:providerId/source`
- `PUT /api/provider` (create/update custom OpenAI-compatible provider config in OpenCode user/project/custom layers via `scope`; secrets stay in auth via the OpenCode auth API)
- `DELETE /api/provider/:providerId/auth`