Repository navigation
fix(config): actionable first-run errors and a shareable workspace config - #119
Merged
Merged
Conversation
…rkspace config
The executor declaration used bearer: Stored("executor/lg2m"), a name that
only resolves in one developer's credential store. Every other clone failed
its first run with "credential `executor/lg2m` is not registered".
Personal Stored(...) MCP servers belong in the gitignored
.qq/config.d/*-local.ron fragment; the shared config now says so.
Running qq with no model used to exit with the bare "model must be configured". ModelRequired now carries this machine's global config path and its message lists every way to choose a model (--model, QQ_MODEL, the global config.ron, .qq/config.ron), an example route, and how to authenticate. ConfigLoader::check still treats it as "valid apart from the selection". The README quick start states the two first-run requirements.
The tracked .qq/config.ron also declared bedrock, bedrock-mantle, and a litellm gateway with Stored(...) credentials plus a reviewer_model on openai-codex, all of which resolve only against one developer's credential store. A fresh clone now carries just the policy grants and the default model; built-in providers need no declaration, and personal providers, reviewer/worker models, and MCP servers live in the gitignored .qq/config.d/*-local.ron fragment.
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.
Linear: ENG-859
What changes for users
Before: a fresh clone (or any directory with no global config) exits with
error: model must be configured, and every clone of this repo failed withcredential `executor/lg2m` is not registeredbecause the tracked.qq/config.ronreferenced one developer's credential store.After:
and the shared
.qq/config.ronkeeps only shareable settings: the policy grants and the default model. The personalexecutorMCP server, thebedrock/bedrock-mantle/litellmproviders withStored(...)credentials, and theopenai-codexreviewer_modelmoved to the gitignored.qq/config.d/*-local.ron. A fresh clone now passesqq trust && qq config checkwith no global config and no credentials; the firstqq askneeds only an xAI key (or--model/QQ_MODELfor another built-in provider).Design
ConfigError::ModelRequiredgains aglobal_config: PathBuffield so the message names this machine's actual path; the loader passespaths.global_dir/config.ronintoMergeState::finish. One Display impl covers the TUI,ask,run, andconfig showentrypoints.ConfigLoader::checkstill treatsModelRequired { .. }as "valid apart from the selection" (headless contract unchanged).Stored(...)credential is per-developer by construction and belongs in the gitignored.qq/config.d/*-local.ron; a comment in the shared file says so. Built-in providers need no declaration.Verification
missing_model_error_names_every_way_to_set_onepins the variant payload and every hint in the message.cargo fmt --check,cargo clippy --workspace --all-targets --all-features -D warnings,cargo test --workspacepass. (headless::tests::hard_cost_budget_cancels_an_unmetered_looping_childflaked once, passes on rerun and on unmodifiedmain.)qq ask hiwithXDG_CONFIG_HOMEpointed at an empty dir prints the message above. A copy of the tracked.qq/with noconfig.d/and no global config passesqq trust && qq config check(model: xai/grok-4.6).Impact
Error-path only; no hot-path change. No wire or schema changes.
Stack