Files
ai-agent/frontend/index.html
gabrielvidalandClaude Opus 5.5 7c31e635cc feat(storage): sync dismissals, reply picks, composer picks and toolbar layouts server-side
Audit of the PWA's browser storage; what follows the user now lives in the
per-user ui-state store instead of localStorage:

- Waiting-for-feedback dismissals (ai-agent-dismissed-questions): every
  browser's old local list merged in once, then deleted.
- Home cards get Revoke beside Dismiss; home and the stack above a
  conversation's composer show 4 questions + Show N more / Show less.
- Worker-outage dismissals (ai-agent-dismissed-outages).
- Reply-box picks per conversation (ai-agent-reply-picks, legacy merged).
- Home composer model / thinking / effort per profile (spawnByProfile).
- Composer toolbar arrangements per profile (ai-agent-toolbars, bridged
  through @gabvdl/ui's gabvdl-ui:storage event).
- Theme cached locally (aia.theme) so index.html's pre-paint stops
  flashing the OS scheme (it read a key serverStorage had deleted).
- Reply history pruned to the 100 most recent conversations; dead
  floating-composer keys swept; the unused FloatingComposer removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:25:26 +01:00

46 lines
1.8 KiB
HTML

<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover"
/>
<meta name="theme-color" content="#0a0a0a" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="ai-agent" />
<title>Claude Agent — context</title>
<script>
// Apply the saved (or system) color scheme before first paint to avoid a flash.
// The settings are server-side: this device caches the theme (src/settings.ts
// THEME_CACHE_KEY) for this script.
try {
var t = localStorage.getItem("aia.theme") || "system";
var dark = t === "dark" || (t === "system" &&
window.matchMedia("(prefers-color-scheme: dark)").matches);
document.documentElement.classList.toggle("dark", dark);
} catch (e) {}
// The last visit's palette (accent + surfaces, src/lib/palette.ts), so a
// custom accent never flashes the stylesheet's orange first.
try {
var p = JSON.parse(localStorage.getItem("aia.palette") || "null");
if (p && typeof p.css === "string") {
var st = document.createElement("style");
st.id = "account-theme";
st.textContent = p.css;
document.head.appendChild(st);
var tc = document.querySelector('meta[name="theme-color"]');
if (tc && p.hex) tc.content = p.hex;
}
} catch (e) {}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>