import Testing

@testable import NucleicCore

/// Codex's approval trigger and reviewer are independent app-server settings. Auto mode
/// selects the native risk-review subagent; interactive mode keeps requests routed to Nucleic.
@Suite struct CodexAppServerBackendTests {
    @Test func autoModeSelectsNativeApprovalReviewer() {
        #expect(CodexAppServerBackend.approvalsReviewer(autoApprove: true) == "auto_review")
    }

    @Test func interactiveModeSelectsUserReviewer() {
        #expect(CodexAppServerBackend.approvalsReviewer(autoApprove: false) == "user")
    }
}
