mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
fix(TUI): update agent create target path from "/agent" to "/agents" (#14427)
This commit is contained in:
parent
25ecf0af6b
commit
8a797ed9a1
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ const AgentCreateCommand = effectCmd({
|
|||
// Determine scope/path
|
||||
let targetPath: string
|
||||
if (cliPath) {
|
||||
targetPath = path.join(cliPath, "agent")
|
||||
targetPath = path.join(cliPath, "agents")
|
||||
} else {
|
||||
let scope: "global" | "project" = "global"
|
||||
if (project.vcs === "git") {
|
||||
|
|
@ -106,7 +106,7 @@ const AgentCreateCommand = effectCmd({
|
|||
if (prompts.isCancel(scopeResult)) throw new UI.CancelledError()
|
||||
scope = scopeResult
|
||||
}
|
||||
targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agent")
|
||||
targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agents")
|
||||
}
|
||||
|
||||
// Get description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue