Skip to content

Commit f57cfc2

Browse files
committed
sync(bfmono): fix(gambit): exclude .codex from Build file listing (+19 more) (bfmono@591734506)
This PR is an automated gambitmono sync of bfmono Gambit packages. - Source: `packages/gambit/` - Core: `packages/gambit/packages/gambit-core/` - bfmono rev: 591734506 Changes: - 591734506 fix(gambit): exclude .codex from Build file listing - 4fe56b200 chore(gambit): cut 0.8.5-rc.12 - 2bfffaaae fix(gambit): add codex trust preflight for workbench chat - 9c16505d6 chore(gambit): cut 0.8.5-rc.11 - b4d5cdaef fix(simulator-ui): prevent feedback reason text from being clobbered - 84952a652 fix(gambit-verify): align verify turn labels and stabilize initial run filtering - c56b7f52f feat(gambit): improve verify report controls and harden concurrent calibrate persistence - beb9435c0 feat(gambit-simulator-ui): extend listbox trigger and popover options - 25f9fdcfc fix(gambit-simulator-ui): align verify outlier chip semantics and display - a010b0ee1 feat(gambit-simulator-ui): add verify outliers to workbench chat chips - 383f2500a refactor(simulator-ui): replace nested ternaries in main routing - 13c4c8c22 fix(gambit): preserve shared references in safe session serialization - ae392aa24 feat(gambit-simulator-ui): add grader error chips to workbench chat - 1de6b335c fix(gambit): clamp deck-level maxTurns bounds in test run selection - 01d7abbb9 fix(gambit): default verify tab bootstrap flag to enabled - f3d186c7b fix(gambit): include extension schemas in exports and default serve to restored workspace - a83b7cbe7 fix(gambit): move unbounded build timeout to deck opt-in - acb2de627 fix(gambit): avoid strict json_schema 400s in openrouter responses - 8aba573b6 fix(gambit-simulator-ui): treat errored calibrate runs as failed - ca2028cf8 fix(gambit): prevent circular trace crashes in workspace test run API Do not edit this repo directly; make changes in bfmono and re-run the sync.
1 parent aead9d6 commit f57cfc2

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ export function startWebSocketSimulator(opts: {
17331733
const entries: Array<BuildBotFileEntry> = [];
17341734
const shouldSkipRelativePath = (relativePath: string) => {
17351735
const segments = relativePath.split(/\\|\//g).filter(Boolean);
1736-
return segments.includes(".gambit");
1736+
return segments.includes(".gambit") || segments.includes(".codex");
17371737
};
17381738
const walk = async (dir: string, relativePrefix: string) => {
17391739
for await (const entry of Deno.readDir(dir)) {

src/server_routes_state.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Deno.test("build API errors are persisted to session errors sidecar", async () =
151151
await server.finished;
152152
});
153153

154-
Deno.test("build files API excludes .gambit directory entries", async () => {
154+
Deno.test("build files API excludes .gambit and .codex directory entries", async () => {
155155
const dir = await Deno.makeTempDir();
156156
const modHref = modImportPath();
157157

@@ -213,6 +213,12 @@ Deno.test("build files API excludes .gambit directory entries", async () => {
213213
path.join(root, ".gambit", "nested", "also-hidden.txt"),
214214
"secret",
215215
);
216+
await Deno.mkdir(path.join(root, ".codex", "nested"), { recursive: true });
217+
await Deno.writeTextFile(path.join(root, ".codex", "hidden.txt"), "secret");
218+
await Deno.writeTextFile(
219+
path.join(root, ".codex", "nested", "also-hidden.txt"),
220+
"secret",
221+
);
216222
await Deno.writeTextFile(path.join(root, "visible.txt"), "visible");
217223
await Deno.mkdir(path.join(root, "scenarios", "scenario_a"), {
218224
recursive: true,
@@ -245,6 +251,10 @@ Body
245251
paths.some((value) => value === ".gambit" || value.startsWith(".gambit/")),
246252
false,
247253
);
254+
assertEquals(
255+
paths.some((value) => value === ".codex" || value.startsWith(".codex/")),
256+
false,
257+
);
248258
const scenarioPrompt = (refreshedBody.entries ?? []).find((entry) =>
249259
entry.path === "scenarios/scenario_a/PROMPT.md"
250260
);

0 commit comments

Comments
 (0)