Skip to content

fix: prevent crash when config file is missing#59

Open
Nigo-ly wants to merge 1 commit intoApexOpsStudio:mainfrom
Nigo-ly:main
Open

fix: prevent crash when config file is missing#59
Nigo-ly wants to merge 1 commit intoApexOpsStudio:mainfrom
Nigo-ly:main

Conversation

@Nigo-ly
Copy link
Copy Markdown

@Nigo-ly Nigo-ly commented Apr 21, 2026

Summary

Fixed the crash that occurs when is missing.

Before

After

  • If config doesn't exist, automatically creates a default config file
  • Shows helpful message: "Created default config at /path/to/config"
  • If cannot create (permission error), exits with clear error message

Acceptance Criteria

  • No crash when config file is missing
  • Creates sensible default config
  • Tests added for missing config scenario

Changes

  • : Fixed to create default config if missing
  • : Added test

/bounty $75

When ~/.config/task-cli/config.yaml doesn't exist:
- Before: FileNotFoundError crash with ugly stack trace
- After: Creates default config file automatically

Also added test coverage for the missing config scenario.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant