Skip to content

Commit 044c60d

Browse files
committed
style(agent): apply oxfmt formatting to CL-8310 files
1 parent d4fd3b1 commit 044c60d

3 files changed

Lines changed: 22 additions & 16 deletions

File tree

‎src/agent/prompts.test.ts‎

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,24 @@ describe("gpt narrate-before-tools residual (CL-8310)", () => {
506506
});
507507

508508
it("is absent on grok and claude prompts", () => {
509-
const grokLeaf = buildSubAgentSystemPrompt(undefined, undefined, undefined, {
510-
orchestrator: false,
511-
grokAntiThrash: true,
512-
});
513-
const claudeLeaf = buildSubAgentSystemPrompt(undefined, undefined, undefined, {
514-
orchestrator: false,
515-
grokAntiThrash: false,
516-
});
509+
const grokLeaf = buildSubAgentSystemPrompt(
510+
undefined,
511+
undefined,
512+
undefined,
513+
{
514+
orchestrator: false,
515+
grokAntiThrash: true,
516+
},
517+
);
518+
const claudeLeaf = buildSubAgentSystemPrompt(
519+
undefined,
520+
undefined,
521+
undefined,
522+
{
523+
orchestrator: false,
524+
grokAntiThrash: false,
525+
},
526+
);
517527
const claudePrimary = buildChatSystemPrompt(
518528
undefined,
519529
undefined,

‎src/subagent/provider-family.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ describe("isGptProvider (CL-8310)", () => {
215215
});
216216

217217
test("matches gpt-* model ids on any provider", () => {
218-
expect(
219-
isGptProvider({ providerName: "openai", model: "gpt-5.5" }),
220-
).toBe(true);
218+
expect(isGptProvider({ providerName: "openai", model: "gpt-5.5" })).toBe(
219+
true,
220+
);
221221
expect(
222222
isGptProvider({ providerName: "opencode-go", model: "gpt-5.1" }),
223223
).toBe(true);

‎src/subagent/provider-family.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ export function isGptProvider(input: {
6262
model?: string;
6363
}): boolean {
6464
const name = input.providerName.toLowerCase();
65-
if (
66-
isCodexProviderName(name) ||
67-
name === "codex" ||
68-
name.includes("codex")
69-
)
65+
if (isCodexProviderName(name) || name === "codex" || name.includes("codex"))
7066
return true;
7167
if (input.model !== undefined && /^gpt-/i.test(input.model.trim()))
7268
return true;

0 commit comments

Comments
 (0)