Skip to content

fix: partial token_env missing no longer blocks startup in multi-org setups#85

Open
himerus wants to merge 3 commits into
mainfrom
staging
Open

fix: partial token_env missing no longer blocks startup in multi-org setups#85
himerus wants to merge 3 commits into
mainfrom
staging

Conversation

@himerus

@himerus himerus commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Behavior change

Before: Any missing token_env in the global config caused a fatal startup error, even for projects from completely unrelated orgs.

After:

  • Some tokens missing → server starts, warns about unavailable projects, serves the rest
  • All tokens missing → fatal error (nothing would work anyway)
  • list_projects surfaces missing tokens as warnings, not errors

Test plan

  • npm test — 932 tests, all pass
  • npm run typecheck — clean
  • npm run lint — clean

Automaker added 2 commits April 11, 2026 20:10
- schema field names: tool_profile_add/remove → profile_add/profile_remove
- remove invalid notification_routing from project-level config reference
- add discord-ops init subcommand documentation
- add serve flags (--allowed-origin, --allow-unauthenticated)
- document bot persona profile_add/profile_remove fields
- update version references from v0.14.0 to v0.23.0
…setups

When a global config contains projects from multiple orgs, the server now
starts successfully even if some projects are missing their token_env in the
current environment. Projects with missing tokens are logged as warnings and
marked unavailable; only when all projects lack tokens does startup fail.

validateConfig() likewise downgrades per-project missing token_env from errors
to warnings, since the server can still serve other projects.

Resolves #86
@himerus himerus changed the title docs: README accuracy fixes from technical-writer audit fix: partial token_env missing no longer blocks startup in multi-org setups Apr 13, 2026
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.

validateConfig() treats missing token_env as fatal error, blocking startup when unrelated projects lack tokens in current environment

1 participant