Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6a2d246
fix(pr): update labels and reviewers without redundant reloads (#11117)
maria-rcks Sep 11, 2026
27eb79d
fix(chat): fold question answers into tool activity (#11014)
maria-rcks Sep 11, 2026
48654c1
fix(usage): flag unpriced model activity instead of showing $0.00 (#1…
maria-rcks Sep 11, 2026
5735693
fix(server): let Claude launch args override the derived permission m…
maria-rcks Sep 11, 2026
20ef250
fix(editors): accept root paths and Windows servers in Zed remote lin…
maria-rcks Sep 11, 2026
4d06156
fix(web): center pull request unavailable states (#11110)
maria-rcks Sep 11, 2026
0a37240
fix(web): remove sidebar pull request link icon (#11179)
maria-rcks Sep 11, 2026
02297e3
fix(ui): color linked pr counts by aggregate status (#11180)
maria-rcks Sep 11, 2026
6c69534
fix(preview): render website favicons for browser tool activity (#11032)
maria-rcks Sep 11, 2026
18c5a1d
fix(web): simplify pull request summary sections (#10612)
maria-rcks Sep 11, 2026
ef6fa11
fix(web): preserve drafts when compacting context (#11103)
maria-rcks Sep 11, 2026
57aee3e
fix(server): queue messages during context compaction (#11107)
maria-rcks Sep 11, 2026
8fc2536
perf(web): format minimap previews only when opened (#11181)
juliusmarminge Sep 11, 2026
a9dabbf
perf(web): reuse completed Markdown prefixes while streaming (#11193)
juliusmarminge Sep 11, 2026
d7d7f8f
perf(web): resume syntax highlighting from completed lines (#11196)
juliusmarminge Sep 11, 2026
8078c53
perf(web): preserve completed code-line DOM while streaming (#11198)
juliusmarminge Sep 11, 2026
211618f
perf(web): huge-thread switch no longer blanks the chat pane (#11169)
juliusmarminge Sep 11, 2026
fb3d165
fix(web): show platform file manager icons in Open menu (#11228)
Bil0000 Sep 11, 2026
26894dd
fix(server): detect file renames in review diffs (#8086)
jakeleventhal Sep 11, 2026
5eecc24
fix(cli): pin shared Effect dependency for npm installs (#11240)
jakeleventhal Sep 11, 2026
2ebc9fa
fix(mobile): prevent Hermes crashes when opening threads (#11233)
jakeleventhal Sep 11, 2026
05d4042
feat(web): open Usage on the Limits tab by default (#11261)
juliusmarminge Sep 11, 2026
2b7d3a4
perf(web): avoid scanning chat history for sidebar backgrounds (#11206)
juliusmarminge Sep 11, 2026
7bd7f99
perf(mobile): reuse completed code lines while streaming (#11211)
juliusmarminge Sep 11, 2026
6e8931d
perf(client): reduce remote request and message sync overhead (#11029)
Bil0000 Sep 11, 2026
e1c94f7
fix(web): refresh usage limit countdowns without switching tabs (#11187)
t3-code-bot[bot] Sep 11, 2026
fb52d12
fix(client-runtime): typecheck device hub ticket request on main (#11…
juliusmarminge Sep 11, 2026
2c0e891
feat(settings): add per-project overrides for scopable server setting…
juliusmarminge Sep 11, 2026
8b2c046
feat(web): pick settings environment and project as two selects (#10636)
juliusmarminge Sep 11, 2026
e22040d
feat(settings): edit any scopable setting as a project override (#10639)
juliusmarminge Sep 11, 2026
8bbe2bf
feat(web): float device streams over chat (#11285)
juliusmarminge Sep 11, 2026
18f7254
fix(web): floating preview can use the margins beside the composer (#…
juliusmarminge Sep 11, 2026
e145c5f
perf(client-runtime): speed up message sync on desktop and mobile (#1…
Bil0000 Sep 11, 2026
15c6167
fix(web): use the configured panel shortcut on the PR page (#11292)
Bil0000 Sep 11, 2026
b3ed07f
feat(web): add PR page selections to new draft threads (#11296)
Bil0000 Sep 11, 2026
0eaa18c
feat(web): show recording status on floating previews (#11312)
maria-rcks Sep 11, 2026
095d575
fix(desktop): hold-to-quit no longer strands the quit (#11016)
maria-rcks Sep 11, 2026
4a8ab1b
feat(web): mark projects on another machine in project pickers (#11323)
maria-rcks Sep 11, 2026
8711929
fix(web): show pointer cursors on pull request controls (#11283)
shivamhwp Sep 11, 2026
867eb9b
fix(web): themed panel toggles show their disabled state (#11188)
flamboh Sep 11, 2026
50791a0
fix(web): use branch wording in commit dialogs (#11281)
shivamhwp Sep 11, 2026
cd64ad3
fix(mobile): keep Android file icons on the line with wrapped filenam…
SunkenInTime Sep 11, 2026
a92161a
fix(codex): preserve qualified model ids in selection and generation …
maria-rcks Sep 11, 2026
36668db
feat(desktop): share macOS permission onboarding (#11289)
juliusmarminge Sep 11, 2026
8a2d5f5
fix(test): drain worker broadcasts before restoring browser globals (…
maria-rcks Sep 12, 2026
8461c25
fix(web): disable linked pull requests when none are linked (#11348)
maria-rcks Sep 12, 2026
1f73a89
fix(models): default to astra medium and fable 5.1 medium (#11347)
maria-rcks Sep 12, 2026
4d16e6b
fix(web): align provider settings with shared settings rows (#10571)
maria-rcks Sep 12, 2026
cf1ba3d
feat(settings): configure default permissions for new threads (#11346)
maria-rcks Sep 12, 2026
fd5553f
fix: restore provider history and prompts when rewinding (#11338)
maria-rcks Sep 12, 2026
25da986
fix(web): keep comment actions visible when pr comments are folded (#…
maria-rcks Sep 12, 2026
efccda9
feat: rewind conversations while keeping file changes (#11358)
maria-rcks Sep 12, 2026
3882778
fix(web): keep sidebar scroll position when pinning threads (#10757)
saphid Sep 12, 2026
8eec78c
fix(web): remove pr description reactions (#11361)
maria-rcks Sep 12, 2026
e816064
fix(desktop): keep preview keystrokes out of the composer (#11354)
maria-rcks Sep 12, 2026
4a4c6dd
feat(settings): add open source license notices (#8962)
juliusmarminge Sep 12, 2026
ca6416e
perf(client): reduce repeated sorting and date formatting (#11019)
Bil0000 Sep 12, 2026
4fed6cf
feat: add inline file previews and attachment chips across surfaces (…
chrisdeeming Sep 12, 2026
57b23a0
fix(desktop): preserve long offscreen text in SnapShots (#11250)
Bil0000 Sep 12, 2026
b1e223e
perf(server): avoid workspace scans when loading pull requests (#11299)
Bil0000 Sep 12, 2026
d1d15c6
feat(sidebar): fold the project scope into the search row (#11315)
maria-rcks Sep 12, 2026
8786b6f
chore(sync): import upstream main before RTVision conflict overlays
kalvenschraut Sep 12, 2026
9b9ade2
fix(sync): retain RTVision integrations for release 0.0.50
kalvenschraut Sep 12, 2026
a56b412
fix(editors): remember selection after a successful launch
kalvenschraut Sep 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ dist-electron/
.electron-runtime/
.showcase/
apps/mobile/.showcase/
apps/mobile/.generated/
/.generated/
artifacts/app-store/screenshots/
.github/pr-assets/
native/**/target/
Expand All @@ -38,3 +40,6 @@ node_modules/
*.log
.env*
!.env.example

# pnpm content-addressable store; never belongs in the repo.
.pnpm-store/
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@t3tools/desktop",
"version": "0.0.49",
"version": "0.0.50",
"private": true,
"type": "module",
"main": "dist-electron/main.cjs",
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/electron/ElectronProtocol.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ describe("ElectronProtocol", () => {
"https:",
]);
assert.deepEqual(directives["media-src"], ["'self'", "t3code:", "blob:", "http:", "https:"]);
assert.deepEqual(directives["frame-src"], ["'self'", "blob:", "http:", "https:"]);
assert.deepEqual(directives["font-src"], ["'self'", "t3code:", "data:"]);
});
});
4 changes: 3 additions & 1 deletion apps/desktop/src/electron/ElectronProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export function makeDesktopContentSecurityPolicy(input: DesktopProtocolRegistrat
"style-src 'self' 'unsafe-inline'",
`font-src 'self' ${input.scheme}: data:`,
"worker-src 'self' blob:",
"frame-src 'self' https://challenges.cloudflare.com",
// Document viewers use local Blob URLs and signed assets from runtime environments.
// HTML viewers retain their own sandbox; the renderer's script policy stays unchanged.
"frame-src 'self' blob: http: https:",
"form-action 'self'",
].join("; ");
}
Expand Down
12 changes: 9 additions & 3 deletions apps/desktop/src/electron/ElectronShell.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,16 @@ describe("ElectronShell", () => {
openExternalMock.mockResolvedValue(undefined);

const electronShell = yield* ElectronShell.ElectronShell;
const result = yield* electronShell.openExternal("zed://ssh/example.com/home/user/project");
const results = yield* Effect.all([
electronShell.openExternal("zed://ssh/example.com/home/user/project"),
electronShell.openExternal("zed://ssh/example.com/"),
]);

assert.equal(result, true);
assert.deepEqual(openExternalMock.mock.calls, [["zed://ssh/example.com/home/user/project"]]);
assert.deepEqual(results, [true, true]);
assert.deepEqual(openExternalMock.mock.calls, [
["zed://ssh/example.com/home/user/project"],
["zed://ssh/example.com/"],
]);
}).pipe(Effect.provide(ElectronShell.layer)),
);

Expand Down
19 changes: 3 additions & 16 deletions apps/desktop/src/electron/ElectronShell.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MAC_PERMISSION_SETTINGS_URLS } from "../permissions/MacPermission.ts";
import {
REMOTE_CAPABLE_EDITOR_IDS,
remoteSchemeForEditor,
Expand All @@ -10,20 +11,6 @@ import * as Option from "effect/Option";

import * as Electron from "electron";

/**
* Deep links to individual System Settings panes. These are app-fixed, not
* renderer-supplied, so they skip `parseSafeExternalUrl` — which exists to keep
* arbitrary link schemes from reaching the OS handler — and open through their
* own path below. The pane rather than the URL crosses the IPC boundary, so a
* renderer can only ask for one of these known destinations.
*
* Full Disk Access uses the post-Ventura `PrivacySecurity.extension` anchor.
*/
const SYSTEM_SETTINGS_URLS: Record<SystemSettingsPane, string> = {
"full-disk-access":
"x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_AllFiles",
};

// Remote open-in-editor deep links (`vscode://vscode-remote/ssh-remote+…`,
// `zed://ssh/<host>/<path>`) must reach the OS handler; every other non-web
// scheme stays blocked.
Expand All @@ -36,7 +23,7 @@ const REMOTE_EDITOR_PROTOCOLS = new Set(
);

// Zed's host sits in the first path segment, so it needs its own userinfo ban.
const ZED_SSH_PATHNAME = /^\/[^/@:]+\/.+$/;
const ZED_SSH_PATHNAME = /^\/[^/@:]+\/.*$/;

const isRemoteEditorUrl = (url: URL) =>
REMOTE_EDITOR_PROTOCOLS.has(url.protocol) &&
Expand Down Expand Up @@ -88,7 +75,7 @@ export const make = ElectronShell.of({
}),
openSystemSettings: (pane) =>
Effect.promise(() =>
Electron.shell.openExternal(SYSTEM_SETTINGS_URLS[pane]).then(
Electron.shell.openExternal(MAC_PERMISSION_SETTINGS_URLS[pane]).then(
() => true,
() => false,
),
Expand Down
2 changes: 2 additions & 0 deletions apps/desktop/src/ipc/DesktopIpcHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import {
getWindowFullscreenState,
openExternal,
openSystemSettings,
checkSystemPermission,
probeRemoteEditors,
pickFolder,
pickProjectFavicon,
Expand Down Expand Up @@ -134,6 +135,7 @@ export const installDesktopIpcHandlers = Effect.fn("desktop.ipc.installHandlers"
yield* ipc.handle(showContextMenu);
yield* ipc.handle(openExternal);
yield* ipc.handle(openSystemSettings);
yield* ipc.handle(checkSystemPermission);
yield* ipc.handle(probeRemoteEditors);
yield* ipc.handle(probeTerminalEditor);
yield* ipc.handle(openTerminalEditor);
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/ipc/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,6 @@ export const PREVIEW_POINTER_EVENT_CHANNEL = "desktop:preview-pointer-event";
export const PROBE_TERMINAL_EDITOR_CHANNEL = "desktop:probe-terminal-editor";
export const OPEN_TERMINAL_EDITOR_CHANNEL = "desktop:open-terminal-editor";
export const SET_TERMINAL_EDITOR_SETTINGS_CHANNEL = "desktop:set-terminal-editor-settings";
export const MAC_PERMISSION_HELPER_CHANNEL = "desktop:mac-permission-helper";

export const CHECK_SYSTEM_PERMISSION_CHANNEL = "desktop:check-system-permission";
26 changes: 25 additions & 1 deletion apps/desktop/src/ipc/methods/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ import * as ElectronMenu from "../../electron/ElectronMenu.ts";
import * as ElectronShell from "../../electron/ElectronShell.ts";
import * as ElectronTheme from "../../electron/ElectronTheme.ts";
import * as ElectronWindow from "../../electron/ElectronWindow.ts";
import * as Electron from "electron";
import * as MacPermissions from "../../permissions/MacPermissions.ts";
import { safariPermissionCheck } from "../../preview/BrowserImport/SafariPermission.ts";
import * as IpcChannels from "../channels.ts";
import * as DesktopIpc from "../DesktopIpc.ts";
import {
Expand Down Expand Up @@ -305,7 +308,16 @@ export const openSystemSettings = DesktopIpc.makeIpcMethod({
result: Schema.Boolean,
handler: Effect.fn("desktop.ipc.window.openSystemSettings")(function* (pane) {
const shell = yield* ElectronShell.ElectronShell;
return yield* shell.openSystemSettings(pane);
const environment = yield* DesktopEnvironment.DesktopEnvironment;
if (environment.platform !== "darwin") return false;
const owner = Electron.BrowserWindow.getFocusedWindow();
const opened = yield* shell.openSystemSettings(pane);
if (opened && environment.isPackaged) {
const permissions = yield* MacPermissions.MacPermissions;
const isGranted = yield* safariPermissionCheck;
yield* permissions.showHelper(pane, owner, isGranted);
}
return opened;
}),
});

Expand Down Expand Up @@ -379,3 +391,15 @@ export const pickThemeFiles = DesktopIpc.makeIpcMethod({
});
}),
});

export const checkSystemPermission = DesktopIpc.makeIpcMethod({
channel: IpcChannels.CHECK_SYSTEM_PERMISSION_CHANNEL,
payload: SystemSettingsPaneSchema,
result: Schema.Boolean,
handler: Effect.fn("desktop.ipc.window.checkSystemPermission")(function* () {
const environment = yield* DesktopEnvironment.DesktopEnvironment;
if (environment.platform !== "darwin") return false;
const check = yield* safariPermissionCheck;
return yield* Effect.promise(check);
}),
});
17 changes: 17 additions & 0 deletions apps/desktop/src/mac-permission-preload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ipcRenderer } from "electron";
import { MAC_PERMISSION_HELPER_CHANNEL } from "./ipc/channels.ts";

// This preload belongs only to the static permission panel. No general desktop bridge is exposed.
window.addEventListener("DOMContentLoaded", () => {
const send = (action: "drag" | "finder" | "close") =>
ipcRenderer.send(MAC_PERMISSION_HELPER_CHANNEL, action);
document.getElementById("app")?.addEventListener("dragstart", (event) => {
event.preventDefault();
send("drag");
});
document.getElementById("app")?.addEventListener("click", () => send("finder"));
document.getElementById("close")?.addEventListener("click", () => send("close"));
document.addEventListener("keydown", (event) => {
if (event.key === "Escape") send("close");
});
});
2 changes: 2 additions & 0 deletions apps/desktop/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
import { resolveDesktopSshRunner } from "./ssh/DesktopSshRunner.ts";
import * as MacPermissions from "./permissions/MacPermissions.ts";
for (const stream of [process.stdout, process.stderr]) {
stream.on("error", (err: NodeJS.ErrnoException) => {
if (err.code !== "EPIPE") throw err;
Expand Down Expand Up @@ -146,6 +147,7 @@ const electronLayer = Layer.mergeAll(
);

const desktopFoundationLayer = Layer.mergeAll(
MacPermissions.layer,
DesktopState.layer,
DesktopShutdown.layer,
DesktopAppSettings.layer,
Expand Down
15 changes: 15 additions & 0 deletions apps/desktop/src/permissions/MacPermission.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const MAC_PERMISSION_SETTINGS_URLS = {
"screen-recording":
"x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture",
accessibility: "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility",
"full-disk-access":
"x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_AllFiles",
};

export type MacPermission = keyof typeof MAC_PERMISSION_SETTINGS_URLS;

export const MAC_PERMISSION_TITLES: Record<MacPermission, string> = {
"screen-recording": "Screen Recording",
accessibility: "Accessibility",
"full-disk-access": "Full Disk Access",
};
Loading
Loading