feat: add file tabs and improve terminal rendering with WebGL

This commit is contained in:
Mohamed Boudra
2026-03-02 20:02:54 +07:00
parent 92b5f1e963
commit f418f3ab02
25 changed files with 1214 additions and 696 deletions
@@ -4,7 +4,8 @@ import { createJSONStorage, persist } from "zustand/middleware";
export type WorkspaceTabTarget =
| { kind: "agent"; agentId: string }
| { kind: "terminal"; terminalId: string };
| { kind: "terminal"; terminalId: string }
| { kind: "file"; path: string };
function normalizeKeys(keys: string[]): string[] {
const seen = new Set<string>();
@@ -50,6 +51,10 @@ function normalizeWorkspaceTab(
}
return { kind: "terminal", terminalId };
}
if (value.kind === "file") {
// File tabs are session-only; do not persist in workspace tab memory.
return null;
}
return null;
}