The best way to control Claude Code, Codex and more from any computer or phone
fix(web): add project path action to sidebar menu (#1436)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Fllip committed
Mar 28, 2026 at 19:56 UTC
ce463a5360ab4a2426d9744d830266d3ef7f4410
1 file changed
+12
-4
apps/web/src/components/Sidebar.tsx
+12
-4
@@ -818,15 +818,22 @@ export default function Sidebar() {
818
async (projectId: ProjectId, position: { x: number; y: number }) => {
819
const api = readNativeApi();
820
if (!api) return;
821
+ const project = projects.find((entry) => entry.id === projectId);
822
+ if (!project) return;
823
+
824
const clicked = await api.contextMenu.show(
822
- [{ id: "delete", label: "Remove project", destructive: true }],
825
+ [
826
+ { id: "copy-path", label: "Copy Project Path" },
827
+ { id: "delete", label: "Remove project", destructive: true },
828
+ ],
829
position,
830
);
831
+ if (clicked === "copy-path") {
832
+ copyPathToClipboard(project.cwd, { path: project.cwd });
833
+ return;
834
+ }
835
if (clicked !== "delete") return;
836
827
- const project = projects.find((entry) => entry.id === projectId);
828
- if (!project) return;
829
-
837
const projectThreads = threads.filter((thread) => thread.projectId === projectId);
838
if (projectThreads.length > 0) {
839
toastManager.add({
@@ -864,6 +871,7 @@ export default function Sidebar() {
871
[
872
clearComposerDraftForThread,
873
clearProjectDraftThreadId,
874
+ copyPathToClipboard,
875
getDraftThreadByProjectId,
876
projects,
877
threads,