Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
change defailt for new termial
Julius Marminge1269b5258097
diff --git a/KEYBINDINGS.md b/KEYBINDINGS.mdindex eb5a9ecfd..e3be8baac 100644--- a/KEYBINDINGS.md+++ b/KEYBINDINGS.md@@ -21,7 +21,7 @@ See the full schema for more details: [`packages/contracts/src/keybindings.ts`]([{ "key": "mod+j", "command": "terminal.toggle" },{ "key": "mod+d", "command": "terminal.split", "when": "terminalFocus" },- { "key": "mod+shift+d", "command": "terminal.new", "when": "terminalFocus" },+ { "key": "mod+n", "command": "terminal.new", "when": "terminalFocus" },{ "key": "mod+shift+o", "command": "chat.new" },{ "key": "mod+o", "command": "editor.openFavorite" }]diff --git a/apps/server/src/keybindings.ts b/apps/server/src/keybindings.tsindex 3a92a4fed..b9a0b4d78 100644--- a/apps/server/src/keybindings.ts+++ b/apps/server/src/keybindings.ts@@ -27,7 +27,7 @@ type WhenToken =export const DEFAULT_KEYBINDINGS: ReadonlyArray<KeybindingRule> = [{ key: "mod+j", command: "terminal.toggle" },{ key: "mod+d", command: "terminal.split", when: "terminalFocus" },- { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },+ { key: "mod+n", command: "terminal.new", when: "terminalFocus" },{ key: "mod+shift+o", command: "chat.new" },{ key: "mod+o", command: "editor.openFavorite" },];@@ -39,7 +39,10 @@ function normalizeKeyToken(token: string): string {}export function parseKeybindingShortcut(value: string): KeybindingShortcut | null {- const rawTokens = value.toLowerCase().split("+").map((token) => token.trim());+ const rawTokens = value+ .toLowerCase()+ .split("+")+ .map((token) => token.trim());const tokens = [...rawTokens];let trailingEmptyCount = 0;while (tokens[tokens.length - 1] === "") {@@ -220,9 +223,7 @@ export function parseKeybindingWhenExpression(expression: string): KeybindingWhereturn ast;}-export function compileResolvedKeybindingRule(- rule: KeybindingRule,-): ResolvedKeybindingRule | null {+export function compileResolvedKeybindingRule(rule: KeybindingRule): ResolvedKeybindingRule | null {const key = rule.key.trim();if (key.length === 0) return null;const shortcut = parseKeybindingShortcut(key);@@ -271,9 +272,7 @@ function compileDefaultKeybindings(): ResolvedKeybindingsConfig {const DEFAULT_RESOLVED_KEYBINDINGS = compileDefaultKeybindings();-function mergeWithDefaultKeybindings(- custom: ResolvedKeybindingsConfig,-): ResolvedKeybindingsConfig {+function mergeWithDefaultKeybindings(custom: ResolvedKeybindingsConfig): ResolvedKeybindingsConfig {if (custom.length === 0) {return [...DEFAULT_RESOLVED_KEYBINDINGS];}diff --git a/apps/server/src/wsServer.test.ts b/apps/server/src/wsServer.test.tsindex 2d6418fdb..0c64f7877 100644--- a/apps/server/src/wsServer.test.ts+++ b/apps/server/src/wsServer.test.ts@@ -351,7 +351,7 @@ describe("WebSocket Server", () => {JSON.stringify([{ key: "cmd+j", command: "terminal.toggle" },{ key: "mod+d", command: "terminal.split", when: "terminalFocus" },- { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },+ { key: "mod+n", command: "terminal.new", when: "terminalFocus" },]),"utf8",);@@ -374,7 +374,7 @@ describe("WebSocket Server", () => {keybindings: mergeWithDefaultsForTest([{ key: "cmd+j", command: "terminal.toggle" },{ key: "mod+d", command: "terminal.split", when: "terminalFocus" },- { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },+ { key: "mod+n", command: "terminal.new", when: "terminalFocus" },]),});});@@ -408,9 +408,7 @@ describe("WebSocket Server", () => {expect(response.error).toBeUndefined();expect(response.result).toEqual({cwd: "/my/workspace",- keybindings: mergeWithDefaultsForTest([- { key: "mod+j", command: "terminal.toggle" },- ]),+ keybindings: mergeWithDefaultsForTest([{ key: "mod+j", command: "terminal.toggle" }]),});expect(warnSpy.mock.calls.some(([message]) =>@@ -479,9 +477,7 @@ describe("WebSocket Server", () => {expect(firstResponse.error).toBeUndefined();expect(firstResponse.result).toEqual({cwd: "/my/workspace",- keybindings: mergeWithDefaultsForTest([- { key: "cmd+j", command: "terminal.toggle" },- ]),+ keybindings: mergeWithDefaultsForTest([{ key: "cmd+j", command: "terminal.toggle" }]),});fs.writeFileSync(