Opta Code Desktop Features
Opta Code Desktop (1P-Opta-Code-Desktop) is a native-feeling desktop client for the Opta CLI daemon.
Session Management
- Daemon WebSocket streaming — real-time event consumption via WS
- Session list — workspace rail with all active and past sessions
- Session creation — start new sessions with model/mode selection
- Session search — filter sessions by title or session ID
- Session copy — duplicate session ID to clipboard
- Session remove — delete sessions via daemon API
- Token persistence — connection token stored in
localStorage under opta:daemon-connection
- Reconnect with backoff — exponential reconnect on WebSocket drop
- Event cursor — resume from
lastReceivedSeq to avoid duplicate events
Chat Interface
- Markdown rendering — zero-dependency markdown renderer in
MarkdownMessage.tsx
- Code blocks — syntax-highlighted fenced code blocks
- Inline formatting — bold, italic, inline code
- Lists and headers — full Markdown block support
- Blockquotes — styled quote rendering
- Tool cards — collapsible tool-call and tool-result cards
- Turn statistics — tokens, speed (tok/s), elapsed time, tool call count
- Streaming indicator — live typing animation during assistant turns
Mode Toggle
- Chat mode — standard conversational interaction
- Do mode — agentic mode with auto-approval of safe tools
- Mode indicator pill — header badge showing current mode
- Per-session mode persistence — mode remembered across reconnects
Background Jobs
- Background jobs page — view and manage long-running daemon processes
- Job launcher — form to start new background processes with args
- Job status — live status polling for active jobs
- Job termination — kill running jobs
Connection Management
- Connection settings — configure daemon URL and auth token
- Connection status indicator — real-time online/offline badge
- Auto-reconnect — transparent reconnection to daemon
Operations
- Operations page — expose CLI-backed operations as GUI forms
- Models page — view and manage LMX-available models
- Settings page — daemon connection and app preferences
Packaging & Distribution
- Electron/Tauri wrapper — native desktop app packaging
- Auto-update — in-app update mechanism
- macOS DMG — distributable installer
- Code signing — Apple Developer ID signing
Recent Updates
- 2026-02-28 — Session search, copy, remove; Chat/Do toggle; turn stats; tool cards; Markdown rendering
- 2026-02-26 — Background jobs launcher form; Codex Desktop parity sprint
- 2026-02-25 — Fix: timer leaks, dead memo, type precision improvements
- 2026-02-24 — Daemon v3 WebSocket event routing fixed (
envelope.event not envelope.kind)