Four-line CLI/TUI guide: build on @opencode/client and location-scoped TUI context data rather than legacy sync state, and preserve established TUI behavior unless the task intends otherwise. Read before changing the CLI or TUI.
CLI and TUI development guide
- Use
@opencode/clientand the location-scoped data in packages/tui/src/context/data.tsx instead of adding dependencies on legacy sync state. - Preserve established TUI behavior unless the task intentionally changes it.