Skip to content

Commit 505544f

Browse files
committed
sync(bfmono): fix(simulator-ui): guard build chat debug localStorage access (+19 more) (bfmono@787990fb4)
This PR is an automated gambitmono sync of bfmono Gambit packages. - Source: `packages/gambit/` - Core: `packages/gambit/packages/gambit-core/` - bfmono rev: 787990fb4 Changes: - 787990fb4 fix(simulator-ui): guard build chat debug localStorage access - 5a334c91e chore(gambit): apply formatter output for verify follow-up code - 055fb7532 fix(gambit): address verify batch review feedback on worker wakeups - 9b0530699 fix(gambit): honor verify concurrency with parallel scenario producers - 52df53fb0 fix(gambit): pipeline verify grading to reduce burst/pause stalls - ff50dc624 fix(gambit): stream verify request progress during scenario generation - 88beeec68 fix(gambit): await scenario completion in verify batches - 590cf89b1 feat(gambit): restore full verify mutation cache payload - f28a21384 chore(gambit): regenerate verify isograph artifacts - 633e341c3 feat(gambit): migrate verify tab to scenario/repeat controls - 7770666b6 feat(gambit): unify verify backend execution model - 2a0e3fa5c fix(gambit): prevent React type-only import rewrites from breaking npm build - acb0e2868 feat(gambit): add conversation session graphql lifecycle - 3a995b3ba fix(gambit): restore simulator-ui dnt react typecheck - 715b43ad5 fix(gambit-publish): pin JSX runtime specifier for JSR canary publish - ecfc74407 fix(gambit-ci): rewrite core imports for isolated publish parity dry-run - 4cfe995c4 fix(gambit-ci): run publish dry-run in isolated package copy - 20313b751 fix(ci): restore gambit mirror auto-merge and gate binary dispatch by new tags - 5aa44451e ci(gambit): add publish dry-run to downstream parity suite - 48acb857f fix(gambit): include simulator-ui in JSR publish scope Do not edit this repo directly; make changes in bfmono and re-run the sync.
1 parent b73e439 commit 505544f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

simulator-ui/isograph/components/WorkspaceConversationRun/WorkbenchConversationRunChat.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ function isBuildChatDebugEnabled(): boolean {
4545
const value = new URLSearchParams(search).get("gambitBuildChatDebug");
4646
if (value === "1" || value === "true") return true;
4747
}
48-
if (typeof globalThis.localStorage === "undefined") return false;
49-
const stored = (globalThis.localStorage.getItem("gambit:build-chat-debug") ??
50-
"").toLowerCase().trim();
48+
let stored = "";
49+
try {
50+
stored = (globalThis.localStorage?.getItem("gambit:build-chat-debug") ?? "")
51+
.toLowerCase()
52+
.trim();
53+
} catch {
54+
return false;
55+
}
5156
return stored === "1" || stored === "true" || stored === "yes";
5257
}
5358

0 commit comments

Comments
 (0)