South Korean stocks climbed to a record, powered by chipmakers as the artificial intelligence trade regained momentum and optimism reemerged about a US-Iran peace deal.