Skip to content

revert(providers): remove mandatory LiteLLM/SSO enforcement gate from setup - #524

Merged
8nevil8 merged 3 commits into
mainfrom
chore/revert-litellm-setup-enforcement-and-simplify-tests
Sep 3, 2026
Merged

revert(providers): remove mandatory LiteLLM/SSO enforcement gate from setup#524
8nevil8 merged 3 commits into
mainfrom
chore/revert-litellm-setup-enforcement-and-simplify-tests

Conversation

@8nevil8

@8nevil8 8nevil8 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Reverts the EPMCDME-11733 mandatory-LiteLLM-integration enforcement gate (#429) and its four follow-on fixes (#457, #458, #459, #500): codemie setup no longer authenticates to CodeMie and checks for a project-scoped LiteLLM integration before letting the user pick a provider. Also collapses the npm test-script surface to exactly two entry points, per the same discussion.

Changes

  • Revert (revert(providers): ...): drop detectLiteLLMEnforcement, SetupContext, CodeMieSetupSession, session reuse, and the allowEmpty URL-prompt variant. Provider selection in codemie setup is back to a single plain prompt. Deleted the two test files created solely for the reverted feature.
  • Test scripts (chore(tests): ...): npm test is now the one command for the full local suite (unit + cli + agent — same suite the release process runs); npm run ci is the one CI/release gate (license-check + lint + build + unit + cli). Removed test:unit, test:integration, test:integration:cli, test:integration:vscode-models, test:integration:agent, test:run, test:all as redundant, and repointed every live doc/comment/script reference (including scripts/release.sh, which shelled out to a script name that no longer exists) at npx vitest run --project <unit|cli|agent> or the new npm test.

Notes for reviewers

  • tests/integration/agent-setup.test.ts also carries a pre-existing, unrelated workspace-field alignment (007 decouple-provider-workspace-config migration) that predates this branch and wasn't authored as part of this change — it was already in the working tree before this work started.
  • tests/integration/agent-model.test.ts also carries a pre-existing, unrelated ctx.skip workaround for a known upstream transcript-persistence gap (#523) that appeared in the working tree mid-session from an unknown source — only its "Run with:" comment line is this branch's intent.
  • src/cli/commands/hook.ts has an unrelated pre-existing local modification that was deliberately excluded from both commits (not part of this branch).

Testing

  • npm run ci (license-check, lint, build, unit, cli) — green, run multiple times
  • npm test (unit + cli + agent) — green except the known-flaky live SSO metrics test in agent-model.test.ts, unrelated to this change
  • Manual: fixed tests/integration/agent-setup.test.ts (the SSO setup wizard e2e test) to match the restored plain-prompt flow; verified it passes standalone

Checklist

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (CONTRIBUTING.md, tests/README.md, guides, qa-lead agent, codemie-release skill, docs/COMMANDS.md)
  • No breaking changes (or documented) — this is an intentional behavior revert; see Summary

… setup

Reverts the EPMCDME-11733 enforcement gate (#429) and its follow-on fixes
(#457, #458, #459, #500): `codemie setup` no longer authenticates to CodeMie
and checks for a project-scoped LiteLLM integration before letting the user
pick a provider. Provider selection is back to a single plain prompt, and
SSOSetupSteps/LiteLLMSetupSteps no longer take a SetupContext for enforced
credentials or session reuse.

- setup.ts: drop detectLiteLLMEnforcement, CODEMIE_BACKED_PROVIDERS,
  isPromptAbortError; provider selection is one inquirer prompt again.
- types.ts: remove SetupContext and CodeMieSetupSession; getCredentials()
  back to its original 1-arg signature.
- codemie-auth-helpers.ts: promptForCodeMieUrl back to its 2-param signature.
- sso.setup-steps.ts / litellm.setup-steps.ts: always prompt fresh, no
  enforced-integration banner, no session reuse.
- Delete the two test files created solely to cover the reverted feature;
  trim the allowEmpty-specific assertions from codemie-auth-helpers.test.ts.
- agent-setup.test.ts: drop the enforcement-gate PTY step so the e2e test
  matches the restored plain SSO flow. This file also carries a pre-existing,
  unrelated workspace-field alignment (007 migration) that predates this
  change and was not authored here.

Kept intact: the unrelated displaySetupInstructions removal and the
fetchModels stale-list fix from #500/#491.
Collapses the npm test-script surface to exactly two entry points:
npm test runs the full local suite (unit + cli + agent, sequentially,
same suite the release process runs), and npm run ci is the CI/release
gate (license-check + lint + build + unit + cli, no live credentials
needed). test:coverage/test:watch/test:ui stay as-is (different modes,
not duplicate suite selectors).

Removed as redundant: test:unit, test:integration, test:integration:cli,
test:integration:vscode-models, test:integration:agent, test:run,
test:all. None had a functional consumer left after inlining ci's test
steps directly and pointing scoped/manual runs at
npx vitest run --project unit|cli|agent instead.

Updated every live reference so nothing points at a removed script name:
CONTRIBUTING.md, tests/README.md, the quality-gates/development-practices/
testing-patterns guides, the qa-lead agent, the codemie-release skill,
docs/COMMANDS.md, agent-build-setup.ts, and the per-test "Run with:"
header comments across tests/integration/agent-*.test.ts and
proxy-daemon-lifecycle.test.ts.

Also fixed scripts/release.sh, which shelled out to
npm run test:integration:agent directly as its pre-tag release gate,
repointed to npx vitest run --project agent so the release flow keeps
working.

agent-model.test.ts is committed separately: staging it alongside these
runs its live SSO agent-model test via lint-staged, which is flaky
(known upstream transcript-persistence gap, #523)
and kept blocking this commit.
The CI test-ubuntu/test-windows jobs still called npm run test:unit and
npm run test:integration, both removed by the prior test-script
simplification commit — CI failed with "Missing script: test:unit".
Repoint at npx vitest run --project unit / --project cli, matching what
npm run ci now runs directly.
@8nevil8
8nevil8 merged commit d7097a2 into main Sep 3, 2026
5 checks passed
@8nevil8
8nevil8 deleted the chore/revert-litellm-setup-enforcement-and-simplify-tests branch September 3, 2026 15:17
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.

2 participants