feat(terminal): focus terminal on click fix(vite): update API proxy path to avoid frontend route conflicts