Skip to content

feat(setup): add --skip-auth flag to oMo installer for CI reliability #238

@fro-bot

Description

@fro-bot

Summary

Add --skip-auth flag to the oMo installer arguments to prevent authentication prompts in headless CI environments. This prevents potential hangs when the installer prompts for credentials.

Motivation

The oMo installer can print auth prompts in certain conditions. In CI environments, these prompts have no way to be answered and can cause timeouts or hangs. The --skip-auth flag is specifically designed for this use case.

Implementation

File: src/lib/setup/omo.ts

Add --skip-auth to the args array in installOmo:

const args = [
  `oh-my-opencode@${version}`,
  'install',
  '--no-tui',
  '--skip-auth',  // ADD THIS
  `--claude=${claude}`,
  // ... rest of flags
]

Acceptance Criteria

  • --skip-auth added to installer args
  • Test updated to verify flag is passed
  • Build succeeds (pnpm build)
  • All tests pass (pnpm test)

Context

Identified in PR #236 during review of oMo installer behavior.

Scope

  • Effort: Small (single line change + test)
  • Risk: Low (flag is designed for CI)
  • Dependencies: None

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions