Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions collab-electron/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ interface ShortcutEntry {
const TOGGLE_SHORTCUTS: Record<string, ShortcutEntry[]> = {
KeyB: [
{ modifier: altCmdOrCtrl, action: "toggle-agent" },
{ modifier: cmdOrCtrl, action: "sidebar-files" },
{ modifier: shiftCmdOrCtrl, action: "sidebar-files" },
],
Backslash: [{ modifier: cmdOrCtrl, action: "sidebar-files" }],
Comma: [{ modifier: cmdOrCtrl, action: "toggle-settings" }],
Expand Down Expand Up @@ -377,7 +377,7 @@ function buildAppMenu(): void {
submenu: [
{
label: "Toggle Files",
accelerator: "CommandOrControl+B",
accelerator: "CommandOrControl+Shift+B",
registerAccelerator: false,
click: () => sendShortcut("sidebar-files"),
},
Expand Down
9 changes: 8 additions & 1 deletion collab-electron/src/main/pty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,14 @@ export async function createSession(
cwdHostPath: string;
cwdGuestPath?: string;
}> {
const resolvedCwd = cwd || os.homedir();
let resolvedCwd = cwd || os.homedir();
// Fall back to home directory if the requested cwd does not exist
// (e.g. a remembered remote/WSL path on a local macOS host).
try {
fs.accessSync(resolvedCwd);
} catch {
resolvedCwd = os.homedir();
}
const shell = process.env.SHELL || "/bin/zsh";
const c = cols || 80;
const r = rows || 24;
Expand Down
2 changes: 1 addition & 1 deletion collab-electron/src/windows/shell/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
id="alpha-dismiss" href="#">[<span>DISMISS</span>]</a></span>

<button type="button" id="nav-toggle" class="panel-toggle" aria-pressed="true" aria-label="Hide Navigator"
data-tooltip="Toggle Nav" data-shortcut="Cmd+B"></button>
data-tooltip="Toggle Nav" data-shortcut="Shift+Cmd+B"></button>

<button type="button" id="agent-toggle" class="panel-toggle" aria-pressed="false" aria-label="Show Agent"
data-tooltip="Toggle Agent" data-shortcut="Opt+Cmd+B"></button>
Expand Down
Loading