-
Notifications
You must be signed in to change notification settings - Fork 323
Windows shell: title bar overlay height, sidebar spacer, quiet background update checks #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -492,7 +492,10 @@ export function Sidebar() { | |||||||||||||||||
| style={{ WebkitAppRegion: "drag" } as React.CSSProperties} | ||||||||||||||||||
| > | ||||||||||||||||||
| {isElectron ? ( | ||||||||||||||||||
| <div className="w-14" /> | ||||||||||||||||||
| // Reserves room for the macOS traffic lights. Windows has nothing on | ||||||||||||||||||
| // the left — its caption buttons overlay the chat header top-right — | ||||||||||||||||||
| // so reserving 56px there is just a blank gap. | ||||||||||||||||||
| <div className={window.ogb?.platform === "win32" ? "" : "w-14"} /> | ||||||||||||||||||
|
Comment on lines
+495
to
+498
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Restrict the spacer to macOS. Line 498 applies Proposed fix- <div className={window.ogb?.platform === "win32" ? "" : "w-14"} />
+ <div className={window.ogb?.platform === "darwin" ? "w-14" : ""} />📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| ) : ( | ||||||||||||||||||
| <div className="flex items-center gap-2"> | ||||||||||||||||||
| <span className="size-3 rounded-full bg-[#ff5f57]" /> | ||||||||||||||||||
|
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,19 @@ import { useState } from "react"; | |
| import { ArrowDownToLine, RefreshCw, Sparkles, X } from "lucide-react"; | ||
| import { useUpdaterState } from "@/lib/updater"; | ||
|
|
||
| // electron-updater surfaces failures as a whole HTTP dump — status line, | ||
| // every response header, stack trace. That is unreadable in a 300px popup, | ||
| // so name the two cases that actually happen and clip anything else to its | ||
| // first line. | ||
| function friendlyError(message?: string): string { | ||
| if (!message) return "Something went wrong."; | ||
| if (/cannot find .*\.yml|404/i.test(message)) | ||
| return "No update has been published for this platform yet."; | ||
| if (/ENOTFOUND|ECONNREFUSED|ETIMEDOUT|net::/i.test(message)) | ||
| return "Couldn't reach the update server."; | ||
| return message.split("\n")[0].slice(0, 140); | ||
| } | ||
|
|
||
|
Comment on lines
+9
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Apply the normalized error to the settings update row.
🤖 Prompt for AI Agents |
||
| export function UpdateBanner() { | ||
| const s = useUpdaterState(); | ||
| // dismissal is per status+version, so the popup returns for the next | ||
|
|
@@ -31,7 +44,7 @@ export function UpdateBanner() { | |
| ? `${Math.round(s.percent ?? 0)}%` | ||
| : s.status === "downloaded" | ||
| ? "Restart to finish updating." | ||
| : (s.message ?? "Something went wrong."); | ||
| : friendlyError(s.message); | ||
|
|
||
| return ( | ||
| <div className="animate-panel-in fixed bottom-4 left-4 z-50 w-[300px] rounded-xl border border-hairline/40 bg-panel p-3.5 shadow-2xl shadow-black/50"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 50380
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 50380
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 20633
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 41720
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 1566
🏁 Script executed:
Repository: milind-soni/OpenMausBot
Length of output: 273
Track the origin of each active updater operation.
downloadUpdate()emitserrorwhen a download fails. Becauseupdate:downloaddoes not mark the operation as manual, the automatic-check → download sequence resets toidle.checkForUpdates()reuses an in-flight Promise. A timer can setuserInitiated = falsewhile a manual check is pending, which hides its error. Store the origin per active operation, mark manual downloads, and prevent timer checks from changing an active manual origin. Add regression tests for both sequences.🤖 Prompt for AI Agents