# settings-panel ## Intent The UI for the config store (AGENT.md §1.3) — manage forge hosts + tokens, project directories to scan, and the git commit identity, replacing hand-editing `.env` for domain config. Served at `/settings`. ## Public surface - **Tag:** `` - **Fetches:** `GET /api/config/forges`, `GET /api/config/project-dirs`, `GET /api/config/identity`. - **Writes:** - Forges: `POST /api/config/forges` (add), `DELETE /api/config/forges/:id`. - Project dirs: `POST /api/config/project-dirs` (add), `PUT /api/config/project-dirs/:id` (enable/disable), `DELETE /api/config/project-dirs/:id`. - Identity: `PUT /api/config/identity`. - **Reports:** results via `toast` CustomEvents (needs `` on the page). ## History - 2026-09-22: created — settings UI for the SQLite config store (forges, project dirs, git identity). ## Notes / gotchas - Tokens are **write-only** from the client: the server returns only `hasToken`, never the value. Removing + re-adding a forge is how you rotate a token. - Project-dir paths are **container paths** and must resolve inside the container (under a mounted base); the server validates existence before adding. - Adding/removing a forge reapplies git auth (the server sets an `http.extraheader` per forge); changes take effect immediately.