[Codex] fix(config): preserve legacy OPENTWS envs and DB path to avoid rebrand-first-boot#554
Open
Micsi wants to merge 4 commits into
Open
Conversation
Collaborator
Author
|
Sync-Update aus dem Fork ist eingespielt. Quelle: Micsi#50 Synchronisierte Änderungen:
Review/Assignment:
Enthaltener Commit-Stand (zusätzlich zum ursprünglichen PR-Commit):
Lokale Gates im Worktree wurden ausgeführt:
|
Collaborator
Author
|
Sync-Update: offene Review-Punkte aus dem Fork wurden adressiert. Quelle: Micsi#50 Neu synchronisiert:
Commit-Stand jetzt im Upstream-PR enthalten:
Lokale Gates im Worktree:
|
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.
Motivation
admin/adminaccount; this change restores compatibility so upgrades reuse existing data and secrets.Description
OPENTWS_*→OBS_*only when the correspondingOBS_*key is not already set to preserve operator overrides (obs/config.py)./data/opentws.dbwhen/data/obs.dbdoes not exist but the legacy file does, and applied that value as theDatabaseSettings.pathdefault (obs/config.py).OPENTWS_CONFIGfallback for_CONFIG_PATHso legacy config file env var is honored whenOBS_CONFIGis unset (obs/config.py).Testing
python -m compileall obs/config.pyand it completed successfully.opentws.db, imports the module, and verified_resolve_default_db_path()returns the legacy DB path when onlyopentws.dbexists, which succeeded.Codex Task