From 726107729e6ac57d3412e33183ba07e2bf5e5517 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 19:30:25 -0500 Subject: [PATCH] test(core): align Code Mode catalog scope assertions (#47169) Co-authored-by: rekram1-node --- packages/core/test/codemode/catalog.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/test/codemode/catalog.test.ts b/packages/core/test/codemode/catalog.test.ts index e60a713d405..45906b27102 100644 --- a/packages/core/test/codemode/catalog.test.ts +++ b/packages/core/test/codemode/catalog.test.ts @@ -122,8 +122,8 @@ describe("CodeModeInstructions.render", () => { expect(instructions).toContain(` - ${lookup.signature} // Look up an order by ID`) expect(instructions).not.toContain("## Search") expect(instructions).toContain("The Code Mode tool catalog below is complete.") - expect(instructions).toContain("This catalog is the complete set of tools available within Code Mode.") - expect(instructions).not.toContain("surrounding top-level agent tools") + expect(instructions).toContain("This catalog is the complete set of tools callable inside `execute`.") + expect(instructions).toContain("It does not affect tools exposed directly outside Code Mode.") }) test("adds search guidance when the catalog exceeds the budget", () => { @@ -133,9 +133,9 @@ describe("CodeModeInstructions.render", () => { expect(partial).toContain("## Search") expect(partial).toContain("The Code Mode tool catalog below is partial.") expect(partial).toContain( - "The Code Mode catalog and `search` results are the complete set of tools available within Code Mode.", + "The Code Mode catalog and `search` results are the complete set of tools callable inside `execute`.", ) - expect(partial).not.toContain("surrounding top-level agent tools") + expect(partial).toContain("It does not affect tools exposed directly outside Code Mode.") expect(partial).toContain("- search(input: {") expect(partial).toContain(" /** @integer @exclusiveMinimum 0 */\n limit?: number,") expect(partial).toContain(" /** @integer @minimum 0 */\n offset?: number,")