Skip to content

Commit 5f90153

Browse files
committed
style(agent): apply oxfmt formatting to CL-8310 files
1 parent 4dedafd commit 5f90153

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
@@ -424,14 +424,24 @@ describe("gpt narrate-before-tools residual (CL-8310)", () => {
424424
});
425425

426426
it("is absent on grok and claude prompts", () => {
427-
const grokLeaf = buildSubAgentSystemPrompt(undefined, undefined, undefined, {
428-
orchestrator: false,
429-
grokAntiThrash: true,
430-
});
431-
const claudeLeaf = buildSubAgentSystemPrompt(undefined, undefined, undefined, {
432-
orchestrator: false,
433-
grokAntiThrash: false,
434-
});
427+
const grokLeaf = buildSubAgentSystemPrompt(
428+
undefined,
429+
undefined,
430+
undefined,
431+
{
432+
orchestrator: false,
433+
grokAntiThrash: true,
434+
},
435+
);
436+
const claudeLeaf = buildSubAgentSystemPrompt(
437+
undefined,
438+
undefined,
439+
undefined,
440+
{
441+
orchestrator: false,
442+
grokAntiThrash: false,
443+
},
444+
);
435445
const claudePrimary = buildChatSystemPrompt(
436446
undefined,
437447
undefined,

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

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

156156
test("matches gpt-* model ids on any provider", () => {
157-
expect(
158-
isGptProvider({ providerName: "openai", model: "gpt-5.5" }),
159-
).toBe(true);
157+
expect(isGptProvider({ providerName: "openai", model: "gpt-5.5" })).toBe(
158+
true,
159+
);
160160
expect(
161161
isGptProvider({ providerName: "opencode-go", model: "gpt-5.1" }),
162162
).toBe(true);

‎src/subagent/provider-family.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ export function isGptProvider(input: {
5050
model?: string;
5151
}): boolean {
5252
const name = input.providerName.toLowerCase();
53-
if (
54-
isCodexProviderName(name) ||
55-
name === "codex" ||
56-
name.includes("codex")
57-
)
53+
if (isCodexProviderName(name) || name === "codex" || name.includes("codex"))
5854
return true;
5955
if (input.model !== undefined && /^gpt-/i.test(input.model.trim()))
6056
return true;

0 commit comments

Comments
 (0)