feat: cli passthrough state transitions (#95)

This commit is contained in:
Carlos Florêncio
2026-01-25 18:37:37 +00:00
committed by GitHub
parent 66cda240e0
commit ab404261dd
14 changed files with 144 additions and 874 deletions
@@ -158,15 +158,9 @@ func (r *InteractiveRunner) SetStateCallback(cb AgentStateCallback) {
}
// createStatusDetector creates the appropriate detector based on the detector type.
// The idle detector is the default - it relies on the idle timer mechanism for turn detection.
func createStatusDetector(detectorType string) StatusDetector {
switch detectorType {
case "claude_code":
return NewClaudeCodeDetector()
case "codex":
return NewCodexDetector()
default:
return &NoOpDetector{}
}
return NewIdleDetector()
}
// Start creates an interactive process entry and defers PTY creation until first resize.