Skip to content

Commit 26e50a8

Browse files
OpeOginnithdxr
authored andcommitted
fix(TUI): update agent create target path from "/agent" to "/agents" (#14427)
1 parent 31f8ba7 commit 26e50a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/src/cli/cmd/agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const AgentCreateCommand = effectCmd({
8484
// Determine scope/path
8585
let targetPath: string
8686
if (cliPath) {
87-
targetPath = path.join(cliPath, "agent")
87+
targetPath = path.join(cliPath, "agents")
8888
} else {
8989
let scope: "global" | "project" = "global"
9090
if (project.vcs === "git") {
@@ -106,7 +106,7 @@ const AgentCreateCommand = effectCmd({
106106
if (prompts.isCancel(scopeResult)) throw new UI.CancelledError()
107107
scope = scopeResult
108108
}
109-
targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agent")
109+
targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agents")
110110
}
111111

112112
// Get description

0 commit comments

Comments
 (0)