GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add open-in-editor feature with Cmd+O shortcut by juliusmarminge · Pull Request #2 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Feb 9, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
CleanShot 2026-02-08 at 20 49 41@2x

Summary

Add a header dropdown to open the workspace in Cursor or the system file manager (Finder on macOS, Explorer on Windows, Files on Linux). Includes a global Cmd+O / Ctrl+O keyboard shortcut that opens in the last-used editor, with persistence via localStorage.

Changes

  • Add IPC channel shell:open-in-editor in contracts
  • Main process handler that spawns editor CLI or uses shell.openPath() for cross-platform file manager support
  • Header dropdown with editor options between status indicator and Diff button
  • Global keyboard shortcut listener for Cmd+O / Ctrl+O
  • Last-used editor tracked in localStorage with intelligent platform-aware naming (Finder/Explorer/Files)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added an "Open in…" dropdown in the top bar to open the active project in a chosen editor or the file manager.
    • Added Cmd/Ctrl+O shortcut to open the project with your last-selected editor; selection is persisted across sessions.
    • Editor menu closes on outside clicks and after choosing an editor.
  • Platform Integration

    • Desktop app now launches external editors or the file manager to open project folders.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge @claude
Add open-in-editor feature with Cmd+O shortcut
3303d9a
Add dropdown in header to open workspace in Cursor or system file manager (Finder/Explorer/Files). Include Cmd+O/Ctrl+O global keyboard shortcut to open in last-used editor, persisted to localStorage.

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Feb 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Walkthrough

Adds an "open in editor" feature: new EDITORS and EditorId types, IPC_CHANNELS.shellOpenInEditor plus main-process handler, nativeApi.shell.openInEditor in preload, and renderer UI/shortcut to invoke and persist the chosen editor.

Changes

Cohort / File(s) Summary
Main / IPC handler
apps/desktop/src/main.ts
Imports shell and EDITORS; registers IPC_CHANNELS.shellOpenInEditor handler that looks up editor by id, throws on unknown, uses shell.openPath(cwd) for file-manager or spawn (detached, stdio ignored) and unref() for editor commands.
Preload / Renderer bridge
apps/desktop/src/preload.ts
Adds nativeApi.shell.openInEditor(cwd: string, editor: EditorId) which invokes IPC_CHANNELS.shellOpenInEditor via ipcRenderer.invoke.
Renderer UI
apps/renderer/src/components/ChatView.tsx
Adds editor dropdown, isEditorMenuOpen and lastEditor state with localStorage persistence, outside-click handling, Cmd/Ctrl+O shortcut to open last editor, and calls api.shell.openInEditor.
Contracts / Types
packages/contracts/src/ipc.ts
Exports new EDITORS array and EditorId type, adds IPC_CHANNELS.shellOpenInEditor, and extends NativeApi with shell.openInEditor(cwd: string, editor: EditorId): Promise<void>.
Manifests / Package
manifest_file, package.json
Small manifest/package updates referenced by diff (lines changed +25/-1 and +4/-0 respectively).

Sequence Diagram

sequenceDiagram
    actor User
    participant ChatView as Renderer (ChatView.tsx)
    participant Preload as Preload (preload.ts)
    participant Main as Main Process (main.ts)
    participant OS as Operating System Shell

    User->>ChatView: Click "Open in…" or press Cmd/Ctrl+O
    ChatView->>ChatView: openInEditor(editorId) and persist lastEditor
    ChatView->>Preload: invoke 'shell:open-in-editor' (cwd, editorId)
    Preload->>Main: Forward IPC invoke
    Main->>Main: Lookup editor in EDITORS
    alt editor == 'file-manager'
        Main->>OS: shell.openPath(cwd)
    else editor has command
        Main->>OS: spawn(editorCommand, [cwd], {detached, stdio:'ignore'}) and unref()
    end
    OS-->>Main: process/path opened
    Main-->>Preload: resolve Promise<void>
    Preload-->>ChatView: invoke resolves
    ChatView->>ChatView: close editor menu
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main feature added: an open-in-editor capability triggered by a Cmd+O keyboard shortcut, which is the primary change across all modified files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch juliusmarminge/open-in-editor

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
apps/renderer/src/components/ChatView.tsx (3)

36-40: navigator.platform is deprecated but acceptable here.

While navigator.platform is technically deprecated in favor of navigator.userAgentData, it remains well-supported in Electron's renderer process. This is a reasonable choice for platform detection in this context.


203-220: Consider extracting click-outside logic to a reusable hook.

This pattern is duplicated with the model menu handler (lines 184-201). A useOnClickOutside(ref, callback) hook would reduce duplication.

♻️ Example hook extraction
function useOnClickOutside(
  ref: React.RefObject<HTMLElement>,
  handler: () => void,
  enabled: boolean,
) {
  useEffect(() => {
    if (!enabled) return;
    const handleClickOutside = (event: MouseEvent) => {
      if (
        ref.current &&
        event.target instanceof Node &&
        !ref.current.contains(event.target)
      ) {
        handler();
      }
    };
    window.addEventListener("mousedown", handleClickOutside);
    return () => window.removeEventListener("mousedown", handleClickOutside);
  }, [ref, handler, enabled]);
}

Then use:

useOnClickOutside(editorMenuRef, () => setIsEditorMenuOpen(false), isEditorMenuOpen);
useOnClickOutside(modelMenuRef, () => setIsModelMenuOpen(false), isModelMenuOpen);

378-410: Add aria attributes for accessibility.

The dropdown trigger is missing aria-expanded and aria-haspopup attributes that improve screen reader experience.

♿ Suggested accessibility improvement
               <button
                 type="button"
                 className="rounded-md px-2 py-1 text-[10px] text-[`#a0a0a0`]/40 transition-colors duration-150 hover:text-[`#a0a0a0`]/60"
                 onClick={() => setIsEditorMenuOpen((v) => !v)}
+                aria-expanded={isEditorMenuOpen}
+                aria-haspopup="menu"
               >
                 Open in&hellip;
               </button>

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Feb 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Add Cmd+O/Ctrl+O open-in-editor action in chat view and handle IPC_CHANNELS.shellOpenInEditor in main process

Implement window.nativeApi.shell.openInEditor and a main-process IPC_CHANNELS.shellOpenInEditor handler that opens the active project's cwd in a selected editor from EDITORS, plus add an 'Open in…' menu and Cmd+O/Ctrl+O shortcut in the chat view.

📍Where to Start

Start with the IPC handler in registerIpcHandlers in main.ts, then review the preload API in preload.ts, and the UI wiring in ChatView.tsx.


📊 Macroscope summarized ff34d2c. 98 files reviewed, 10 issues evaluated, 8 issues filtered, 0 comments posted. View details

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Feb 9, 2026
View reviewed changes
Comment thread apps/desktop/src/main.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Feb 9, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Fix all issues with AI agents
In `@apps/desktop/src/main.ts`:
- Around line 143-145: The CI formatter flagged the EDITOR_COMMANDS block — run
the project formatter (e.g., run the formatter or execute `bun run lint`) to
reformat the object literal; specifically ensure the EDITOR_COMMANDS constant
and its entry for "cursor" follow the project's formatting rules (spacing,
trailing commas, and indentation) so the object shape Record<string, { command:
string; args: (cwd: string) => string[] }> and the cursor entry { command:
"cursor", args: (p) => [p] } are formatted exactly as the linter expects.
- Around line 135-153: The IPC handler for ipcMain.handle should validate cwd is
non-empty, await shell.openPath(cwd) and check its returned string for an error
(log/throw when non-empty) instead of assuming success, and protect the spawn
path by wrapping the spawn call in try/catch and attaching an 'error' listener
to the returned child (e.g., child.on('error', ...) to log/throw when the CLI
cannot be spawned); reference EDITOR_COMMANDS and entry (from editor) to locate
the spawn logic, and ensure you handle and surface errors for both
shell.openPath and spawn so the handler doesn't crash or fail silently.

In `@apps/renderer/src/components/ChatView.tsx`:
- Around line 66-69: Validate the value read from localStorage under
LAST_EDITOR_KEY against the known EDITORS list before using it as the initial
state for lastEditor; replace the current initializer (() =>
localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id) with logic that reads
localStorage, checks EDITORS.some(e => e.id === stored), and falls back to
EDITORS[0].id when the stored id is missing or not found; also ensure any places
that write to lastEditor (setLastEditor) persist only validated ids to
localStorage.
- Around line 183-191: The keydown handler currently calls e.preventDefault()
unconditionally for Cmd/Ctrl+O even when the action won't run; update the
handler in the useEffect (function handler used for the KeyboardEvent) to only
call e.preventDefault() when api and activeProject are truthy and you are about
to call api.shell.openInEditor(activeProject.cwd, lastEditor), i.e. move or
guard preventDefault() behind the same condition that checks api and
activeProject so the key event is not swallowed when no activeProject exists.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/desktop/src/main.ts
Comment on lines +135 to +153
// Shell handlers
ipcMain.handle(
IPC_CHANNELS.shellOpenInEditor,
async (_event, cwd: string, editor: string) => {
if (editor === "file-manager") {
await shell.openPath(cwd);
return;
}
const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = {
cursor: { command: "cursor", args: (p) => [p] },
};
const entry = EDITOR_COMMANDS[editor];
if (!entry) throw new Error(`Unknown editor: ${editor}`);
const child = spawn(entry.command, entry.args(cwd), {
detached: true,
stdio: "ignore",
});
child.unref();
},

@coderabbitai coderabbitai Bot Feb 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n apps/desktop/src/main.ts | sed -n '135,153p'

Repository: pingdotgg/codething-mvp

Length of output: 848


🌐 Web query:

Electron shell.openPath() return value error handling

💡 Result:

shell.openPath(path) returns a Promise<string> that resolves (not rejects) to:

  • "" (empty string) on success
  • a non-empty error message string on failure (electronjs.org)

So error handling is typically:

import { shell } from "electron";

async function openFile(p: string) {
  try {
    const err = await shell.openPath(p);
    if (err) {
      // open failed; Electron returns an error message string
      console.error("openPath failed:", err);
      // show UI / log / fallback here
    }
  } catch (e) {
    // for unexpected exceptions (e.g., bad argument types, other runtime issues)
    console.error("openPath threw:", e);
  }
}

Key point: check the resolved string—don’t rely only on catch. (electronjs.org)

Citations:

  • 1: https://www.electronjs.org/docs/latest/api/shell?utm_source=openai
  • 2: https://www.electronjs.org/docs/latest/api/shell?utm_source=openai

🌐 Web query:

Node.js child_process spawn error event handling

💡 Result:

In Node.js, child_process.spawn() can fail asynchronously, so you should always attach an 'error' handler to the returned ChildProcess:

  • 'error' event is emitted when the process could not be spawned (e.g., ENOENT, EACCES), could not be killed, or IPC send failed. The 'exit' event may or may not fire after an 'error', so don’t rely on 'exit' alone. [1]
  • 'close' event fires after the process ends and all stdio streams are closed; it will emit after 'exit', or after 'error' if the child failed to spawn. [2]

A common safe pattern is to funnel both 'error' and 'close' into a single “done once” handler:

import { spawn } from 'node:child_process';

function spawnChecked(cmd, args, opts) {
  const child = spawn(cmd, args, opts);

  let settled = false;
  const done = (err, result) => {
    if (settled) return;
    settled = true;
    if (err) throw err;              // or reject a Promise / call cb(err)
    return result;
  };

  child.once('error', (err) => done(err));                  // spawn/kill/IPC failure
  child.once('close', (code, signal) => {                   // stdio fully closed
    if (code === 0) return done(null, { code, signal });
    done(Object.assign(new Error(`exit ${code ?? 'null'} (${signal ?? 'no-signal'})`), { code, signal }));
  });

  return child;
}

Sources: Node.js ChildProcess event docs for 'error' and 'close'. [1] [2]

References
[1] Node.js docs — ChildProcess event: 'error' (nodejs.org)
[2] Node.js v22 docs — ChildProcess event: 'close' (nodejs.org)

Citations:

  • 1: https://nodejs.org/download/release/v7.7.0/docs/api/child_process.html?utm_source=openai
  • 2: https://nodejs.org/download/release/v22.19.0/docs/api/child_process.html?utm_source=openai

Add error handling for shell.openPath() and spawn() to prevent crashes and silent failures.
shell.openPath() returns a Promise that resolves to an error string (not thrown), and spawn() emits an 'error' event asynchronously when the process cannot be spawned (e.g., missing CLI). Without handling these, the IPC handler silently fails or crashes. Also guard against empty cwd.

🛠️ Suggested fix
-    async (_event, cwd: string, editor: string) => {
-      if (editor === "file-manager") {
-        await shell.openPath(cwd);
-        return;
-      }
+    async (_event, cwd: string, editor: string) => {
+      if (!cwd) {
+        throw new Error("cwd is required");
+      }
+      if (editor === "file-manager") {
+        const error = await shell.openPath(cwd);
+        if (error) {
+          throw new Error(error);
+        }
+        return;
+      }
       const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = {
         cursor: { command: "cursor", args: (p) => [p] },
       };
       const entry = EDITOR_COMMANDS[editor];
       if (!entry) throw new Error(`Unknown editor: ${editor}`);
-      const child = spawn(entry.command, entry.args(cwd), {
-        detached: true,
-        stdio: "ignore",
-      });
-      child.unref();
+      await new Promise<void>((resolve, reject) => {
+        const child = spawn(entry.command, entry.args(cwd), {
+          detached: true,
+          stdio: "ignore",
+        });
+        child.once("error", reject);
+        child.once("spawn", () => {
+          child.unref();
+          resolve();
+        });
+      });
     },
   );
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Shell handlers
ipcMain.handle(
IPC_CHANNELS.shellOpenInEditor,
async (_event, cwd: string, editor: string) => {
if (editor === "file-manager") {
await shell.openPath(cwd);
return;
}
const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = {
cursor: { command: "cursor", args: (p) => [p] },
};
const entry = EDITOR_COMMANDS[editor];
if (!entry) throw new Error(`Unknown editor: ${editor}`);
const child = spawn(entry.command, entry.args(cwd), {
detached: true,
stdio: "ignore",
});
child.unref();
},
// Shell handlers
ipcMain.handle(
IPC_CHANNELS.shellOpenInEditor,
async (_event, cwd: string, editor: string) => {
if (!cwd) {
throw new Error("cwd is required");
}
if (editor === "file-manager") {
const error = await shell.openPath(cwd);
if (error) {
throw new Error(error);
}
return;
}
const EDITOR_COMMANDS: Record<string, { command: string; args: (cwd: string) => string[] }> = {
cursor: { command: "cursor", args: (p) => [p] },
};
const entry = EDITOR_COMMANDS[editor];
if (!entry) throw new Error(`Unknown editor: ${editor}`);
await new Promise<void>((resolve, reject) => {
const child = spawn(entry.command, entry.args(cwd), {
detached: true,
stdio: "ignore",
});
child.once("error", reject);
child.once("spawn", () => {
child.unref();
resolve();
});
});
},
);
🤖 Prompt for AI Agents
In `@apps/desktop/src/main.ts` around lines 135 - 153, The IPC handler for
ipcMain.handle should validate cwd is non-empty, await shell.openPath(cwd) and
check its returned string for an error (log/throw when non-empty) instead of
assuming success, and protect the spawn path by wrapping the spawn call in
try/catch and attaching an 'error' listener to the returned child (e.g.,
child.on('error', ...) to log/throw when the CLI cannot be spawned); reference
EDITOR_COMMANDS and entry (from editor) to locate the spawn logic, and ensure
you handle and surface errors for both shell.openPath and spawn so the handler
doesn't crash or fail silently.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/desktop/src/main.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/renderer/src/components/ChatView.tsx Outdated
Comment on lines +66 to +69
const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false);
const [lastEditor, setLastEditor] = useState(
() => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id,
);

@coderabbitai coderabbitai Bot Feb 9, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Guard against stale lastEditor values in localStorage.
If localStorage contains an unknown editor id (older versions, manual edits), the IPC handler will throw. Prefer validating against EDITORS and falling back.

🧩 Suggested fix
-  const [lastEditor, setLastEditor] = useState(
-    () => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id,
-  );
+  const [lastEditor, setLastEditor] = useState(() => {
+    const stored = localStorage.getItem(LAST_EDITOR_KEY);
+    return EDITORS.some((editor) => editor.id === stored)
+      ? stored
+      : EDITORS[0].id;
+  });
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false);
const [lastEditor, setLastEditor] = useState(
() => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id,
);
const [isEditorMenuOpen, setIsEditorMenuOpen] = useState(false);
const [lastEditor, setLastEditor] = useState(() => {
const stored = localStorage.getItem(LAST_EDITOR_KEY);
return EDITORS.some((editor) => editor.id === stored)
? stored
: EDITORS[0].id;
});
🤖 Prompt for AI Agents
In `@apps/renderer/src/components/ChatView.tsx` around lines 66 - 69, Validate the
value read from localStorage under LAST_EDITOR_KEY against the known EDITORS
list before using it as the initial state for lastEditor; replace the current
initializer (() => localStorage.getItem(LAST_EDITOR_KEY) ?? EDITORS[0].id) with
logic that reads localStorage, checks EDITORS.some(e => e.id === stored), and
falls back to EDITORS[0].id when the stored id is missing or not found; also
ensure any places that write to lastEditor (setLastEditor) persist only
validated ids to localStorage.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/renderer/src/components/ChatView.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Feb 9, 2026

Copy link
Copy Markdown
Member Author

@cursor fix ci pls

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cursor

cursor Bot commented Feb 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

All done. Here's what I fixed:

apps/desktop/src/main.ts - IPC handler hardening:

  • Added cwd validation (throw if empty)
  • Check shell.openPath() return value and throw on error (it resolves to an error string, not rejects)
  • Added child.on('error', ...) listener on the spawned process to prevent crashes if the editor CLI is missing

apps/renderer/src/components/ChatView.tsx - Review feedback:

  • Validate localStorage value against the known EDITORS list before using as initial state, falling back to EDITORS[0].id for stale/unknown values
  • Moved e.preventDefault() inside the api && activeProject guard so Cmd/Ctrl+O isn't swallowed when no active project exists

Lint passes cleanly across all three packages. Changes pushed to juliusmarminge/open-in-editor.

Open in Cursor Open in Web

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge and others added 4 commits February 8, 2026 21:15
@juliusmarminge @claude
Move editor definitions to contracts for strict IPC typing
6204eaf
EDITORS config and EditorId type now live in @acme/contracts so the
shell.openInEditor IPC channel is strictly typed end-to-end. The main
process uses the contract's command field (null = file manager via
shell.openPath).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@juliusmarminge @claude
Fix biome formatting issues
c8f33b8
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@cursoragent @juliusmarminge
fix: add error handling and address review feedback
84b71e0
- Validate cwd is non-empty in shell:open-in-editor IPC handler
- Check shell.openPath() return value and throw on error
- Attach spawn error listener to prevent crashes from missing CLI
- Validate localStorage lastEditor against known EDITORS list
- Only call preventDefault() for Cmd+O when action will run

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge @claude
Merge origin/main and resolve conflicts
36314bb
Keep open-in-editor dropdown, accept main's removal of status indicator
from header.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@t3dotgg
t3dotgg merged commit eef57db into main Feb 9, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Xenoifyteam Xenoifyteam mentioned this pull request Mar 7, 2026
Per-project MCP #276
Closed
@kimkhoi2202 kimkhoi2202 mentioned this pull request Mar 7, 2026
Per-project MCP #277
Closed
@binbandit binbandit mentioned this pull request Mar 11, 2026
fix(web): defer diff worker startup until diff opens #934
Merged
MacGyver-Assistant pushed a commit to MacGyver-Assistant/t3code that referenced this pull request Mar 22, 2026
Dave Lopper
fix(web): post-review corrections for Monaco editor panel
eaf06e4
- Store: index files by cwd+relativePath to avoid cross-worktree
  collisions; never overwrite dirty buffer on refetch/reopen
- EditorPanel: reorder render branches so error state is tested
  before empty state (was unreachable)
- A11y: separate tab activation (div[role=tab]) from close button
  (proper button element) — no nested interactive elements
- Extract shared RightPanelInlineSidebar, RightPanelSheet, and
  shouldAcceptPanelWidth into RightPanelPrimitives.tsx so PR pingdotgg#2
  (Browser panel) only needs to add a config block
@juliusmarminge juliusmarminge mentioned this pull request Apr 1, 2026
perf(server): bootstrap engine from persisted projections #1648
Merged
ziyadakl referenced this pull request in ziyadakl/t3code Jun 14, 2026
Ziyad Akl @claude Ziyad Akl
refactor(sandcastle): drop dead error channel from statusAll RPC
5d61e62
The status reader is effectively infallible: readOne wraps every FS call
in Effect.orElseSucceed and buildStatusEntry is pure. Yet results were
wrapped in SandcastleError twice (reader Effect.catch + ws.ts mapError)
and the RPC declared an unreachable union member. EnvironmentAuthorizationError
is added separately by authorizeEffect at the WS layer and is the only
error that can actually cross the wire.

Remove the SandcastleError class, the double-wrap, and the union; the RPC
now declares its one real error. Pure deletion, no behavior change.

Surfaced by thermo-review (Standards #2 + Quality #3a).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
ziyadakl referenced this pull request in ziyadakl/t3code Jun 17, 2026
Ziyad Akl @claude Ziyad Akl
refactor(server): extract fork-local scoped checkpoint restore
be838e6
Move the path-scoped restore logic out of the upstream GitVcsDriver into a
new fork-local module (pure planScopedRestore planner + thin runScopedRestore
orchestrator); GitVcsDriver keeps only the legacy whole-tree path and a thin
delegation. Batch the per-path cat-file probe into one ls-tree call. Behavior
preserved (CheckpointStore integration tests green). Review findings:
standards #1 (code half), quality #1/#2.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Jgratton24 added a commit to Jgratton24/t3code that referenced this pull request Jun 19, 2026
@Jgratton24
refactor(web): centralize desktop-local env signal, label at source, …
546e1f3
…share bootstrap reader

Follow-up cleanups from the upstream connection-rewrite merge.

pingdotgg#1 Centralize the desktop-local classification. The renderer was inlining
`target._tag === "BearerConnectionTarget" && connectionId.startsWith("local:")`
in ~7 places to detect a WSL / desktop-local environment. Add
connection/desktopLocal.ts as the single source of truth
(DESKTOP_LOCAL_CONNECTION_ID_PREFIX, desktopLocalConnectionId for the producer,
isDesktopLocalConnectionTarget for consumers) and route platform.ts plus every
consumer (Sidebar, ConnectionsSettings, ProviderUpdate*) through it.

pingdotgg#2 Carry the WSL label at registration time. platform.ts now labels a secondary
from the desktop bootstrap (e.g. "WSL (Ubuntu)") instead of the generic
descriptor label, so the provider feature no longer recovers the distro by
matching the environment's loopback URL against the bootstrap list. Drops the
brittle localBackendInstanceId URL-matcher.

pingdotgg#3 Share the desktop-bootstrap reader. Extract readDesktopSecondaryBootstraps
into desktopLocal.ts (used by both the platform source and the renderer) and add
a useDesktopLocalBootstraps() hook, replacing the Sidebar's bespoke setInterval
poller. The platform source's Effect poller and the React hook remain separate
timers (different runtimes), but they now read through one function.

Verified: web typecheck, connection + provider-logic tests, and lint pass.
@aanishs aanishs mentioned this pull request Jun 23, 2026
[Bug]: Failed startup session probe bricks the app — fatal, sticky error in root beforeLoad with no recovery #3513
Closed
2 tasks done
@Jgratton24 Jgratton24 mentioned this pull request Jun 30, 2026
fix(desktop): resolve WSL backend getting stuck connecting (#3611) #3623
Closed
1 of 4 tasks
maddada added a commit to maddada/m7code that referenced this pull request Jul 1, 2026
@maddada
GPUI move pingdotgg#2
befa9af
ziyadakl referenced this pull request in ziyadakl/t3code Jul 2, 2026
Ziyad Akl @claude Ziyad Akl
fix(rewind): stop surfacing interrupt/rewind teardown of an in-flight…
6646d6e
… turn as errors

Rewinding a turn that is still in flight tears the turn down (the
RewindReactor's own stopSession races the starting sendTurn). Two code
paths mislabeled that EXPECTED teardown as a hard error, so a successful
in-flight rewind left two scary red banners behind. Feature C's
one-click in-flight rewind is what exposed this pre-existing race; the
rewind itself succeeds and the next send cold-starts a clean session, so
both banners were purely cosmetic.

Fix #1 (turn-start SessionClosedError): when a rewind/interrupt/stop
closes the session out from under a starting turn, the Claude adapter's
prompt-queue offer fails and toSessionError maps it to
ProviderAdapterSessionClosedError on method turn/start.
handleTurnStartFailure only treated Cause.hasInterruptsOnly as benign,
so this typed error fell through to setThreadSessionErrorOnTurnStartFailure
(session.lastError -> red banner) and appendProviderFailureActivity.
It now also treats a ProviderAdapterSessionClosedError in the cause as
benign via the new isBenignTurnStartFailureCause predicate.

Scoping: gated on the ProviderAdapterSessionClosedError tag specifically
(not error_during_execution broadly). toSessionError only produces that
tag when the message says "closed", which on turn/start can only mean the
prompt queue was shut down by a concurrent teardown — a genuine adapter
fault surfaces as ProviderAdapterRequestError/process error and is still
reported. So the guard is the narrow concurrent-teardown case, not a
blanket suppression.

Fix #2 (SDK post-interrupt result): interrupting a turn mid-flight leaves
the Agent SDK's final message as the user prompt with no assistant reply,
so it emits a result with subtype error_during_execution, is_error:true,
stop_reason:null, and errors[0] starting with
"[ede_diagnostic] result_type=user last_content_type=n/a stop_reason=null".
isInterruptedResult only matched interrupt/aborted keywords (and its
error_during_execution branch required is_error:false), so this shape
classified as "failed" -> emitRuntimeError -> red banner. It now
recognizes the [ede_diagnostic] + null stop_reason shape as interrupted,
so turnStatusFromResult yields "interrupted" and handleResultMessage
skips emitRuntimeError. Gated on the [ede_diagnostic] marker + null
stop_reason so a genuine error_during_execution (real error content,
non-null stop_reason) still classifies as failed.

Tests (TDD, red before green), plus over-suppression guards:
- isBenignTurnStartFailureCause: SessionClosedError -> benign,
  interrupt-only -> benign, genuine ProviderAdapterRequestError -> NOT
  suppressed; integration test that a genuine turn-start failure still
  surfaces a lastError banner.
- turnStatusFromResult/isInterruptedResult: ede shape -> "interrupted",
  genuine error_during_execution -> "failed"; adapter integration test
  that the ede result completes the turn as interrupted with no
  runtime.error event.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GeAJ1pbJr8HZ4BE89fC6HU
@juliusmarminge juliusmarminge mentioned this pull request Jul 3, 2026
fix(orchestrator): session audit remediation — error fidelity, session resume, reconcile visibility #3677
Closed
deondejongh added a commit to deondejongh/multilinear that referenced this pull request Jul 4, 2026
@deondejongh @claude
fix(multilinear-web): board surfaces are visually distinct (MLT-64)
3ac3974
Canvas < column < card: recessed column tint (bg-muted/30 was a ~1% tint),
elevated card fill — shadow on light, lightened translucent surface on dark.
Theme tokens untouched (index.css is upstream-owned).

Also: STATUS planning entry for quick-win batch pingdotgg#2.

Co-Authored-By: Claude Fable 5 <[email protected]>
deondejongh added a commit to deondejongh/multilinear that referenced this pull request Jul 4, 2026
@deondejongh @claude
docs(multilinear): land quick-win batch pingdotgg#2 in STATUS — 5 iss…
18a5b69
…ues to needs_review

Co-Authored-By: Claude Fable 5 <[email protected]>
dcherrera pushed a commit to dcherrera/t3code that referenced this pull request Jul 7, 2026
@juliusmarminge @claude @cursoragent
Add open-in-editor feature with Cmd+O shortcut (pingdotgg#2)
8611f7d
* Add open-in-editor feature with Cmd+O shortcut

Add dropdown in header to open workspace in Cursor or system file manager (Finder/Explorer/Files). Include Cmd+O/Ctrl+O global keyboard shortcut to open in last-used editor, persisted to localStorage.


* Move editor definitions to contracts for strict IPC typing

EDITORS config and EditorId type now live in @acme/contracts so the
shell.openInEditor IPC channel is strictly typed end-to-end. The main
process uses the contract's command field (null = file manager via
shell.openPath).


* Fix biome formatting issues


* fix: add error handling and address review feedback

- Validate cwd is non-empty in shell:open-in-editor IPC handler
- Check shell.openPath() return value and throw on error
- Attach spawn error listener to prevent crashes from missing CLI
- Validate localStorage lastEditor against known EDITORS list
- Only call preventDefault() for Cmd+O when action will run

Co-authored-by: Julius Marminge <[email protected]>

---------

Co-authored-by: Claude Haiku 4.5 <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
@Mchicao Mchicao mentioned this pull request Nov 19, 2026
Antigravity 1.5.7 through 1.5.11 background commands mark the turn done early and T3 drops the wakeup reply #36105
Closed
aasd13121 referenced this pull request in aasd13121/t3code Nov 19, 2026
wct
fix(desktop): raise WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT to 128
7be3704
The first CI build of the fork (release-fork run #2, nightly 4890)
packaged successfully but failed its own payload validation:
'contains 93 files; expected at most 80' — the installer was fine,
the gate was stale. Electron 44 added Vulkan files and the task-board
sidecar adds more, pushing the recursive count to 93 (>80 baseline).

This change existed only in the local build workspace and was never
committed to task-board, which is why the local build succeeded while
CI failed. 128 matches the proven local build; runtime native-load
verification still gates native ABI correctness.
aasd13121 referenced this pull request in aasd13121/t3code Nov 19, 2026
wct
fix(desktop): raise WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT to 128
d110d64
The first CI build of the fork (release-fork run #2, nightly 4890)
packaged successfully but failed its own payload validation:
'contains 93 files; expected at most 80' — the installer was fine,
the gate was stale. Electron 44 added Vulkan files and the task-board
sidecar adds more, pushing the recursive count to 93 (>80 baseline).

This change existed only in the local build workspace and was never
committed to task-board, which is why the local build succeeded while
CI failed. 128 matches the proven local build; runtime native-load
verification still gates native ABI correctness.
@Ran-Xing Ran-Xing mentioned this pull request Nov 19, 2026
[RFC / Proposal]: Dual-Session Companion Intent Compiler & Reply Distiller (Morph B+ Architecture + Deep Research) #38910
Closed
This was referenced Nov 19, 2026
fix(server): Kimi turns that end before Kimi's work no longer settle as completed #39031
Open
fix(server): each Antigravity Google sign-in stays in its own instance #39485
Merged
@andrebrait andrebrait mentioned this pull request Nov 20, 2026
feat: environment cluster behind one main host andrebrait/t3code#1
Draft
@mkantautas mkantautas mentioned this pull request Nov 20, 2026
fix(antigravity): keep turns open when a background wake is still pending #39989
Merged
@juliusmarminge juliusmarminge mentioned this pull request Nov 21, 2026
fix(server): Claude's answer before a late-read steer stays visible #40265
Merged
This was referenced Nov 21, 2026
Filed in error #40382
Closed
Filed in error #40383
Closed
Filed in error #40384
Closed
@KitsuneKode KitsuneKode mentioned this pull request Nov 22, 2026
fix(server): a thread awaiting a delegated task's result no longer reports completed early #40881
Closed
@mianmian7 mianmian7 mentioned this pull request Nov 22, 2026
fix(antigravity): mid-turn 401 OAuth refresh errors resume once automatically #40921
Open
Skyway1111 added a commit to Skyway1111/no-deps-T3 that referenced this pull request Nov 22, 2026
@Skyway1111
docs: add pingdotgg#1 (ffi-rs) and pingdotgg#2 (@pierre/*) removal be…
7530838
…nchmarks to README
@Joeydekruis Joeydekruis mentioned this pull request Nov 22, 2026
feat(web): read-only Kanban board from status:* labels #41066
Closed
6 tasks
@royalaid royalaid mentioned this pull request Nov 22, 2026
[Bug]: Sidebar UI latency: hover-card lag, O(rows x drafts) New Thread scan, focusin DOM scan, and blocking settle-advance #41083
Open
@KB01111 KB01111 mentioned this pull request Nov 23, 2026
chore: sync upstream t3code main and preserve KBCode fork features #41532
Closed
@PrpCena PrpCena mentioned this pull request Nov 24, 2026
[Bug]: Antigravity ask_question splits every choice into a separate "Other" free-form step #37111
Closed
2 tasks done
tony-workbench pushed a commit to tony-workbench/t3code that referenced this pull request Nov 24, 2026
Zuri @claude
feat(inference): check whether a local model reads images, then let P…
fa412a4
…i and OpenCode send them

Pi was told every linked model reads text only, so image attachments never reached local vision
models, and nothing told the user which of their models could see. Agreed with Codex and GLM
(Nexus idea pingdotgg#2): Model servers now offers "Check images" per model. T3 Code sends four distinct
random solid-colour PNGs (64 answer tokens each, 2 minutes in all, through the normal admission
queue) and requires every colour named. A server that refuses the image but answers the same
question without it marks the model text-only; anything inconclusive records nothing.

The verdict is kept per server address and model across restarts and travels on the server
snapshot as the additive InferenceServerModel.capabilities.image. A checked model gets
input ["text","image"] in Pi and image modalities in OpenCode from its next session. Rather than
expiring after a day, which would silently turn images off, the UI offers the check again once
it is a day old. New RPC server.checkInferenceModelImages; all contract changes are additive, so
the official iOS app is unaffected.

Verified live: GLM-5.3-Flash on the TensorFold server at :8888 reads images.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQVvNivrfG7Uo1oLRofSZR
tony-workbench pushed a commit to tony-workbench/t3code that referenced this pull request Nov 24, 2026
@MiaAI-Lab
Merge pull request pingdotgg#2 from otherview/codex/proxy-turn-affinity
10dceaa
fix(inference): preserve upstream proxy turn affinity
@qiuziz qiuziz mentioned this pull request Nov 25, 2026
[upstream-conflict] TEST 端到端验证 v0.1.99 2026-11-25 qiuziz/t3code#1
Closed
@juliusmarminge juliusmarminge mentioned this pull request Nov 25, 2026
fix(server): launcher confirms an update before discarding the database backup #42665
Open
@librelois librelois mentioned this pull request Nov 25, 2026
feat(team): add thread following and per-member notification gating #42751
Closed
@paveltar paveltar mentioned this pull request Nov 25, 2026
Antigravity workspace snapshot gets stuck on skills: [] when a turn starts before skill discovery, and snapshotForCwd races refreshWorkspaceSnapshot #42984
Closed
@Gideon-Felt Gideon-Felt mentioned this pull request Nov 25, 2026
[Bug]: Windows machine w/ multiple users - breaks Environment routing #43136
Open
2 tasks done
@only21mil only21mil mentioned this pull request Nov 26, 2026
fix(mobile): pull request checks say "1 needs attention" for one check #43452
Merged
@Abdullahon2006 Abdullahon2006 mentioned this pull request Nov 26, 2026
[Bug]: Branch-on-branch stacked PRs have no stack controls in the PR management panel and merge into parent PR branches instead of main #43467
Closed
2 tasks done
@ominds ominds mentioned this pull request Nov 27, 2026
[Bug]: ACP provider: turns not tracked by an in-flight session/prompt are never rendered and their approval requests are auto-rejected #44302
Closed
2 tasks done
@only21mil only21mil mentioned this pull request Nov 28, 2026
fix(forgejo): pull request label filters include organization labels #44924
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@juliusmarminge @t3dotgg @cursoragent
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.