Standard problem.
Say we have an optimal control problem with the following state variables $$ \begin {align} &\min_{u_t} \int_0^\infty C(t,x_t)\,dt, \text { subject to } \\ &\dot x_t=f(x_t,y_t,u_t)\\ &\dot y_t = g(u_t)\\ &0\leq u_t\leq F(t)\\ &x_0=a, y_0=b \text { as given.} \end{align} $$
For some given functions $f(\cdot ), g(\cdot ), F(\cdot ), C(\cdot)$
This is just a standard optimal control problem.
Adjusted problem.
However! If we add the additional assumption, namely an additional constraint, that at some given time $T$, $x_T$ is reset to constant $a$, without requiring that $x_t$ be continuous at $T$. In other words we discontinuously force $x_T$ to be equal to a certain constant, without constraining the solution in any other way (i.e. at $T-\epsilon$ for infinitessimal $\epsilon$, $x$ may have a value far greater or smaller than $a$, so that $x_T$ will likely be discontinuous at $T$). However, we do not do the same for $y_t$.
The difficulty is, that since we do not put the same constraint on $y$ ($y$ remains continuous at time $T$, and is not "reset" as $x$ is), we cannot simply "split" the problem in two parts, since the ODE of $y$ will cause there to be a dependency between the two parts. (meaning, the way we optimize the first part, will change the value of $y_T$, and thereby influence the second part).
Then how do we solve the minimization problem with this added assumption?
I am not sure how to approach this problem.