Skip to content

feat(cli): add input examples and reject profile target conflicts - #481

Merged
johnlanni merged 2 commits into
mainfrom
codex/cli-feedback-examples-targets
Oct 25, 2026
Merged

johnlanni merged 2 commits into
mainfrom
codex/cli-feedback-examples-targets

Conversation

@johnlanni

@johnlanni johnlanni commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

SPEC/TASK authors currently have to infer the generator's JSON fields, and an explicit hostname can silently lose to a saved self-hosted profile. This adds runnable input examples and makes conflicting targets fail before credential access or network requests.

  • Add comment generate --type SPEC|TASK --example: offline JSON with a durable SPEC operation or complete TASK planning fields. Update command help, bilingual references and generated authoring guidance.
  • Validate explicitly supplied hostnames against the selected profile while preserving profile precedence and implicit defaults. Cover new-profile login and Runner entry points; include profile/source context in REST failures without losing error classification or redaction.

Validation at fd30664f9ee380ba27bdd7a39c908b740dff3088 (identical source tree to 20691a2cc556721bb7c3b0a0b95abdaeabbac76f; only commit sign-offs changed):

  • make test-fast test-full verify-docs passed. Local runs unset the ambient QODER_EXPOSE_TOKEN_USAGE and QODERCN_EXPOSE_TOKEN_USAGE diagnostic flags.
  • Actual CLI smoke passed: examples with invalid local configuration, SPEC/TASK round trips, zero requests on hostname conflict, and a contextualized/redacted 404.
  • Actual workflow update preview/apply/preview changed only the authoring skill and manifest; the final preview was empty.
  • Independent review completed with no outstanding findings.

Closes #476
Closes #474

Signed-off-by: johnlanni <zty98751@alibaba-inc.com>
Signed-off-by: johnlanni <zty98751@alibaba-inc.com>
@johnlanni
johnlanni force-pushed the codex/cli-feedback-examples-targets branch from fd30664 to 20691a2 Compare October 25, 2026 05:57
@johnlanni
johnlanni merged commit 4af4df8 into main Oct 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant