I want to show:
$$ A \cong T \times A $$
so for that I wanted to do $f;g = 1_A$ and $g;f = 1_{T \times A}$. The first one is easy $f;g = 1_A$ because we know $T \times A$ is a limit so for any other cone $(C,\{\gamma_A,\gamma_T\})$ of the disconnected objects $T$,$A$ we have the factorization:
$$ \gamma_A = f;g$$
in particular for $\gamma_A = 1_A$. So it works.
But how do we show the other direction? I assume something to do with the fact that $T$ is terminal (i.e. admits unique morphisms to it from any object) but this simple fact is escaping me right now. Any idea?
Here's the brute-force approach I mentioned in the comments. This is definitely not the slickest way.
Let $\pi_i : A_1\times A_2\to A_i$ be projections of the product $A_1\times A_2$. Let $\langle f,g\rangle : B\to A_1\times A_2$ where $f: B\to A_1$ and $g : B\to A_2$ be the unique morphism (for any $B$, $f$, and $g$) whose existence is guaranteed by the universal property. The universal property can then be stated as: $\pi_i\circ\langle f_1,f_2\rangle = f_i$ and $\langle \pi_1\circ g,\pi_2\circ g\rangle = g$ for any pair of arrows $f_i: B\to A_i$ for any $B$ and any $g : C \to A_1\times A_2$ and any $C$.
Let $1$ be a terminal object and $!_A : A\to 1$ be the unique morphism (for each $A$) whose existence is guaranteed by the universal property of terminal objects. The universal property can then be stated as: $!_A = f$ for any $f : A\to 1$ for any $A$.
Claim: $\pi_2 : 1\times A \to A$ and $\langle !_A,id_A\rangle : A\to 1\times A$ form an isomorphism, i.e. are mutually inverse. We need to show $$\begin{align}\pi_2\circ\langle!_A,id_A\rangle & = id_A\qquad \text{ and }\\ \langle !_A,id_A\rangle\circ\pi_2 & = id_{1\times A}\end{align}$$ The first holds immediately via the universal property for products. For the second, we use the second part of the universal property of products which implies that if $\pi_i\circ f=\pi_i\circ g$ for $i\in\{1,2\}$ then $f=g$. (Why?) Let's try to prove $$\begin{align}\pi_1\circ\langle !_A,id_A\rangle\circ\pi_2 & = \pi_1\circ id_{1\times A}\\ \pi_2\circ\langle !_A,id_A\rangle\circ\pi_2 & = \pi_2\circ id_{1\times A}\end{align}$$ The second immediately follows from the universal property for products. For the former we get $$\begin{align}\pi_1\circ\langle !_A,id_A\rangle\circ\pi_2 & = {!_A}\circ \pi_2 \\ & = {!_{1\times A}} \\ & = \pi_1 \\ & = \pi_1\circ id_{1\times A}\\\end{align}$$ The $!_A\circ\pi_2 = {!_{1\times A}}$ and $!_{1\times A} = \pi_1$ both used the universal property of terminal objects. As mentioned, we finish by using the universal property of $1\times A$ to get $$\begin{align}\langle\pi_1\circ\langle!_A,id_A\rangle\circ\pi_2,\pi_2\circ\langle!_A,id_A\rangle\circ\pi_2\rangle & =\langle\pi_1\circ id_{1\times A},\pi_2\circ id_{1\times A}\rangle\\ & = id_{1\times A}\end{align}$$