feat(dogfood-wave1): Studio retries, Chat error, LLM gateway, kill snapshot, topbar cleanup (#14)
build-and-publish / test (push) Has been cancelled
build-and-publish / image (push) Has been cancelled

This commit was merged in pull request #14.
This commit is contained in:
2026-06-15 14:30:04 +00:00
parent 601429ea89
commit d5a9c81b9c
17 changed files with 513 additions and 185 deletions
+6 -13
View File
@@ -14,8 +14,7 @@ export default function CommandBar() {
const scenarioId = useApp((s) => s.scenarioId);
const pushRecent = useApp((s) => s.pushRecent);
const scenarios = useApp((s) => s.scenarios);
const mode = useApp((s) => s.mode);
const setMode = useApp((s) => s.setMode);
const refreshLive = useApp((s) => s.refreshLive);
const startInstance = useApp((s) => s.startInstance);
const executeAction = useApp((s) => s.executeAction);
@@ -50,7 +49,7 @@ export default function CommandBar() {
const close = () => setOpen(false);
const canActLive = mode === "live" && actor?.user_id && sc?.live && sc.headlineTx;
const canActLive = !!actor?.user_id && sc?.live && sc.headlineTx;
const firstActionId = sc?.steps.find((s) => s.state === "running")?.actions?.[0]?.id;
return (
@@ -137,15 +136,9 @@ export default function CommandBar() {
</Command.Group>
<Command.Group heading="Preferences">
{mode === "live" ? (
<Command.Item onSelect={() => { refreshLive(); close(); }}>
<Refresh size={13} /> Refresh live data
</Command.Item>
) : (
<Command.Item onSelect={() => { setMode("live"); close(); }}>
<Refresh size={13} /> Switch to live mode
</Command.Item>
)}
<Command.Item onSelect={() => { refreshLive(); close(); }}>
<Refresh size={13} /> Refresh live data
</Command.Item>
<Command.Item onSelect={() => { setTheme(theme === "dark" ? "light" : "dark"); close(); }}>
<Cog size={13} /> Switch to {theme === "dark" ? "light" : "dark"} theme
</Command.Item>
@@ -160,7 +153,7 @@ export default function CommandBar() {
<Command.Item
onSelect={async () => {
close();
if (mode !== "live") { pushToast("warn", "Switch to live mode to start a real instance."); return; }
if (!actor?.user_id) { pushToast("warn", "Sign in to start a real instance."); return; }
await startInstance(sc.defKey, `Started via Mission Control · ${new Date().toLocaleString()}`);
}}
>