Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: Tab in AI chat triggers autocomplete instead of indenting (#5718) (#9069)

Myles Scolnick804f1b62f9b8
diff --git a/frontend/src/core/codemirror/ai/resources.ts b/frontend/src/core/codemirror/ai/resources.ts
index b74faee991..58fb2e4a5e 100644
--- a/frontend/src/core/codemirror/ai/resources.ts
+++ b/frontend/src/core/codemirror/ai/resources.ts
@@ -72,6 +72,7 @@ export function resourceExtension(opts: {
keymap.of([
{
key: "Tab",
+ preventDefault: true,
run: (view: EditorView) => {
return acceptCompletion(view);
},