Просмотр исходного кода

fix(cli): clarify debug config output (#42860)

Co-authored-by: Dax Raad <d@ironbay.co>
opencode-agent[bot] 9 часов назад
Родитель
Сommit
7731d1235d
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      packages/cli/src/commands/commands.ts
  2. 2 1
      packages/cli/test/debug-config.test.ts

+ 1 - 1
packages/cli/src/commands/commands.ts

@@ -71,7 +71,7 @@ const Root = Spec.make(typeof OPENCODE_CLI_NAME === "string" ? OPENCODE_CLI_NAME
       description: "Debugging and troubleshooting tools",
       description: "Debugging and troubleshooting tools",
       commands: [
       commands: [
         Spec.make("agents", { description: "List all agents" }),
         Spec.make("agents", { description: "List all agents" }),
-        Spec.make("config", { description: "Show resolved configuration" }),
+        Spec.make("config", { description: "List configuration sources" }),
       ],
       ],
     }),
     }),
     Spec.make("console", {
     Spec.make("console", {

+ 2 - 1
packages/cli/test/debug-config.test.ts

@@ -10,9 +10,10 @@ describe("debug config command", () => {
 
 
     expect(debug.exitCode).toBe(0)
     expect(debug.exitCode).toBe(0)
     expect(debug.stdout).toContain("config")
     expect(debug.stdout).toContain("config")
-    expect(debug.stdout).toContain("Show resolved configuration")
+    expect(debug.stdout).toContain("List configuration sources")
     expect(config.exitCode).toBe(0)
     expect(config.exitCode).toBe(0)
     expect(config.stdout).toContain("opencode debug config [flags]")
     expect(config.stdout).toContain("opencode debug config [flags]")
+    expect(config.stdout).toContain("List configuration sources")
   })
   })
 
 
   test("prints config entries from the invoking directory without reordering permissions", async () => {
   test("prints config entries from the invoking directory without reordering permissions", async () => {