Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

fix(tui): clear the "Starting probe proxy…" status after the test starts

Jack Rudenko9abab244f5bf
diff --git a/packages/cli/src/tui/App.probe-status.test.ts b/packages/cli/src/tui/App.probe-status.test.ts
new file mode 100644
index 00000000..141220f4
--- /dev/null
+++ b/packages/cli/src/tui/App.probe-status.test.ts
@@ -0,0 +1,23 @@
+// REGRESSION: The probe proxy startup status remained after the proxy was ready — /dev:fix session dev-fix-20261020-235500-vtx01
+import { describe, expect, test } from "bun:test";
+import { nextStatusAfterProbeReady } from "./App.js";
+
+describe("nextStatusAfterProbeReady", () => {
+ test("clears the exact proxy startup status", () => {
+ expect(nextStatusAfterProbeReady("Starting probe proxy…")).toBeNull();
+ });
+
+ test("preserves a newer status message", () => {
+ expect(nextStatusAfterProbeReady("Project saved.")).toBe("Project saved.");
+ });
+
+ test("preserves a similar but different status message", () => {
+ expect(nextStatusAfterProbeReady("Starting probe proxy… failed")).toBe(
+ "Starting probe proxy… failed"
+ );
+ });
+
+ test("leaves an empty status unchanged", () => {
+ expect(nextStatusAfterProbeReady(null)).toBeNull();
+ });
+});
diff --git a/packages/cli/src/tui/App.tsx b/packages/cli/src/tui/App.tsx
index 06ce99e6..36e5a1e3 100644
--- a/packages/cli/src/tui/App.tsx
+++ b/packages/cli/src/tui/App.tsx
@@ -171,6 +171,10 @@ interface AppProps {
requestLogin?: (action: ProviderLoginAction) => void;
}
+export function nextStatusAfterProbeReady(current: string | null): string | null {
+ return current === "Starting probe proxy…" ? null : current;
+}
+
/**
* Resolve a batch of 1Password entries into an `{ENV_VAR: secret}` map.
*
@@ -1346,6 +1350,7 @@ export function App({ requestLogin }: AppProps = {}) {
// in memory; the request path itself never prompts.
if (prov.catalogName === "meta-muse-code") await prepareMuseLoginForTuiAction();
const proxyUrl = await ensureProbeProxy();
+ setStatusMsg(nextStatusAfterProbeReady);
const catalogModel = getProbeModel(prov.catalogName);
// Models that already failed this round — passed to discovery so we
// get the NEXT candidate, not the same one again.