refactor: harden browser runtime profile handling

This commit is contained in:
Peter Steinberger
2026-03-09 00:25:29 +00:00
committed by Vincent Koc
parent 7875fb6c27
commit 4b694d565d
53 changed files with 790 additions and 270 deletions

View File

@@ -13,6 +13,10 @@ export type ProfileRuntimeState = {
running: RunningChrome | null;
/** Sticky tab selection when callers omit targetId (keeps snapshot+act consistent). */
lastTargetId?: string | null;
reconcile?: {
previousProfile: ResolvedBrowserProfile;
reason: string;
} | null;
};
export type BrowserServerState = {
@@ -56,6 +60,8 @@ export type ProfileStatus = {
tabCount: number;
isDefault: boolean;
isRemote: boolean;
missingFromConfig?: boolean;
reconcileReason?: string | null;
};
export type ContextOptions = {