perf(panel): cached info and history paint first, lazy markdown up the thread, background prefetch
This commit is contained in:
@@ -5,6 +5,7 @@ import type {
|
||||
LimitWindow,
|
||||
} from "./api/types";
|
||||
import { panelCache } from "./panel/cache";
|
||||
import { browserHost } from "./panel/host";
|
||||
import { ConversationIndex } from "./panel/index.svelte";
|
||||
import { session } from "./session.svelte";
|
||||
|
||||
@@ -23,7 +24,7 @@ class Gateway extends ConversationIndex {
|
||||
jobs = $state<JobsResponse | null>(cache.get<JobsResponse>(JOBS_KEY) ?? null);
|
||||
|
||||
constructor() {
|
||||
super(() => session.client);
|
||||
super(() => session.client, browserHost().cache ?? null);
|
||||
}
|
||||
|
||||
async refreshJobs(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user