[codex] Improve onboarding, portability, and failure visibility#2
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves Nightshift's day-0 usability and portability for users running outside the original local setup, while keeping compatibility with OpenCode workflows.
The biggest user-facing changes are a new guided setup flow (
nightshift init), an environment health check (nightshift doctor), portable model selection based on localopencode models, and richer visibility into failed tasks in reports and the dashboard.Problem
Nightshift worked well on a specific local machine configuration, but onboarding and forking were harder than necessary:
This increased friction for new users and fork maintainers and made debugging less direct.
Root Cause
The project relied on hardcoded defaults and mostly static configuration assumptions:
Fix
Config + portability
~/.nightshift/config.tomlNIGHTSHIFT_CONFIG_FILEandNIGHTSHIFT_DATA_DIRoverridesCLI UX
nightshift initto bootstrap config files safelynightshift doctorto validate environment readiness (opencode,gh, config parse, data dir permissions, plugin deps)nightshift startaccept optional duration/priority and defer to config defaults when omittedModel resilience
opencode modelsFailure visibility
/statusAPI and rendered them in dashboard UIContributor/fork ergonomics
CONTRIBUTING.mdARCHITECTURE.md.env.exampleREADME.mdfor portable paths and new setup/diagnostics flowValidation
.venv/bin/python -m pytest -q(9 passed).venv/bin/python -m compileall -q src testscd plugin && bun run typecheckImpact
These changes reduce setup ambiguity, make forks easier to operate across machines, and speed up troubleshooting when runs fail or model availability differs from defaults.