We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589ec67 commit 45f49beCopy full SHA for 45f49be
src/utils/chatCommands.ts
@@ -53,7 +53,7 @@ export function parseRuntimeString(
53
54
// Extract username from user@host format, or default to current user
55
const atIndex = hostPart.indexOf("@");
56
- const user = atIndex > 0 ? hostPart.substring(0, atIndex) : process.env.USER ?? "user";
+ const user = atIndex > 0 ? hostPart.substring(0, atIndex) : (process.env.USER ?? "user");
57
58
// Determine home directory path based on user
59
// root user's home is /root, all others are /home/<user>
0 commit comments