Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
c8625ca
fix(web): Ctrl+B reaches a focused terminal again (#34588)
sti0 Nov 19, 2026
ff4197c
perf(client-runtime): skip history scans when no runs are queued (#25…
saphid Nov 19, 2026
42d2387
fix(web): right-clicking a sidebar search result now opens its thread…
NawfalAhmed Nov 19, 2026
910c1a8
fix(mobile): long user messages collapse like on web (#34319)
BreadGenie Nov 19, 2026
3c08684
fix(client-runtime): CamelCase account names get distinct badge initi…
Eightsheet Nov 19, 2026
5533151
fix(server): delegated completion wakes name the child thread (#39297)
juliusmarminge Nov 19, 2026
4e39664
fix(server): preview_resize sizes hidden desktop tabs without a snaps…
juliusmarminge Nov 19, 2026
7922611
fix(i18n): correct wrong and ambiguous Simplified Chinese strings (#3…
loosekite Nov 19, 2026
0240eac
fix(server): images that ACP agents read show a preview (#37468)
matthewcosier Nov 19, 2026
cdf5a6c
fix(antigravity): allow compaction when the runtime advertises it (#3…
youjiaxing Nov 19, 2026
031dd1a
fix(ssh): report missing tar or gzip before downloading remote runtim…
bettercallcaleb Nov 19, 2026
44e3f42
fix(server): starting a native subagent no longer records a failed pr…
mInrOz Nov 19, 2026
a4d0151
fix: match dotted capital I in Find in Thread (#39290)
StiensWout Nov 19, 2026
55e379b
fix(server): the HEAD watch no longer spawns Git in a removed worktre…
mInrOz Nov 19, 2026
9f4d254
fix(server): whole-word content searches no longer miss matching file…
juliusmarminge Nov 19, 2026
5bc2d51
fix(web): scroll wide tables to the selected Find match (#39295)
StiensWout Nov 19, 2026
cb2a488
fix(web): an off-track desktop build no longer says "Up to date" (#39…
juliusmarminge Nov 19, 2026
d32df2d
fix(server): native session replacement fails honestly when the provi…
TinBane Nov 19, 2026
6108545
fix(server): repeated capture timeouts no longer delay turn starts (#…
voltcrash Nov 19, 2026
800b074
fix(server): restart recovery no longer reads every idle thread on a …
Jolymmiles Nov 19, 2026
1e70210
perf(server): avoid discarded history when retrieving remote task res…
Adamulek123 Nov 19, 2026
1e9f4c4
fix(triage): file labeled reports through the issue template (#31321)
pnupu Nov 19, 2026
6d05c5f
fix(server): HTML reports in dot-prefixed folders no longer open as N…
StiensWout Nov 19, 2026
0f32645
fix(dev): avoid dependency-triggered server restarts on Windows (#38870)
nateEc Nov 19, 2026
1d39325
fix(themes): keep escaped quotes in CSS text (#39296)
StiensWout Nov 19, 2026
dbee5a0
fix(mobile,web): saves, account switches and registrations report the…
juliusmarminge Nov 19, 2026
73caab6
fix(client): commands run as Effects on the caller's fiber, so interr…
juliusmarminge Nov 19, 2026
46b14a6
fix(mobile): device registration and Live Activity updates stay in Ef…
juliusmarminge Nov 19, 2026
938feb3
fix(server): a stalled poll no longer stalls headless T3 Connect logi…
elias1218 Nov 19, 2026
f6881ce
fix(acp-registry): keep managed npm commands out of user PATH (#37542)
StiensWout Nov 19, 2026
3f5cc38
fix(server): denying a device that was already approved no longer rep…
Umais-Adeed Nov 19, 2026
571c27a
fix(server): MCP apps resume an idle Codex thread in its own workspac…
alextyhwang Nov 19, 2026
314a114
fix(web): preserve Connect environments on unreachable auth at launch…
juliusmarminge Nov 19, 2026
a2a463a
fix(server): gh credential lookups no longer leak D-Bus daemons (#23824)
juliusmarminge Nov 19, 2026
eb62a37
fix(shared): atomic saves preserve file modes and sync to disk (#24310)
juliusmarminge Nov 19, 2026
5478e44
fix(claude): every repeated --plugin-dir launch argument loads its pl…
Marve10s Nov 19, 2026
6d6c461
fix(server): request_secret opens a new card when a later run reuses …
SvetlomirB Nov 19, 2026
47583f8
fix(server): Codex goal turns after a server restart are paused inste…
juliusmarminge Nov 19, 2026
4c09928
fix(dev): dev runner never points a dev server at the live ~/.t3/user…
Lenoridev Nov 19, 2026
4fccab8
fix(server): keep Codex apps and plugins off during text generation (…
Lucenx9 Nov 19, 2026
1a51984
fix(web): a tool call's diff names its files relative to the workspac…
Entrpi Nov 19, 2026
c3e82a9
fix(shared): T3 Connect no longer runs cloudflared releases that trus…
Project516 Nov 19, 2026
56b0777
fix(evals): GPT evals use the configured Codex provider and CODEX_HOM…
juliusmarminge Nov 19, 2026
54038e1
fix(pi): Pi agents get T3's pull request linking rules (#31727)
yilmazff Nov 19, 2026
178a2f1
fix(server): t3_thread_launch refuses a defaulted worktree launch whe…
juliusmarminge Nov 19, 2026
a8b57b0
fix(server): let parents revert after their subagents complete (#31874)
Kwan-Li Nov 19, 2026
d6b5aac
fix(server): t3_project_create names the link that refuses it and rej…
juliusmarminge Nov 19, 2026
554be2c
fix(server): Full access rejects Claude Code's reworded dangerous-rem…
juliusmarminge Nov 19, 2026
ebb3dd0
fix(source-control-github): sign out an app sign-in GitHub refuses to…
juliusmarminge Nov 19, 2026
916fcdc
fix(web): preserve newer project action drafts when imports fail (#39…
StiensWout Nov 19, 2026
767f194
fix(server): Codex thread name follows T3 thread renames (#37442)
pauldupuyjr Nov 19, 2026
c8b2141
fix(server): Antigravity 1.5 temporary setup and text-helper sessions…
MusseJusse Nov 19, 2026
ae268d9
fix(server): a provider CLI that dies at startup names its exit and E…
juliusmarminge Nov 19, 2026
c5badf4
fix(web): scope Git controls to the active checkout (#39305)
StiensWout Nov 19, 2026
3b199e7
fix: index displayed file line ranges in thread search (#39308)
StiensWout Nov 19, 2026
b68d29b
fix(server): storage cleanup removes clean detached worktrees whose c…
juliusmarminge Nov 19, 2026
e7b6149
fix(server): a delivered handoff of a failed run is not re-sent to la…
juliusmarminge Nov 19, 2026
56cd653
fix(mobile): a thread's goal pill can be cleared or resumed (#39283)
juliusmarminge Nov 19, 2026
b5481ad
fix(web,mobile): scheduled tasks from Settings start from the project…
binjamshid Nov 19, 2026
4b697be
fix(web): keep deleted ACP sessions out of pending listings (#39331)
StiensWout Nov 19, 2026
9d0d006
fix(server): keep Antigravity thread cwd in workspace by omitting att…
helmipradita Nov 19, 2026
3cd98dc
fix(server): a secret card closes after the steering restart that sup…
Ali-Al1 Nov 19, 2026
40c1e86
fix(web): keep sidebar update control readable when narrow
Nov 19, 2026
f0f9de4
fix(web): localize compact restart countdown
Nov 19, 2026
98af880
refactor(web): share restart countdown seconds in update capsule
juliusmarminge Nov 19, 2026
02c5270
fix(web): keep SSH connection checks pending until they finish (#39328)
StiensWout Nov 19, 2026
b5bef4d
fix(server): /logout in chat needs providers:manage (#39027)
juliusmarminge Nov 19, 2026
f8d7f48
fix(ssh): desktop SSH reaches hosts with a one-time code through a si…
juliusmarminge Nov 19, 2026
34a7ab3
fix(pi): T3 tools are callable by Pi's own mcp__t3_code__ names (#26845)
juliusmarminge Nov 19, 2026
f9e45e4
fix(server): agents on hosts without swap are OOM-killed instead of t…
juliusmarminge Nov 19, 2026
c4419da
fix(server): threads stay in Working when Claude or OpenCode marks a …
Bil0000 Nov 19, 2026
b111b63
fix(web): collapse extra linked issues in thread details (#39232)
Bil0000 Nov 19, 2026
cae24a6
fix(release): update feed check waits for a just-published nightly (#…
t3dotgg Nov 19, 2026
cdeacd5
perf(server): turn start reads a long thread's restart-note history o…
juliusmarminge Nov 19, 2026
296f913
fix(web): Cmd+W closes the browser tab when the page has focus (#39340)
Ernest0-Production Nov 19, 2026
b0b2c4f
fix(server): agents can tell another agent's message from the user's …
Bil0000 Nov 19, 2026
6455fc1
fix(mobile): Composer says why Send is disabled after an attachment u…
mwolson Nov 19, 2026
2c21917
fix(mobile): SVG text with font-variation-settings no longer crashes …
juliusmarminge Nov 19, 2026
babc83b
fix(web): PR viewer renders GitHub :emoji: shortcodes (#39315)
juliusmarminge Nov 19, 2026
66b8a94
perf(server): finalizing a delegated task no longer reads the child's…
juliusmarminge Nov 19, 2026
2109962
feat(mobile): pull request files follow the same review order as web …
juliusmarminge Nov 19, 2026
6b6950a
fix(mobile): Android diff word highlights sit on the changed characte…
only21mil Nov 19, 2026
57db750
fix(server): Copilot subagent thinking and replies reach the subagent…
juliusmarminge Nov 19, 2026
cb391b5
fix(server): agent activity publish keeps retrying after a network dr…
juliusmarminge Nov 19, 2026
2bba256
perf(server): thread shell item counts no longer sum every run the th…
juliusmarminge Nov 19, 2026
420d1b5
feat(desktop): forward another environment's ports to this machine (#…
juliusmarminge Nov 19, 2026
71e1bb2
fix(server): Antigravity sign-in names a runtime crash instead of bla…
juliusmarminge Nov 19, 2026
0a159c9
fix(server): agent messages queued behind /compact keep send order (#…
juliusmarminge Nov 19, 2026
5283f33
fix(server): Antigravity limits read the 1.5.x CLI's stored sign-in (…
juliusmarminge Nov 19, 2026
06eda8e
fix(server): Codex stdio MCP servers receive T3CODE_THREAD_ID (#39414)
juliusmarminge Nov 19, 2026
505f6d6
fix(server): Antigravity accepts t3_background_wait for its own backg…
juliusmarminge Nov 19, 2026
990f31c
fix(server): host sleep no longer times out an Antigravity turn (#39395)
OmarAlex24 Nov 19, 2026
944d182
fix(server): Antigravity Google sign-in shows its link with the nativ…
juliusmarminge Nov 19, 2026
9f6f554
fix(server): worktree handoff no longer leaves Antigravity threads Wa…
juliusmarminge Nov 19, 2026
dcf158c
feat(server): setting and managed policy to turn off the preview tunn…
juliusmarminge Nov 19, 2026
5ee1c2f
fix(server): accept Antigravity model IDs with thinking levels when d…
Lucenx9 Nov 19, 2026
38bac70
fix(client-runtime): an unexpected failure no longer stops the reconn…
viktorce Nov 19, 2026
12fe863
merge upstream/main into fork
adampeterhiggins Nov 20, 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
  •  
  •  
  •  
34 changes: 24 additions & 10 deletions .github/scripts/check-nightly-release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ async function resolveLatestNightlyCommit({ github, context, core }) {
// The two places a nightly install looks for an update: the `update-feed` pointer, and
// releases.atom, which holds the 10 newest git tags of any kind. Older installs take the first
// nightly in the feed. Reports what each names beside the newest published nightly.
async function readNightlyUpdateFeed({ github, context, fetch = globalThis.fetch }) {
async function readNightlyUpdateFeed({
github,
context,
fetch = globalThis.fetch,
sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
}) {
const latest = await findLatestNightly({ github, context });
if (!latest) return {};

Expand All @@ -150,19 +155,28 @@ async function readNightlyUpdateFeed({ github, context, fetch = globalThis.fetch

// An unreadable feed leaves `feedTags` unset, so the pointer is still repaired. An error page
// can answer HTTP 200, so only an Atom document counts as read.
let feedTags;
try {
const feed = await fetch(`${base}/releases.atom`, { signal: signal() });
const body = feed.ok ? await feed.text() : "";
if (/<feed[\s>]/.test(body)) {
feedTags = Array.from(body.matchAll(/href="[^"]*\/releases\/tag\/([^"]+)"/g), (match) =>
const readFeed = async () => {
try {
const feed = await fetch(`${base}/releases.atom`, { signal: signal() });
const body = feed.ok ? await feed.text() : "";
if (!/<feed[\s>]/.test(body)) return {};
const feedTags = Array.from(body.matchAll(/href="[^"]*\/releases\/tag\/([^"]+)"/g), (match) =>
decodeURIComponent(match[1]),
);
const feedNightly = feedTags.find((tag) => /^v?\d+\.\d+\.\d+-nightly\./.test(tag));
return { feedTags, feedNightly };
} catch {
return {};
}
} catch {}
const feedNightly = feedTags?.find((tag) => /^v?\d+\.\d+\.\d+-nightly\./.test(tag));
};
// The feed can lag a release published seconds ago, so read it again before calling it hidden.
let feed = await readFeed();
for (let retry = 0; retry < 3 && feed.feedTags && feed.feedNightly !== latest.tagName; retry++) {
await sleep(30_000);
feed = await readFeed();
}

return { tag: latest.tagName, pointerTag, feedNightly, feedTags };
return { tag: latest.tagName, pointerTag, ...feed };
}

module.exports = {
Expand Down
16 changes: 15 additions & 1 deletion .github/scripts/check-nightly-release.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,33 @@ const atomFeed = (tags) => new Response(`<feed>${tags.map(atomEntry).join("")}</
const NEWEST = "v1.0.1-nightly.20260905.123";
const OLDER = "v1.0.1-nightly.20260905.100";

// `feed` is one response for every read, or a list read in order whose last entry repeats.
function updateFeedFixture({ feed, pointer }) {
const { options } = fixture({
releases: [nightly(1), nightly(0, { tagName: "v1.0.2-preview.1" })],
});
const feeds = [feed].flat();
options.fetch = async (url) =>
url === "https://github.com/example/app/releases.atom"
? feed
? (feeds.length > 1 ? feeds.shift() : feeds[0]).clone()
: url === "https://github.com/example/app/releases/download/update-feed/nightly.json"
? pointer
: assert.fail(`unexpected fetch ${url}`);
options.sleeps = [];
options.sleep = async (ms) => void options.sleeps.push(ms);
return options;
}

test("update feed check waits for a nightly published moments ago to reach the feed", async () => {
const options = updateFeedFixture({
feed: [atomFeed([OLDER]), atomFeed([NEWEST, OLDER])],
pointer: Response.json({ tag_name: NEWEST }),
});
const { feedNightly } = await readNightlyUpdateFeed(options);
assert.equal(feedNightly, NEWEST);
assert.deepEqual(options.sleeps, [30_000]);
});

const missing = () => new Response("Not Found", { status: 404 });
// HTTP 200, then the connection drops before the body arrives.
const brokenBody = () =>
Expand Down
17 changes: 14 additions & 3 deletions .github/triage/PLAYBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,20 @@ of `main` for that work, never the tag-pinned diagnosis clone.
- Show the user the complete final issue text and get an explicit yes before
posting. Never post without it.
- Note at the end of the issue which model and agent produced it.
- Post with `gh issue create --repo pingdotgg/t3code --label via-triage` only
if `gh api repos/pingdotgg/t3code --jq .permissions.triage` prints `true`.
- Otherwise, or if `gh` is not authenticated, build a prefilled
- If `gh` is authenticated to github.com, post through the "Triage report"
issue template. It applies `via-triage` for every reporter, while
`gh issue create --label` drops the label without triage permission. Write
the approved title and body to files, the title without a trailing newline,
so the shell never parses their text. Then run:

gh api --hostname github.com graphql -f repo="$(gh api --hostname github.com repos/pingdotgg/t3code --jq .node_id)" -f template="Triage report" -F title=@<title-file> -F body=@<body-file> -f query='mutation($repo:ID!,$template:String!,$title:String!,$body:String!){createIssue(input:{repositoryId:$repo,issueTemplate:$template,title:$title,body:$body}){issue{url labels(first:20){nodes{name}}}}}'

Report the issue URL and whether its labels include `via-triage`. Never file a
second issue to repair a label. If you cannot tell whether the issue was
created, check the user's recent issues before you retry.

- If `gh` is not authenticated, or the request was rejected and created
nothing, build a prefilled
https://github.com/pingdotgg/t3code/issues/new?template=via-triage.yml URL.
The form applies the label whoever submits it. Add `title` plus one
URL-encoded query parameter per form field id: `what-happened`, `diagnosis`,
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The most common defect in this repo is a change that works on the path you teste

- `vp i` installs. Worktrees get this from the t3.json setup script; if module resolution looks broken, it probably did not run.
- Setup runs in the background. While `.t3/setup-running` names a live PID, wait for it and do not run `vp i`. It ends with `.t3/setup-done` or `.t3/setup-failed` (with the error tail). With no marker at all, setup never ran here, so run `vp i` yourself.
- `vp run dev` starts server and web. In a worktree, state defaults to that worktree's gitignored `.t3`, which deliberately outranks an ambient `T3CODE_HOME` so you cannot land on shared state by accident. An explicit `--home-dir` still wins.
- `vp run dev` starts server and web. In a worktree, state defaults to that worktree's gitignored `.t3`, which deliberately outranks an ambient `T3CODE_HOME` so you cannot land on shared state by accident. An explicit `--home-dir` still wins. A plain `git clone` is not a worktree: it shares `~/.t3/dev` with the main checkout and is not seeded. To isolate one, run `vp run migrate-dev-db --base-dir <clone>/.t3`, then `vp run dev --home-dir <clone>/.t3`.
- Ports derive from the worktree path and are stable across restarts, but read the real ones from the `[dev-runner]` line since occupied ports shift.
- Sharing over the tailnet is three steps: run `vp run dev --share` in the background, wait for the `pairingUrl:` line in its output, then give that full URL to an unpaired browser. Do not wire up `tailscale serve` by hand, open the URL yourself, or consume the user's pairing link. A browser with the reusable dev cookie can use the bare origin. If a normal one-time token was consumed, mint a fresh one with `node apps/server/src/bin.ts pair`. It carries standard scopes, while the startup URL carries admin scopes needed for Connections settings.
- To reuse web dev auth across worktrees, configure one fixed `T3CODE_DEV_AUTH_TOKEN` in the main checkout's gitignored `.env`. The `t3.json` setup links that file into worktrees. Never commit or publish the token or a startup URL. See [Reusable dev credential](docs/operations/development.md#reusable-dev-credential).
Expand Down
5 changes: 5 additions & 0 deletions apps/desktop/src/ipc/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export const PREVIEW_OPEN_LINK_CHANNEL = "desktop:preview-open-link";
export const PREVIEW_FIND_RESULT_CHANNEL = "desktop:preview-find-result";
export const PREVIEW_TUNNEL_ACCESS_REQUEST_CHANNEL = "desktop:preview-tunnel-access-request";
export const PREVIEW_TUNNEL_ACCESS_RESOLVE_CHANNEL = "desktop:preview-tunnel-access-resolve";
export const PORT_FORWARD_START_CHANNEL = "desktop:port-forward-start";
export const PORT_FORWARD_STOP_CHANNEL = "desktop:port-forward-stop";
export const PORT_FORWARD_LIST_CHANNEL = "desktop:port-forward-list";
export const PORT_FORWARD_CHANGE_CHANNEL = "desktop:port-forward-change";
export const PORT_FORWARD_SHARES_LOOPBACK_CHANNEL = "desktop:port-forward-shares-loopback";

export const MAC_PERMISSION_HELPER_CHANNEL = "desktop:mac-permission-helper";

Expand Down
51 changes: 51 additions & 0 deletions apps/desktop/src/ipc/methods/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import {
DesktopPreviewCreateTabInputSchema,
DesktopPreviewTabInputSchema,
DesktopPreviewTunnelAccessResolutionInputSchema,
DesktopPortForwardInputSchema,
DesktopPortForwardSchema,
DesktopSharesLoopbackInputSchema,
DesktopPreviewWebviewConfigSchema,
PreviewAnnotationSubmissionResultSchema,
PreviewCaptureFailure,
Expand Down Expand Up @@ -66,6 +69,10 @@ export const installPreviewEventForwarding = Effect.fn(
yield* manager.subscribeFindResults((event) =>
electronWindow.sendAll(IpcChannels.PREVIEW_FIND_RESULT_CHANNEL, event),
);
const tunnel = yield* LoopbackTunnel.LoopbackTunnel;
yield* tunnel.subscribeForwards((forwards) =>
electronWindow.sendAll(IpcChannels.PORT_FORWARD_CHANGE_CHANNEL, forwards),
);
});

const setForwardedShortcuts = DesktopIpc.makeIpcMethod({
Expand Down Expand Up @@ -379,6 +386,46 @@ const resolveTunnelAccess = DesktopIpc.makeIpcMethod({
}),
});

const forwardPort = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PORT_FORWARD_START_CHANNEL,
payload: DesktopPortForwardInputSchema,
result: DesktopPortForwardSchema,
handler: Effect.fn("desktop.ipc.preview.forwardPort")(function* (input) {
const tunnel = yield* LoopbackTunnel.LoopbackTunnel;
return yield* tunnel.forward(input);
}),
});

const stopPortForward = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PORT_FORWARD_STOP_CHANNEL,
payload: DesktopPortForwardInputSchema,
result: Schema.Void,
handler: Effect.fn("desktop.ipc.preview.stopPortForward")(function* (input) {
const tunnel = yield* LoopbackTunnel.LoopbackTunnel;
yield* tunnel.stopForward(input);
}),
});

const listPortForwards = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PORT_FORWARD_LIST_CHANNEL,
payload: Schema.Void,
result: Schema.Array(DesktopPortForwardSchema),
handler: Effect.fn("desktop.ipc.preview.listPortForwards")(function* () {
const tunnel = yield* LoopbackTunnel.LoopbackTunnel;
return yield* tunnel.forwards;
}),
});

const sharesLoopback = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PORT_FORWARD_SHARES_LOOPBACK_CHANNEL,
payload: DesktopSharesLoopbackInputSchema,
result: Schema.Boolean,
handler: Effect.fn("desktop.ipc.preview.sharesLoopback")(function* ({ environmentId }) {
const tunnel = yield* LoopbackTunnel.LoopbackTunnel;
return yield* tunnel.sharesLoopback(environmentId);
}),
});

export const listBrowserImportSources = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PREVIEW_IMPORT_SOURCES_CHANNEL,
payload: Schema.Void,
Expand Down Expand Up @@ -523,6 +570,10 @@ export const methods = [
clearCache,
getPreviewConfig,
resolveTunnelAccess,
forwardPort,
stopPortForward,
listPortForwards,
sharesLoopback,
setAnnotationTheme,
setAnnotationSendEnabled,
pickElement,
Expand Down
16 changes: 16 additions & 0 deletions apps/desktop/src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,22 @@ contextBridge.exposeInMainWorld("desktopBridge", {
},
resolveTunnelAccess: (requestId, url) =>
ipcRenderer.invoke(IpcChannels.PREVIEW_TUNNEL_ACCESS_RESOLVE_CHANNEL, { requestId, url }),
forwardPort: (environmentId, remotePort) =>
ipcRenderer.invoke(IpcChannels.PORT_FORWARD_START_CHANNEL, { environmentId, remotePort }),
stopPortForward: (environmentId, remotePort) =>
ipcRenderer.invoke(IpcChannels.PORT_FORWARD_STOP_CHANNEL, { environmentId, remotePort }),
listPortForwards: () => ipcRenderer.invoke(IpcChannels.PORT_FORWARD_LIST_CHANNEL),
sharesLoopback: (environmentId) =>
ipcRenderer.invoke(IpcChannels.PORT_FORWARD_SHARES_LOOPBACK_CHANNEL, { environmentId }),
onPortForwards: (listener) => {
const wrappedListener = (_event: Electron.IpcRendererEvent, forwards: unknown) => {
if (!Array.isArray(forwards)) return;
listener(forwards);
};
ipcRenderer.on(IpcChannels.PORT_FORWARD_CHANGE_CHANNEL, wrappedListener);
return () =>
ipcRenderer.removeListener(IpcChannels.PORT_FORWARD_CHANGE_CHANNEL, wrappedListener);
},
setAnnotationTheme: (theme) =>
ipcRenderer.invoke(IpcChannels.PREVIEW_SET_ANNOTATION_THEME_CHANNEL, { theme }),
setAnnotationSendEnabled: (tabId, enabled) =>
Expand Down
Loading