The process in which an immature T cell commits to CD4-positive T cell lineage or the CD8-positive lineage of alpha-beta T cells.
CD4-positive or CD8-positive, alpha-beta T-lymphocyte lineage commitment