mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
fix: follow up prompt preservation changes (#292)
* fix: remove unused disabled prop, throttle SW update checks, precache icon * fix: retract transient send error and restored prompt once server confirms send When a long-running prompt request drops (gateway timeout or network error) while the agent is actually working, the send error banner and the restored prompt text were left in place. Tag send errors as 'network' and clear them when the server confirms session activity (message.updated / session.idle), also clearing the restored input text. Genuine server-reported session errors (kind 'session') are preserved. * style: restyle ErrorBanner with neutral card fill and destructive accent bar Replace the all-red destructive Alert variant (transparent background, full red text) with a neutral card-filled banner, a left destructive accent bar, red icon, foreground title, and muted body/detail text. Improves the send-error and git-error banners on the dark theme.
This commit is contained in:
1 parent
71ba7371bc
commit
8d93f2f1f9
11 files changed
+215
-31
No files matched your search
@@ -5,7 +5,12 @@ import type { Plugin } from "vite";
|
||||
|
||||
const SW_FILENAME = "sw.js";
|
||||
const PRECACHE_DIR_PREFIXES = ["assets/"];
|
||||
const PRECACHE_ROOT_FILES = ["index.html", "manifest.json", "favicon.svg"];
|
||||
const PRECACHE_ROOT_FILES = [
|
||||
"index.html",
|
||||
"manifest.json",
|
||||
"favicon.svg",
|
||||
"icons/icon-192x192.png",
|
||||
];
|
||||
|
||||
async function collectFiles(dir: string, base = dir): Promise<string[]> {
|
||||
const entries = await readdir(dir, { withFileTypes: true });
|
||||
|
||||
Reference in new issue
Block a user