Skip to content

Commit 95255cb

Browse files
authored
🤖 fix: remove duplicate build date from version tooltip (#1706)
The version tooltip was showing two lines for the build time: - `Built: 01/16/2026` (date only) - `Built at: January 16, 2026, 04:35:44 PM PST` (full timestamp) This removes the redundant date-only line, keeping only the more precise timestamp. **Before:** ``` Current: v0.12.2-77-g8e179055 Built: 01/16/2026 Built at: January 16, 2026, 04:35:44 PM PST ``` **After:** ``` Current: v0.12.2-77-g8e179055 Built: January 16, 2026, 04:35:44 PM PST ``` --- _Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high` • Cost: `$0.33`_
1 parent 8e17905 commit 95255cb

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/browser/components/TitleBar.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ function hasBuildInfo(value: unknown): value is VersionMetadata {
3232
return typeof candidate.buildTime === "string";
3333
}
3434

35-
function formatLocalDate(isoDate: string): string {
36-
const date = new Date(isoDate);
37-
return date.toLocaleDateString(undefined, {
38-
year: "numeric",
39-
month: "2-digit",
40-
day: "2-digit",
41-
});
42-
}
43-
4435
function formatExtendedTimestamp(isoDate: string): string {
4536
const date = new Date(isoDate);
4637
return date.toLocaleString("en-US", {
@@ -60,22 +51,20 @@ function parseBuildInfo(version: unknown) {
6051
const gitDescribe = typeof git_describe === "string" ? git_describe : undefined;
6152

6253
return {
63-
buildDate: formatLocalDate(buildTime),
6454
extendedTimestamp: formatExtendedTimestamp(buildTime),
6555
gitDescribe,
6656
};
6757
}
6858

6959
return {
70-
buildDate: "unknown",
7160
extendedTimestamp: "Unknown build time",
7261
gitDescribe: undefined,
7362
};
7463
}
7564

7665
export function TitleBar() {
7766
const { api } = useAPI();
78-
const { buildDate, extendedTimestamp, gitDescribe } = parseBuildInfo(VERSION satisfies unknown);
67+
const { extendedTimestamp, gitDescribe } = parseBuildInfo(VERSION satisfies unknown);
7968
const [updateStatus, setUpdateStatus] = useState<UpdateStatus>({ type: "idle" });
8069
const [isCheckingOnHover, setIsCheckingOnHover] = useState(false);
8170
const lastHoverCheckTime = useRef<number>(0);
@@ -172,11 +161,7 @@ export function TitleBar() {
172161

173162
const getUpdateTooltip = () => {
174163
const currentVersion = gitDescribe ?? "dev";
175-
const lines: React.ReactNode[] = [
176-
`Current: ${currentVersion}`,
177-
`Built: ${buildDate}`,
178-
`Built at: ${extendedTimestamp}`,
179-
];
164+
const lines: React.ReactNode[] = [`Current: ${currentVersion}`, `Built: ${extendedTimestamp}`];
180165

181166
if (!window.api) {
182167
lines.push("Desktop updates are available in the Electron app only.");

0 commit comments

Comments
 (0)