fix(tui): label worktree copy as session location

This commit is contained in:
opencode-agent[bot] 2026-06-10 05:03:26 +00:00
commit 8385cc2f44

View file

@ -579,15 +579,15 @@ function App(props: { onSnapshot?: () => Promise<string[]>; pluginHost: TuiPlugi
}, },
{ {
name: "workspace.copy_path", name: "workspace.copy_path",
title: "Copy worktree path", title: "Copy session location",
category: "Workspace", category: "Session",
enabled: () => currentWorktreeWorkspace() !== undefined, enabled: () => currentWorktreeWorkspace() !== undefined,
run: async () => { run: async () => {
const workspace = currentWorktreeWorkspace() const workspace = currentWorktreeWorkspace()
if (!workspace?.directory) return if (!workspace?.directory) return
await clipboard await clipboard
.write?.(workspace.directory) .write?.(workspace.directory)
.then(() => toast.show({ message: "Copied worktree path", variant: "info" })) .then(() => toast.show({ message: "Copied session location", variant: "info" }))
.catch(toast.error) .catch(toast.error)
dialog.clear() dialog.clear()
}, },