Compare commits

...
Author SHA1 Message Date
Julius Marminge 8329d127af Clarify orchestration state-mapping guidance
- Prefer shared modules for transition and event mapping
- Make failure and resume behavior explicit
2026-04-01 11:34:39 -07:00
+2
View File
@@ -23,6 +23,8 @@ If a tradeoff is required, choose correctness and robustness over short-term con
Long term maintainability is a core priority. If you add new functionality, first check if there is shared logic that can be extracted to a separate module. Duplicate logic across multiple files is a code smell and should be avoided. Don't be afraid to change existing code. Don't take shortcuts by just adding local logic to solve a problem.
When touching orchestration, streaming, or reconnect behavior, prefer extracting the state transition or event-mapping logic into a named shared module instead of embedding it inline in transport handlers or React components. Code in these paths should make failure and resume behavior explicit.
## Package Roles
- `apps/server`: Node.js WebSocket server. Wraps Codex app-server (JSON-RPC over stdio), serves the React web app, and manages provider sessions.