Skip to content

Expand backend switching test coverage#73

Merged
DorianZheng merged 1 commit into
mainfrom
codex/dynamic-backend-model-switching
Apr 29, 2026
Merged

Expand backend switching test coverage#73
DorianZheng merged 1 commit into
mainfrom
codex/dynamic-backend-model-switching

Conversation

@DorianZheng

Copy link
Copy Markdown
Member

Summary

  • Add focused E2E coverage for user-turn backend handoff consumption, partial handoff fallback, failed first post-switch runs, and stale old-backend completions after a mid-run switch.
  • Add scheduled-task E2E coverage for group-context handoff consumption and stale scheduled completions after backend switches.
  • Extend UT coverage for registry migration, model override clearing, fresh-context switches, unstarted/no-group switches, invalid backend updates, recent-message filtering, handoff destination scoping, and runner model normalization.

Impact

This closes the remaining coverage gaps around dynamic backend/model switching without duplicating the existing happy-path assertions from the original implementation PR.

Validation

  • npm run typecheck
  • npx vitest run src/agent/backend.test.ts src/agent/agentlite-impl.test.ts src/db.test.ts src/agent/backend-handoff.test.ts src/agent/backend-switching.e2e.test.ts src/sdk-types.test.ts src/container-runner.test.ts src/container-agent-backend.test.ts src/task-scheduler.test.ts src/task-lifecycle.test.ts
  • npm run build in container/agent-runner
  • Changed-file eslint check for the new/modified test files passed with no errors.

@DorianZheng DorianZheng marked this pull request as ready for review April 29, 2026 10:26
@DorianZheng DorianZheng merged commit 786258a into main Apr 29, 2026
2 checks passed
@DorianZheng DorianZheng deleted the codex/dynamic-backend-model-switching branch April 29, 2026 10:27
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.

1 participant