Skip to content

Commit 0031860

Browse files
committed
🤖 fix: align ssh defaults with mux paths
_Generated with _
1 parent edb1586 commit 0031860

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

src/components/ChatInput/CreationControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function CreationControls(props: CreationControlsProps) {
7070
<strong>Runtime:</strong>
7171
<br />
7272
• Local: git worktree in ~/.mux/src
73-
<br />• SSH: remote clone in ~/mux on SSH host
73+
<br />• SSH: remote clone in ~/.mux/src on SSH host
7474
</Tooltip>
7575
</TooltipWrapper>
7676
</div>

src/components/Modal.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const WithInfoBox: Story = {
106106
<>
107107
<ModalInfo>
108108
<p>
109-
This operation will create a new workspace at <code>~/mux/project/branch</code>
109+
This operation will create a new workspace at <code>~/.mux/src/project/branch</code>
110110
</p>
111111
<p>Existing files will not be affected.</p>
112112
</ModalInfo>

src/runtime/Runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ export interface Runtime {
246246
*
247247
* @example
248248
* // LocalRuntime
249-
* await runtime.resolvePath("~/mux") // => "/home/user/mux"
249+
* await runtime.resolvePath("~/.mux/src") // => "/home/user/mux"
250250
* await runtime.resolvePath("./relative") // => "/current/dir/relative"
251251
*
252252
* // SSHRuntime
253-
* await runtime.resolvePath("~/mux") // => "/home/user/mux" (via SSH shell expansion)
253+
* await runtime.resolvePath("~/.mux/src") // => "/home/user/mux" (via SSH shell expansion)
254254
*/
255255
resolvePath(path: string): Promise<string>;
256256

src/runtime/SSHRuntime.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe("SSHRuntime constructor", () => {
77
expect(() => {
88
new SSHRuntime({
99
host: "example.com",
10-
srcBaseDir: "~/mux",
10+
srcBaseDir: "~/.mux/src",
1111
});
1212
}).not.toThrow();
1313
});

src/services/tools/fileCommon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function validatePathInCwd(
111111
): { error: string } | null {
112112
// TODO: Make path validation runtime-aware instead of skipping for SSH.
113113
// For now, skip local path validation for SSH runtimes since:
114-
// 1. Node's path module doesn't understand remote paths (~/mux/branch)
114+
// 1. Node's path module doesn't understand remote paths (~/.mux/src/branch)
115115
// 2. The runtime's own file operations will fail on invalid paths anyway
116116
if (runtime instanceof SSHRuntime) {
117117
return null;

src/utils/chatCommands.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("parseRuntimeString", () => {
1818
expect(result).toEqual({
1919
type: "ssh",
2020
host: "user@host",
21-
srcBaseDir: "~/mux",
21+
srcBaseDir: "~/.mux/src",
2222
});
2323
});
2424

@@ -27,7 +27,7 @@ describe("parseRuntimeString", () => {
2727
expect(result).toEqual({
2828
type: "ssh",
2929
30-
srcBaseDir: "~/mux",
30+
srcBaseDir: "~/.mux/src",
3131
});
3232
});
3333

@@ -36,7 +36,7 @@ describe("parseRuntimeString", () => {
3636
expect(result).toEqual({
3737
type: "ssh",
3838
host: "user@host",
39-
srcBaseDir: "~/mux",
39+
srcBaseDir: "~/.mux/src",
4040
});
4141
});
4242

@@ -51,7 +51,7 @@ describe("parseRuntimeString", () => {
5151
expect(result).toEqual({
5252
type: "ssh",
5353
host: "hostname",
54-
srcBaseDir: "~/mux",
54+
srcBaseDir: "~/.mux/src",
5555
});
5656
});
5757

@@ -61,7 +61,7 @@ describe("parseRuntimeString", () => {
6161
expect(result).toEqual({
6262
type: "ssh",
6363
host: "dev.example.com",
64-
srcBaseDir: "~/mux",
64+
srcBaseDir: "~/.mux/src",
6565
});
6666
});
6767

@@ -71,7 +71,7 @@ describe("parseRuntimeString", () => {
7171
expect(result).toEqual({
7272
type: "ssh",
7373
host: "root@hostname",
74-
srcBaseDir: "~/mux",
74+
srcBaseDir: "~/.mux/src",
7575
});
7676
});
7777

src/utils/chatCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function parseRuntimeString(
5757
return {
5858
type: RUNTIME_MODE.SSH,
5959
host: hostPart,
60-
srcBaseDir: "~/mux", // Default remote base directory (tilde will be resolved by backend)
60+
srcBaseDir: "~/.mux/src", // Default remote base directory (tilde will be resolved by backend)
6161
};
6262
}
6363

0 commit comments

Comments
 (0)