**Self-heal complete.** Here's what was found and fixed: **Issue:** All `/code/api/*` endpoints were returning 404. During the repo restructure on 2026-03-17, the API route files under `palacering/src/pages/code/api/` were deleted but never recreated. **Fix:** Created 10 thin re-export files in `palacering/src/pages/code/api/` that delegate to the actual implementations in `apps/palacecode/src/pages/api/` (using the existing `@palacecode` Vite alias): - `threads.ts`, `session-tails.ts`, `chat-stream.ts`, `chat.ts`, `attach-thread.ts`, `delete-thread.ts`, `update-thread.ts`, `sync-linear.ts`, `linear-issues.ts`, `transcribe.ts` **Verified:** App rebuilt and restarted. All 9 API endpoints return 200. Thread data (6 threads), session logs, and Linear issues all load correctly. `palacering.com/code` is fully operational.