Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
d944e2a
fix(desktop): open Teams web in the preview browser (#31489)
shivamhwp Nov 7, 2026
07508ff
fix(web): popovers over the desktop header respond to the pointer (#3…
shivamhwp Nov 7, 2026
b19c9f0
fix(web): add installable icons for Firefox on Android (#30420)
shivamhwp Nov 7, 2026
08a3909
fix: show latest reply age in active thread rows (#31825)
shivamhwp Nov 7, 2026
4cb6945
fix(mobile): keep settled status pills readable (#31635)
shivamhwp Nov 7, 2026
9f2bb98
fix(mobile): preserve line breaks in Markdown table cells (#29355)
shivamhwp Nov 7, 2026
006d7e3
fix(mobile): stop the work-row shimmer from updating every frame (#28…
shivamhwp Nov 7, 2026
33f8584
fix(server): t3 service install no longer moves a --base-dir service …
shivamhwp Nov 7, 2026
fe901ac
feat(voice): opt into cloud dictation with OpenAI, Grok, or OpenRoute…
juliusmarminge Nov 7, 2026
4bd82b2
fix(web): make first-run dictation setup discoverable (#32197)
juliusmarminge Nov 7, 2026
15b7275
fix(web): first-run voice setup offers a model for the user's languag…
juliusmarminge Nov 7, 2026
d4247a5
feat: auto-settle inactive threads after 7 days by default (#32325)
t3dotgg Nov 7, 2026
faeed8c
docs(updates): say when Update all leaves a provider out (#32269)
Djordje-Stojanovic Nov 7, 2026
d5c2c12
test(server): three more tests stop assuming a POSIX host (#32263)
MikaMcFlurry Nov 7, 2026
f901c37
fix(server): git failures are read in English when macOS git follows …
jason5545 Nov 7, 2026
f4c8854
fix(marketing): balance fork and download heading text (#32194)
extoci Nov 7, 2026
984fe2d
perf(shared): scan usage-limit support once per provider catalog (#32…
luke2x Nov 7, 2026
257e407
fix(pi): the T3 MCP extension file is written atomically (#32231)
rishabhx29 Nov 7, 2026
f8c7c75
fix(web): the main sidebar stays collapsed after relaunch (#24202)
shivamhwp Nov 7, 2026
0f4a130
fix(codex): explain speed limits on managed connections (#30322)
shivamhwp Nov 7, 2026
83a3674
fix(web): isolate scrollbar styles from iframe owners (#32398)
Yash-Singh1 Nov 7, 2026
fad24fc
fix(azure-devops): default-branch lookup no longer fails for missing …
voltcrash Nov 7, 2026
bc46c0f
perf(server): avoid lsof polling when Linux proc is usable (#30011)
voltcrash Nov 7, 2026
1b95213
fix(providers): remove incomplete ChatGPT connections (#29280)
voltcrash Nov 7, 2026
fd1adc8
fix(acp): retain streamed child tool output (#32411)
StiensWout Nov 7, 2026
7f7bf26
fix(web): recover ACP settings when projects change (#32409)
StiensWout Nov 7, 2026
48bb784
fix(shared): inline code like `allocator.cc:217` becomes a file chip …
felixlaga Nov 7, 2026
ce9b806
fix(server): theme files saved with a UTF-8 BOM are published instead…
felixlaga Nov 7, 2026
a975217
fix(grok): long command titles no longer end in a broken character (#…
felixlaga Nov 7, 2026
95e7dbf
fix(github): keep review-required until required reviewers approve (#…
wSedlacek Nov 7, 2026
c864b1c
feat(web): delete archived threads from the archive page (#22160)
voltcrash Nov 7, 2026
2d0a9df
fix(provider-acp): preserve UTF-8 across interleaved terminal streams…
StiensWout Nov 7, 2026
5cb2a7d
fix(pi): preserve explicit thinking when switching models (#32389)
StiensWout Nov 7, 2026
beaeeff
fix(acp): bound unread raw notification retention (#19585)
StiensWout Nov 7, 2026
eeb6e23
fix(web): keep Pi thinking controls visible before selection (#27397)
voltcrash Nov 7, 2026
67fdc53
fix(desktop): published themes reach the app when it uses this machin…
not-compromised Nov 7, 2026
e344153
fix(antigravity): check account access after installation (#32446)
Yash-Singh1 Nov 7, 2026
f016a16
fix(acp): preserve native form questions and typed answers (#19659)
StiensWout Nov 7, 2026
9f00ced
fix(antigravity): explain missing SOCKS dependency during refresh (#1…
StiensWout Nov 7, 2026
4c3a9d5
fix(cursor): use the SDK account for usage data (#32448)
Yash-Singh1 Nov 7, 2026
917ce99
fix(web): agent sign-in defaults to Auto access (#32186)
flamboh Nov 7, 2026
a601caa
fix(gitlab): `glab mr accept` counts as a shell merge (#32400)
felixlaga Nov 7, 2026
97d04c3
fix(forgejo): tea's `pull` and `m` aliases count as shell merges (#32…
felixlaga Nov 7, 2026
e455200
fix: side chats start with the parent's permission mode and reasoning…
Iweisc Nov 7, 2026
25bf84a
fix(mobile): center the Choose project empty-state buttons (#27450)
juliusmarminge Nov 7, 2026
511238c
fix(mobile): Android terminal sends hardware-keyboard arrows, Tab, an…
only21mil Nov 7, 2026
0080084
fix(mobile): group settled PR threads in the continue menu (#27941)
arifali123 Nov 7, 2026
af96a01
fix(mobile): shorten the model picker save action (#32551)
PixPMusic Nov 7, 2026
a9e709f
fix(mobile): center Android header confirmation buttons (#32239)
PixPMusic Nov 7, 2026
0450f85
fix(muse): a declined /compact reports its reason and no longer wedge…
juliusmarminge Nov 8, 2026
57ded10
fix(web): restore bold weight in rendered Markdown (#25694)
juliusmarminge Nov 8, 2026
f475de2
fix(web): device tool update buttons fit their popovers (#27030)
juliusmarminge Nov 8, 2026
ecf7f1a
fix(web): mobile sidebar keeps its width when shelves expand (#27541)
juliusmarminge Nov 8, 2026
28eff11
fix(web): lineage phase headers truncate instead of overflowing the d…
juliusmarminge Nov 8, 2026
71c2d3a
fix(server): storage report lists project worktrees nested inside pla…
juliusmarminge Nov 8, 2026
a1af184
fix(scripts): report:renders starts on Windows without a vp shim (#32…
only21mil Nov 8, 2026
8a84e94
perf(server): skip oversized history during handoff selection (#23821)
AksharP5 Nov 8, 2026
7b680b6
feat(antigravity): support agy CLI as custom binaryPath (#32503)
jorotodorovv Nov 8, 2026
e11c2fd
fix(mobile): share PDFs from the Android attachment viewer (#32266)
shivamhwp Nov 8, 2026
3cd97a1
fix(server): saved preview screenshots keep full resolution (#28255)
TonybynMp4 Nov 8, 2026
20fcc6c
fix(server): refresh linking tools in existing agent sessions (#26737)
shivamhwp Nov 8, 2026
d6c2b09
feat(server): html tools take a file path, so agents stop retyping pa…
t3dotgg Nov 8, 2026
09a54f0
fix(search): keep whole-word title matches above busy prefixes (#32242)
shivamhwp Nov 8, 2026
dff0b11
fix(connect): show why relay unlink failed (#25198)
shivamhwp Nov 8, 2026
22dc6f9
fix(mobile): keep scheduled task prompts clear of microphone (#32498)
shivamhwp Nov 8, 2026
8e6a732
feat(web,mobile): move a scheduled task to another thread (#31379)
binjamshid Nov 8, 2026
af65a55
perf(server): Codex tool calls no longer wait on reasoning summaries …
t3dotgg Nov 8, 2026
6417151
fix(web): fill combobox search fields (#32926)
shivamhwp Nov 8, 2026
ade4730
fix(server): mise-installed providers update through mise instead of …
ryanrhughes Nov 8, 2026
f71bca3
chore: sync upstream through ade473018d
andrewcai8 Nov 8, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions apps/desktop/src/app/DesktopAppIdentity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const layerElectronApp = (calls: ElectronAppCalls) =>
metadata: Effect.die("unexpected metadata read"),
name: Effect.succeed("T3 Code"),
systemLocale: Effect.succeed("en-US"),
preferredSystemLanguages: Effect.succeed(["en-US"]),
whenReady: Effect.void,
requestSingleInstanceLock: Effect.succeed(true),
quit: Effect.void,
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/app/DesktopLifecycle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function layerElectronApp(
metadata: Effect.die("unexpected metadata read"),
name: Effect.succeed("T3 Code"),
systemLocale: Effect.succeed("en-US"),
preferredSystemLanguages: Effect.succeed(["en-US"]),
whenReady: Effect.void,
requestSingleInstanceLock: Effect.succeed(true),
quit,
Expand Down
2 changes: 2 additions & 0 deletions apps/desktop/src/electron/ElectronApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class ElectronApp extends Context.Service<
readonly name: Effect.Effect<string>;
/** Packaged builds ship only en-US; app.getLocale() and Intl defaults do not reflect the OS locale. */
readonly systemLocale: Effect.Effect<string>;
readonly preferredSystemLanguages: Effect.Effect<ReadonlyArray<string>>;
readonly whenReady: Effect.Effect<void, ElectronAppWhenReadyError>;
readonly requestSingleInstanceLock: Effect.Effect<boolean>;
readonly quit: Effect.Effect<void>;
Expand Down Expand Up @@ -155,6 +156,7 @@ export const make = ElectronApp.of({
}
return toSystemLocaleTag(identifier, hourCycle);
}),
preferredSystemLanguages: Effect.sync(() => Electron.app.getPreferredSystemLanguages()),
whenReady: Effect.gen(function* () {
const isPackaged = Electron.app.isPackaged;
yield* Effect.tryPromise({
Expand Down
4 changes: 4 additions & 0 deletions apps/desktop/src/ipc/DesktopIpcHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { installNotificationBadge } from "./methods/notificationBadge.ts";
import { getClientSettings, setClientSettings } from "./methods/clientSettings.ts";
import { getConnectionCatalog, setConnectionCatalog } from "./methods/connectionCatalog.ts";
import {
getHostEnvironmentId,
getLocalEnvironmentEnabled,
setLocalEnvironmentEnabled,
} from "./methods/localEnvironment.ts";
Expand Down Expand Up @@ -38,6 +39,7 @@ import {
getLocalEnvironmentBearerToken,
installRelayTelemetryEnabled,
getSystemLocale,
getPreferredSystemLanguages,
getWindowFullscreenState,
openExternal,
readMedia,
Expand Down Expand Up @@ -96,10 +98,12 @@ export const installDesktopIpcHandlers = Effect.fn("desktop.ipc.installHandlers"
yield* ipc.handleSync(getAppBranding);
yield* installRelayTelemetryEnabled();
yield* ipc.handleSync(getSystemLocale);
yield* ipc.handleSync(getPreferredSystemLanguages);
yield* ipc.handleSync(getWindowFullscreenState);
yield* ipc.handleSync(getLocalEnvironmentBootstraps);
yield* ipc.handleSync(getLocalEnvironmentEnabled);
yield* ipc.handle(setLocalEnvironmentEnabled);
yield* ipc.handle(getHostEnvironmentId);
yield* ipc.handle(getLocalEnvironmentBearerToken);

yield* ipc.handle(getClientSettings);
Expand Down
2 changes: 2 additions & 0 deletions apps/desktop/src/ipc/channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ export const CLI_COMMAND_UNINSTALL_CHANNEL = "desktop:cli-command-uninstall";
export const GET_APP_BRANDING_CHANNEL = "desktop:get-app-branding";
export const GET_RELAY_TELEMETRY_ENABLED_CHANNEL = "desktop:get-relay-telemetry-enabled";
export const GET_SYSTEM_LOCALE_CHANNEL = "desktop:get-system-locale";
export const GET_PREFERRED_SYSTEM_LANGUAGES_CHANNEL = "desktop:get-preferred-system-languages";
export const GET_LOCAL_ENVIRONMENT_BOOTSTRAPS_CHANNEL = "desktop:get-local-environment-bootstraps";
export const GET_LOCAL_ENVIRONMENT_ENABLED_CHANNEL = "desktop:get-local-environment-enabled";
export const SET_LOCAL_ENVIRONMENT_ENABLED_CHANNEL = "desktop:set-local-environment-enabled";
export const GET_HOST_ENVIRONMENT_ID_CHANNEL = "desktop:get-host-environment-id";
export const GET_LOCAL_ENVIRONMENT_BEARER_TOKEN_CHANNEL =
"desktop:get-local-environment-bearer-token";
export const GET_CLIENT_SETTINGS_CHANNEL = "desktop:get-client-settings";
Expand Down
29 changes: 28 additions & 1 deletion apps/desktop/src/ipc/methods/localEnvironment.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { assert, describe, it } from "@effect/vitest";
import * as NodeServices from "@effect/platform-node/NodeServices";
import * as FileSystem from "effect/FileSystem";
import * as Path from "effect/Path";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";

Expand All @@ -10,7 +13,11 @@ import * as ElectronApp from "../../electron/ElectronApp.ts";
import * as ElectronTheme from "../../electron/ElectronTheme.ts";
import * as DesktopAppSettings from "../../settings/DesktopAppSettings.ts";
import * as DesktopWindow from "../../window/DesktopWindow.ts";
import { getLocalEnvironmentEnabled, setLocalEnvironmentEnabled } from "./localEnvironment.ts";
import {
getHostEnvironmentId,
getLocalEnvironmentEnabled,
setLocalEnvironmentEnabled,
} from "./localEnvironment.ts";

const layerUnusedLifecycleRuntime = Layer.mergeAll(
DesktopShutdown.layer,
Expand All @@ -27,6 +34,26 @@ const layerUnusedLifecycleRuntime = Layer.mergeAll(
);

describe("local environment IPC", () => {
it.effect("reads the shared home identity without creating one", () =>
Effect.gen(function* () {
const fs = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
const stateDir = yield* fs.makeTempDirectoryScoped();
const environment = DesktopEnvironment.DesktopEnvironment.of({
path,
stateDir,
} as DesktopEnvironment.DesktopEnvironment["Service"]);
const read = getHostEnvironmentId
.handler(undefined)
.pipe(Effect.provideService(DesktopEnvironment.DesktopEnvironment, environment));
assert.strictEqual(yield* read, null);
assert.isFalse(yield* fs.exists(path.join(stateDir, "environment-id")));
yield* fs.writeFileString(path.join(stateDir, "environment-id"), " service-id\n");
assert.strictEqual(yield* read, "service-id");
yield* fs.writeFileString(path.join(stateDir, "environment-id"), "\n");
assert.strictEqual(yield* read, null);
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
);
it.effect("relaunches only when the setting changes and keeps other settings", () => {
const relaunchReasons: Array<string> = [];
const layer = Layer.mergeAll(
Expand Down
17 changes: 17 additions & 0 deletions apps/desktop/src/ipc/methods/localEnvironment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Schema from "effect/Schema";

import * as DesktopEnvironment from "../../app/DesktopEnvironment.ts";
import * as DesktopLifecycle from "../../app/DesktopLifecycle.ts";
import * as DesktopAppSettings from "../../settings/DesktopAppSettings.ts";
import * as IpcChannels from "../channels.ts";
Expand Down Expand Up @@ -28,3 +30,18 @@ export const setLocalEnvironmentEnabled = makeIpcMethod({
}
}),
});

// A background service sharing this app's T3 home records its environment ID in the same state dir.
export const getHostEnvironmentId = makeIpcMethod({
channel: IpcChannels.GET_HOST_ENVIRONMENT_ID_CHANNEL,
payload: Schema.Void,
result: Schema.NullOr(Schema.String),
handler: Effect.fn("desktop.ipc.localEnvironment.getHostEnvironmentId")(function* () {
const environment = yield* DesktopEnvironment.DesktopEnvironment;
const fileSystem = yield* FileSystem.FileSystem;
const contents = yield* fileSystem
.readFileString(environment.path.join(environment.stateDir, "environment-id"))
.pipe(Effect.orElseSucceed(() => ""));
return contents.trim() || null;
}),
});
9 changes: 9 additions & 0 deletions apps/desktop/src/ipc/methods/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ export const getSystemLocale = DesktopIpc.makeSyncIpcMethod({
}),
});

export const getPreferredSystemLanguages = DesktopIpc.makeSyncIpcMethod({
channel: IpcChannels.GET_PREFERRED_SYSTEM_LANGUAGES_CHANNEL,
result: Schema.Array(Schema.String),
handler: Effect.fn("desktop.ipc.window.getPreferredSystemLanguages")(function* () {
const electronApp = yield* ElectronApp.ElectronApp;
return yield* electronApp.preferredSystemLanguages;
}),
});

export const getWindowFullscreenState = DesktopIpc.makeSyncIpcMethod({
channel: IpcChannels.GET_WINDOW_FULLSCREEN_STATE_CHANNEL,
result: Schema.Boolean,
Expand Down
7 changes: 7 additions & 0 deletions apps/desktop/src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ contextBridge.exposeInMainWorld("desktopBridge", {
const result = ipcRenderer.sendSync(IpcChannels.GET_SYSTEM_LOCALE_CHANNEL);
return typeof result === "string" ? result : null;
},
getPreferredSystemLanguages: () => {
const result: unknown = ipcRenderer.sendSync(
IpcChannels.GET_PREFERRED_SYSTEM_LANGUAGES_CHANNEL,
);
return Array.isArray(result) ? result.filter((tag) => typeof tag === "string") : [];
},
getLocalEnvironmentBootstraps: () => {
const result = ipcRenderer.sendSync(IpcChannels.GET_LOCAL_ENVIRONMENT_BOOTSTRAPS_CHANNEL);
if (!Array.isArray(result)) {
Expand All @@ -122,6 +128,7 @@ contextBridge.exposeInMainWorld("desktopBridge", {
ipcRenderer.sendSync(IpcChannels.GET_LOCAL_ENVIRONMENT_ENABLED_CHANNEL) !== false,
setLocalEnvironmentEnabled: (enabled) =>
ipcRenderer.invoke(IpcChannels.SET_LOCAL_ENVIRONMENT_ENABLED_CHANNEL, enabled),
getHostEnvironmentId: () => ipcRenderer.invoke(IpcChannels.GET_HOST_ENVIRONMENT_ID_CHANNEL),
getClientSettings: () => ipcRenderer.invoke(IpcChannels.GET_CLIENT_SETTINGS_CHANNEL),
setClientSettings: (settings) =>
ipcRenderer.invoke(IpcChannels.SET_CLIENT_SETTINGS_CHANNEL, settings),
Expand Down
30 changes: 29 additions & 1 deletion apps/desktop/src/preview/BrowserSession.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const { fromPartition, sessions } = vi.hoisted(() => ({
readonly setPermissionRequestHandler: ReturnType<typeof vi.fn>;
readonly setPermissionCheckHandler: ReturnType<typeof vi.fn>;
readonly setUserAgent: ReturnType<typeof vi.fn>;
readonly webRequest: { readonly onBeforeSendHeaders: ReturnType<typeof vi.fn> };
}
>(),
}));
Expand Down Expand Up @@ -62,6 +63,7 @@ describe("BrowserSession", () => {
setPermissionRequestHandler: vi.fn(),
setPermissionCheckHandler: vi.fn(),
setUserAgent: vi.fn(),
webRequest: { onBeforeSendHeaders: vi.fn() },
};
sessions.set(partition, browserSession);
return browserSession;
Expand Down Expand Up @@ -115,10 +117,12 @@ describe("BrowserSession", () => {
}).pipe(Effect.provide(layer)),
);

it.effect("keeps the guest's effective User-Agent equal to Electron's native one", () =>
it.effect("keeps the native User-Agent except for the Electron token sent to Teams", () =>
Effect.gen(function* () {
const nativeUserAgent =
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) T3Code(Alpha)/0.0.33 Chrome/146.0.7680.216 Electron/41.5.0 Safari/537.36";
const teamsUserAgent =
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) T3Code(Alpha)/0.0.33 Chrome/146.0.7680.216 Safari/537.36";
fromPartition.mockReset();
fromPartition.mockImplementation((partition: string) => {
let userAgent = nativeUserAgent;
Expand All @@ -131,6 +135,7 @@ describe("BrowserSession", () => {
setUserAgent: vi.fn((next: string) => {
userAgent = next;
}),
webRequest: { onBeforeSendHeaders: vi.fn() },
};
sessions.set(partition, browserSession);
return browserSession;
Expand All @@ -143,6 +148,29 @@ describe("BrowserSession", () => {
const browserSession = sessions.get(partition);
assert.isDefined(browserSession);
assert.strictEqual(browserSession.getUserAgent(), nativeUserAgent);

// Teams redirects Electron to an error page before sign-in; every other host sees the native one.
const calls = browserSession.webRequest.onBeforeSendHeaders.mock.calls;
assert.strictEqual(calls.length, 1);
const [filter, listener] = calls[0] ?? [];
assert.deepStrictEqual(filter, {
urls: ["https://teams.cloud.microsoft/*", "https://teams.microsoft.com/*"],
});
const send = (requestHeaders: Record<string, string>) => {
let response: { requestHeaders?: Record<string, string> } | undefined;
listener({ requestHeaders }, (next: typeof response) => {
response = next;
});
return response;
};
for (const key of ["User-Agent", "user-agent"]) {
const requestHeaders = { [key]: nativeUserAgent, Accept: "*/*" };
assert.deepStrictEqual(send(requestHeaders), {
requestHeaders: { [key]: teamsUserAgent, Accept: "*/*" },
});
assert.strictEqual(requestHeaders[key], nativeUserAgent);
}
assert.deepStrictEqual(send({ Accept: "*/*" }), {});
}).pipe(Effect.provide(layer)),
);

Expand Down
19 changes: 19 additions & 0 deletions apps/desktop/src/preview/BrowserSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const externalProtocolPromptUrl = (rawUrl: string | undefined): string | null =>
}
};

// Teams sends Electron User-Agents to an error page before sign-in. Electron allows one listener per session.
const TEAMS_URL_PATTERNS = ["https://teams.cloud.microsoft/*", "https://teams.microsoft.com/*"];

const MAX_PROMPT_URL_LENGTH = 300;

const truncateForPrompt = (text: string): string =>
Expand Down Expand Up @@ -342,6 +345,22 @@ export const make = Effect.gen(function* BrowserSessionMake() {
? clipboardReadDecisions.get(permissionOrigin(requestingOrigin) ?? "") === true
: ALLOWED_PREVIEW_PERMISSIONS.has(permission),
);
browserSession.webRequest.onBeforeSendHeaders(
{ urls: TEAMS_URL_PATTERNS },
({ requestHeaders }, callback) => {
const userAgent = Object.entries(requestHeaders).find(
([name]) => name.toLowerCase() === "user-agent",
);
if (userAgent === undefined) {
callback({});
return;
}
const [name, value] = userAgent;
callback({
requestHeaders: { ...requestHeaders, [name]: value.replace(/ Electron\/\S+/, "") },
});
},
);
const next = new Map(sessions);
next.set(partition, browserSession);
return [browserSession, next] as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function layerElectronApp(
metadata: Effect.die("unexpected metadata read"),
name: Effect.succeed("T3 Code"),
systemLocale: Effect.succeed("en-US"),
preferredSystemLanguages: Effect.succeed(["en-US"]),
whenReady: Effect.void,
requestSingleInstanceLock: Effect.succeed(true),
quit: Effect.void,
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/window/DesktopApplicationMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const layerElectronApp = Layer.succeed(ElectronApp.ElectronApp, {
metadata: Effect.die("unexpected metadata read"),
name: Effect.succeed("T3 Code"),
systemLocale: Effect.succeed("en-US"),
preferredSystemLanguages: Effect.succeed(["en-US"]),
whenReady: Effect.void,
requestSingleInstanceLock: Effect.succeed(true),
quit: Effect.void,
Expand Down
4 changes: 4 additions & 0 deletions apps/marketing/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,10 @@ const mobileEndorsementRows = [
.cta-title {
font-size: clamp(40px, 6vw, 72px);
}
.open-head h2,
.cta-title {
text-wrap: balance;
}
.cta-sub {
color: var(--fg-muted);
font-size: 18px;
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ const config: ExpoConfig = {
],
extra: {
appVariant: APP_VARIANT,
secretsFeatureEnabled: ["1", "true"].includes(
process.env.T3CODE_FEATURE_SECRETS?.trim().toLowerCase() ?? "",
),
iosPersonalTeamBuild: isIosPersonalTeamBuild,
relay: {
url: repoEnv.T3CODE_RELAY_URL ?? null,
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/deps/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
The Enriched Markdown tarball comes from Julius's [`fork/t3-mobile` branch](https://github.com/pingdotgg/enriched-markdown/tree/fork/t3-mobile). Its `t3-fork.json` records the exact source commit and upstream base. React block renderers and signed image sources (`renderers`, `resolveImageSource`) are upstream. The fork carries native streaming memory bounds (an 8 MiB measurement-key budget and coalesced pending renders), plus changes with an open upstream PR: the `onLinksChange` link list that link pills and iOS link menus read ([#1088](https://github.com/software-mansion/enriched-markdown/pull/1088)), Android inline image alignment ([#1089](https://github.com/software-mansion/enriched-markdown/pull/1089)), clipboard link metadata ([#962](https://github.com/software-mansion/enriched-markdown/pull/962)), development-host autolinks ([#961](https://github.com/software-mansion/enriched-markdown/pull/961)), and `md4cFlags.preserveWindowsPaths`, which keeps backslashes in Windows drive paths in prose ([#1105](https://github.com/software-mansion/enriched-markdown/pull/1105), after [md4c#5](https://github.com/software-mansion-labs/md4c/pull/5)).

To replace it, commit the fork changes, run `yarn install --immutable` and `yarn workspace react-native-enriched-markdown prepare` in the fork checkout, then `node scripts/pack-t3.mjs /path/to/t3code/apps/mobile/deps`. Keep the package version aligned with Julius's `fork/t3-mobile` branch. Rename the archive to include the first eight characters of the source commit, such as `react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz`, so each build has a distinct dependency path without version bumps. Update the tarball path in `apps/mobile/package.json` and `pnpm-workspace.yaml`'s `allowBuilds`, and run `vp i` to update the lockfile. Native clients need rebuilding when this dependency changes.

`patches/react-native-enriched-markdown@1.2.0-t3.16.patch` writes a newline inside a copied table cell as `<br>`, so Copy as Markdown keeps the row whole. It is not in the fork yet; fold it into `fork/t3-mobile` or drop it when you replace the tarball, since pnpm applies it to any archive with the same version.
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ class T3TerminalView(context: Context, appContext: AppContext) : ExpoView(contex
onInput(mapOf("data" to "\r"))
},
)
val navigationKeys = TerminalNavigationKeyListener { onInput(mapOf("data" to it)) }
inputView.setOnKeyListener { _, keyCode, event ->
if (readOnly) return@setOnKeyListener true
if (navigationKeys.onKey(inputView, keyCode, event)) return@setOnKeyListener true
if (event.action != KeyEvent.ACTION_DOWN) return@setOnKeyListener false
when {
keyCode == KeyEvent.KEYCODE_DEL -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package expo.modules.t3terminal

import android.view.KeyEvent
import android.view.View

internal class TerminalNavigationKeyListener(
private val send: (String) -> Unit
) : View.OnKeyListener {
override fun onKey(view: View?, keyCode: Int, event: KeyEvent): Boolean {
val sequence = sequenceFor(keyCode, event) ?: return false
if (event.action == KeyEvent.ACTION_DOWN) send(sequence)
// Unconsumed arrow and Tab key events move focus off the terminal input.
return true
}

// Matches iOS: these keys only without modifiers, plus Shift+Tab.
private fun sequenceFor(keyCode: Int, event: KeyEvent): String? = when {
keyCode == KeyEvent.KEYCODE_TAB && event.hasModifiers(KeyEvent.META_SHIFT_ON) -> "\u001b[Z"
!event.hasNoModifiers() -> null
keyCode == KeyEvent.KEYCODE_DPAD_UP -> "\u001b[A"
keyCode == KeyEvent.KEYCODE_DPAD_DOWN -> "\u001b[B"
keyCode == KeyEvent.KEYCODE_DPAD_RIGHT -> "\u001b[C"
keyCode == KeyEvent.KEYCODE_DPAD_LEFT -> "\u001b[D"
keyCode == KeyEvent.KEYCODE_TAB -> "\t"
keyCode == KeyEvent.KEYCODE_ESCAPE -> "\u001b"
else -> null
}
}
Loading
Loading