CLI Internals
Claude Code Runtime
The current production runtime for OpenSana CLI thread execution.
Claude Code is the primary executable runtime in OpenSana today.
Runtime Responsibilities
- spawn the local Claude CLI through the internal SDK
- stream structured output
- preserve continuation identifiers
- support attachments and image handling
- map OpenSana thread mode to Claude permission behavior
Important Behaviors
- unsupported or unknown chunks should remain inspectable
- runtime notices should stay in stream order
- continuation metadata should survive success and failure paths
- fixture replay remains available for deterministic UI development