The war will continue until one side (most likely the Ukrainians) or both sides are exhausted or conclude they cannot gain any more gains through military action.
The war continues—until one side, more likely the Ukrainians, or both are exhausted or conclude that it cannot make more gains through military action. The war continues—until one side, more likely the Ukrainians, or both are exhausted or conclude that it cannot make more gains through military action.
The war will continue until one side (most likely the Ukrainians) or both sides are exhausted or conclude they cannot gain any more gains through military action.