Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
51675e0
fix(antigravity): agy CLI threads open in Full access and Auto-accept…
t3dotgg Nov 9, 2026
920ffcd
test(web): OpenInPicker announcement test no longer hears the previou…
t3dotgg Nov 9, 2026
0770446
ci(release): retry transient GitHub API errors when resolving the rel…
t3dotgg Nov 9, 2026
7da0ef0
fix(muse): retries show while Muse waits and fold away once it recove…
t3dotgg Nov 9, 2026
6dad2ad
feat(cli): npx t3 offers to install the t3 command (#33150)
t3dotgg Nov 9, 2026
b690f08
fix(web): removing a secret provider lists the Simlock tokens that re…
MarcoDotIO Nov 9, 2026
8e1581a
fix(server): a duplicate variable row no longer deletes a stored secr…
juliusmarminge Nov 9, 2026
986a4f5
chore(mobile): sync Enriched Markdown with upstream 1d00a92a (#32180)
juliusmarminge Nov 9, 2026
d0807b7
feat(mobile): Mermaid and math fences render like they do on web (#32…
juliusmarminge Nov 9, 2026
3dc54f4
feat(desktop): a fresh install sets up the t3 command (#33153)
t3dotgg Nov 9, 2026
35675bf
fix(release): Windows signing retries transient Azure Trusted Signing…
t3dotgg Nov 9, 2026
3bb4544
fix: secret cards show the agent's sign-in link as a button (#33157)
t3dotgg Nov 9, 2026
81fb019
ci(release): scheduled nightly checks read 10 KB instead of 28 MB (#3…
t3dotgg Nov 9, 2026
d0f1f72
docs(secrets): sign op in with a service account or Connect on remote…
yordis Nov 9, 2026
743bb8c
fix(provider-core): agents ask for a sudo password through the privat…
juliusmarminge Nov 9, 2026
ca920d5
ci(release): Linux desktop builds reuse cached AppImage, FPM, and 7-Z…
t3dotgg Nov 9, 2026
2877a5e
ci(release): hosted web alias job checks out 3 files, not the repo (#…
t3dotgg Nov 9, 2026
357fb75
ci: startup and sidebar changes open the seeded thread before merge (…
t3dotgg Nov 9, 2026
415f68d
refactor(mobile): components/ui platform primitives are iOS files wit…
juliusmarminge Nov 9, 2026
225685a
feat(pi): Fast and Ultrafast service tiers for Pi models (#33177)
bmdavis419 Nov 9, 2026
1d5404a
fix(mobile): older chat messages show the date, not just the time (#3…
t3dotgg Nov 9, 2026
eb97d82
feat: text generators let model APIs write titles, commits, and trans…
juliusmarminge Nov 9, 2026
6375070
fix(mobile): feature screens use the components/ui menu, dialog and s…
juliusmarminge Nov 9, 2026
d9506dc
Merge commit '6375070' into fix/mobile-connection-timings-upstream-63…
fireboltdude1357 Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/ci-changes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ outputs:
value: ${{ steps.detect.outputs.typecheck }}
build:
value: ${{ steps.detect.outputs.build }}
desktop_launch:
value: ${{ steps.detect.outputs.desktop_launch }}
test:
value: ${{ steps.detect.outputs.test }}
test_packages:
Expand Down
59 changes: 42 additions & 17 deletions .github/scripts/check-nightly-release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,42 +40,67 @@ async function assertReleaseSource({ github, context, releaseChannel }) {

const isNightlyTag = (tag) => /^v.*-nightly\./.test(tag) || tag.startsWith("nightly-v");

async function findLatestNightly({ github, context }) {
const releases = await github.paginate(github.rest.repos.listReleases, {
...context.repo,
per_page: 100,
});
return releases
.filter((release) => !release.draft && release.published_at && isNightlyTag(release.tag_name))
.sort((a, b) => Date.parse(b.published_at) - Date.parse(a.published_at))[0];
// Only the three fields the gate reads. The REST list also returns every asset,
// which made a full scan tens of megabytes.
const RELEASES_QUERY = `
query ($owner: String!, $repo: String!, $cursor: String) {
repository(owner: $owner, name: $repo) {
releases(first: 100, after: $cursor, orderBy: { field: CREATED_AT, direction: DESC }) {
pageInfo { hasNextPage endCursor }
nodes { tagName isDraft publishedAt }
}
}
}
`;

// Returns the nightly with the newest publishedAt. Release order follows the
// tagged commit date, not publication, so every page is read unless `isSettled`
// says the newest nightly seen so far already decides the caller's answer.
async function findLatestNightly({ github, context, isSettled = () => false }) {
let latest;
let cursor = null;
do {
const { repository } = await github.graphql(RELEASES_QUERY, { ...context.repo, cursor });
const { nodes, pageInfo } = repository.releases;
for (const release of nodes) {
if (release.isDraft || !release.publishedAt || !isNightlyTag(release.tagName)) continue;
if (!latest || Date.parse(release.publishedAt) > Date.parse(latest.publishedAt)) {
latest = release;
}
}
if (latest && isSettled(latest)) return latest;
cursor = pageInfo.hasNextPage ? pageInfo.endCursor : null;
} while (cursor);
return latest;
}

async function shouldReleaseNightly({ github, context, core, now = Date.now() }) {
const lastNightly = await findLatestNightly({ github, context });
const isInGap = (release) => now - Date.parse(release.publishedAt) < MINIMUM_RELEASE_GAP_MS;
// Any nightly inside the gap means the newest one is too, so stop reading.
const lastNightly = await findLatestNightly({ github, context, isSettled: isInGap });

if (!lastNightly) {
core.info("No published nightly found. Proceeding with release.");
return true;
}

if (now - Date.parse(lastNightly.published_at) < MINIMUM_RELEASE_GAP_MS) {
core.info(`Nightly ${lastNightly.tag_name} was published less than six hours ago. Skipping.`);
const tag = lastNightly.tagName;
if (isInGap(lastNightly)) {
core.info(`Nightly ${tag} was published less than six hours ago. Skipping.`);
return false;
}

const { data: comparison } = await github.rest.repos.compareCommitsWithBasehead({
...context.repo,
basehead: `${lastNightly.tag_name}...${context.sha}`,
basehead: `${tag}...${context.sha}`,
per_page: 1,
});
if (comparison.status !== "ahead") {
core.info(
`Candidate commit is ${comparison.status} relative to ${lastNightly.tag_name}. Skipping.`,
);
core.info(`Candidate commit is ${comparison.status} relative to ${tag}. Skipping.`);
return false;
}

core.info(`New commits since ${lastNightly.tag_name}, and the six-hour gap has passed.`);
core.info(`New commits since ${tag}, and the six-hour gap has passed.`);
return true;
}

Expand All @@ -85,7 +110,7 @@ async function resolveLatestNightlyCommit({ github, context, core }) {
throw new Error("No published nightly found. Stable releases build the latest nightly commit.");
}

const tag = lastNightly.tag_name;
const tag = lastNightly.tagName;
const { data: commit } = await github.rest.repos.getCommit({ ...context.repo, ref: tag });
const version = /^(?:nightly-)?v(\d+\.\d+\.\d+)-nightly\./.exec(tag)?.[1];
if (!version) {
Expand Down
102 changes: 84 additions & 18 deletions .github/scripts/check-nightly-release.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const {
const now = Date.parse("2026-09-05T12:00:00Z");
const hour = 60 * 60 * 1000;
const nightly = (hoursAgo, overrides = {}) => ({
tag_name: "v1.0.1-nightly.20260905.123",
draft: false,
published_at: new Date(now - hoursAgo * hour).toISOString(),
tagName: "v1.0.1-nightly.20260905.123",
isDraft: false,
publishedAt: new Date(now - hoursAgo * hour).toISOString(),
...overrides,
});

Expand Down Expand Up @@ -73,26 +73,39 @@ for (const comparisonStatus of ["behind", "diverged"]) {
});
}

function fixture({ releases = [nightly(7)], comparisonStatus = "ahead" } = {}) {
// `pages` holds the GraphQL release pages; `releases` is shorthand for one page.
function fixture({ releases = [nightly(7)], pages = [releases], comparisonStatus = "ahead" } = {}) {
const calls = [];
const cursors = [];
return {
calls,
cursors,
options: {
now,
context: { repo: { owner: "example", repo: "app" }, sha: "new" },
core: { info() {} },
github: {
rest: {
repos: {
listReleases() {},
async compareCommitsWithBasehead(params) {
calls.push(params);
return { data: { status: comparisonStatus } };
},
},
},
async paginate() {
return releases;
async graphql(_query, { owner, repo, cursor }) {
assert.deepEqual({ owner, repo }, { owner: "example", repo: "app" });
cursors.push(cursor);
const index = cursor === null ? 0 : Number(cursor);
const hasNextPage = index + 1 < pages.length;
return {
repository: {
releases: {
nodes: pages[index],
pageInfo: { hasNextPage, endCursor: hasNextPage ? String(index + 1) : null },
},
},
};
},
},
},
Expand All @@ -101,28 +114,65 @@ function fixture({ releases = [nightly(7)], comparisonStatus = "ahead" } = {}) {

test("releases the first nightly when no nightly is published", async () => {
const { options } = fixture({
releases: [nightly(0, { tag_name: "v1.0.0" }), nightly(0, { draft: true })],
releases: [nightly(0, { tagName: "v1.0.0" }), nightly(0, { isDraft: true })],
});
assert.equal(await shouldReleaseNightly(options), true);
});

test("uses publication time, not release order or the tagged commit date", async () => {
const { options } = fixture({
releases: [nightly(10), nightly(1), nightly(20, { tag_name: "nightly-v0.9.0" })],
releases: [nightly(10), nightly(1), nightly(20, { tagName: "nightly-v0.9.0" })],
});
assert.equal(await shouldReleaseNightly(options), false);
});

test("the six-hour gap ends exactly six hours after publication", async () => {
const atBoundary = fixture({ releases: [nightly(6)] });
assert.equal(await shouldReleaseNightly(atBoundary.options), true);
const justInside = fixture({ releases: [nightly(6 - 1 / 3_600_000)] });
assert.equal(await shouldReleaseNightly(justInside.options), false);
assert.equal(justInside.calls.length, 0);
});

test("stops reading releases once a nightly inside the gap is seen", async () => {
const { options, cursors } = fixture({ pages: [[nightly(10), nightly(2)], [nightly(30)]] });
assert.equal(await shouldReleaseNightly(options), false);
assert.deepEqual(cursors, [null]);
});

test("reads every page when no nightly seen so far settles the gap", async () => {
const { options, cursors, calls } = fixture({
pages: [
[nightly(10), nightly(0, { tagName: "v1.0.0" })],
[nightly(1, { tagName: "nightly-v0.9.0" })],
],
});
assert.equal(await shouldReleaseNightly(options), false);
assert.deepEqual(cursors, [null, "1"]);
assert.equal(calls.length, 0);
});

test("compares against the newest nightly across pages once the gap has passed", async () => {
const { options, calls } = fixture({
pages: [[nightly(10, { tagName: "v1.0.1-nightly.20260905.100" })], [nightly(8)]],
});
assert.equal(await shouldReleaseNightly(options), true);
assert.deepEqual(
calls.map((call) => call.basehead),
["v1.0.1-nightly.20260905.123...new"],
);
});

test("ignores stable releases and drafts when checking the gap", async () => {
const { options } = fixture({
releases: [nightly(0, { tag_name: "v1.0.0" }), nightly(0, { draft: true }), nightly(7)],
releases: [nightly(0, { tagName: "v1.0.0" }), nightly(0, { isDraft: true }), nightly(7)],
});
assert.equal(await shouldReleaseNightly(options), true);
});

test("fails instead of releasing when GitHub cannot supply release state", async () => {
const { options } = fixture();
options.github.paginate = async () => {
options.github.graphql = async () => {
throw new Error("GitHub unavailable");
};
await assert.rejects(shouldReleaseNightly(options), /GitHub unavailable/);
Expand All @@ -137,9 +187,9 @@ for (const status of ["behind", "diverged"]) {

const { resolveLatestNightlyCommit } = require("./check-nightly-release.cjs");

function nightlyCommitFixture({ releases, commitSha = "abc123" }) {
function nightlyCommitFixture({ releases, pages, commitSha = "abc123" }) {
const refs = [];
const { options } = fixture({ releases });
const { options } = fixture({ releases, pages });
options.github.rest.repos.getCommit = async ({ ref }) => {
refs.push(ref);
return { data: { sha: commitSha } };
Expand All @@ -150,10 +200,10 @@ function nightlyCommitFixture({ releases, commitSha = "abc123" }) {
test("stable releases resolve the commit of the newest published nightly", async () => {
const { options, refs } = nightlyCommitFixture({
releases: [
nightly(10, { tag_name: "v1.0.1-nightly.20260905.100" }),
nightly(1, { tag_name: "v1.0.1-nightly.20260905.123" }),
nightly(0, { tag_name: "v1.0.0" }),
nightly(0, { draft: true, tag_name: "v1.0.1-nightly.20260905.999" }),
nightly(10, { tagName: "v1.0.1-nightly.20260905.100" }),
nightly(1, { tagName: "v1.0.1-nightly.20260905.123" }),
nightly(0, { tagName: "v1.0.0" }),
nightly(0, { isDraft: true, tagName: "v1.0.1-nightly.20260905.999" }),
],
commitSha: "deadbeef",
});
Expand All @@ -167,7 +217,23 @@ test("stable releases resolve the commit of the newest published nightly", async

test("stable releases derive the version from legacy nightly tags", async () => {
const { options } = nightlyCommitFixture({
releases: [nightly(1, { tag_name: "nightly-v0.9.0-nightly.20260905.5" })],
releases: [nightly(1, { tagName: "nightly-v0.9.0-nightly.20260905.5" })],
});
assert.equal((await resolveLatestNightlyCommit(options)).version, "0.9.0");
});

test("stable releases read every page, even after a recent nightly", async () => {
const { options, refs } = nightlyCommitFixture({
pages: [
[nightly(2, { tagName: "v1.0.1-nightly.20260905.100" })],
[nightly(1, { tagName: "v1.0.1-nightly.20260905.123" })],
],
});
assert.equal((await resolveLatestNightlyCommit(options)).tag, "v1.0.1-nightly.20260905.123");
assert.deepEqual(refs, ["v1.0.1-nightly.20260905.123"]);
});

test("stable releases fail when no nightly is published", async () => {
const { options } = nightlyCommitFixture({ releases: [nightly(1, { tagName: "v1.0.0" })] });
await assert.rejects(resolveLatestNightlyCommit(options), /No published nightly found/);
});
23 changes: 22 additions & 1 deletion .github/scripts/ci-changes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ const BUILD_ONLY_DEPS = { t3: ["@t3tools/web"] };
const MOBILE_NATIVE =
/^apps\/mobile\/.*\.(swift|kt|kts)$|^apps\/mobile\/(\.swiftlint\.yml|detekt\.yml|\.editorconfig|Brewfile)$|^scripts\/mobile-native-static-check\.ts$|^package\.json$|^\.github\/workflows\/ci\.yml$|^\.github\/scripts\/ci-changes\.cjs$|^\.github\/actions\/ci-changes\//;

// Startup, migration, settlement, and sidebar paths that decide whether an upgraded user's
// threads show after launch. Build runs scripts/smoke-desktop-app.ts for them, so they do not
// first fail in the release launch check.
const DESKTOP_LAUNCH = [
/^apps\/desktop\/src\/((main|boot|compileCache|serverCompileCache)\.ts$|(app|backend|window)\/)/,
/^apps\/desktop\/src\/electron\/(ElectronApp|ElectronProtocol|ElectronWindow)\.ts$/,
/^apps\/web\/src\/((main|AppRoot|appInit)\.tsx|(bootstrap|router)\.ts)$/,
/^apps\/web\/src\/.*sidebar/i,
/^apps\/server\/src\/(bin|binMain|server|serverRuntimeStartup)\.ts$/,
/^apps\/server\/src\/persistence\/Migrations/,
/^apps\/server\/src\/orchestration-v2\/((ThreadSettlementService|ProjectionStore)\.ts$|legacy\/)/,
/^packages\/contracts\/src\/settings\.ts$/,
/^scripts\/(smoke-desktop-app\.ts|fixtures\/desktop-launch\/)/,
];

const OWN_TEST_JOB = new Set(["t3", "@t3tools/web", "@t3tools/monorepo"]);

function readWorkspace() {
Expand Down Expand Up @@ -151,12 +166,18 @@ function decide(files, packages, full) {
(pkg) => pkg.hasTest && !OWN_TEST_JOB.has(pkg.name) && affected.has(pkg.name),
);
const has = (name) => affected.has(name);
const desktopLaunch =
everything ||
files.some(
(file) => !/\.test\.tsx?$/.test(file) && DESKTOP_LAUNCH.some((pattern) => pattern.test(file)),
);

return {
affected: [...affected].sort(),
outputs: {
typecheck: affected.size > 0,
build: has("@t3tools/desktop") || has("t3") || has("@t3tools/web"),
build: has("@t3tools/desktop") || has("t3") || has("@t3tools/web") || desktopLaunch,
desktop_launch: desktopLaunch,
test: tested.length > 0,
// Empty means every package the Test job covers.
test_packages: everything ? "" : tested.map((pkg) => pkg.name).join(" "),
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/ci-changes.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function decide(
outputs: {
typecheck: boolean;
build: boolean;
desktop_launch: boolean;
test: boolean;
test_packages: string;
test_web: boolean;
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
outputs:
typecheck: ${{ steps.detect.outputs.typecheck }}
build: ${{ steps.detect.outputs.build }}
desktop_launch: ${{ steps.detect.outputs.desktop_launch }}
test: ${{ steps.detect.outputs.test }}
test_packages: ${{ steps.detect.outputs.test_packages }}
test_web: ${{ steps.detect.outputs.test_web }}
Expand Down Expand Up @@ -135,13 +136,14 @@ jobs:
if: needs.changes.outputs.build != 'false'

# Runs in the background while Vite+ installs; the step before the build waits for it.
# Xvfb is for the desktop launch check below.
- name: Start installing browser secret helper build libraries
if: needs.changes.outputs.build != 'false'
run: |
sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
(
set +e
sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config
sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config xvfb
echo "$?" > "$RUNNER_TEMP/apt-status"
) > "$RUNNER_TEMP/apt.log" 2>&1 < /dev/null &

Expand Down Expand Up @@ -192,6 +194,25 @@ jobs:
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: node apps/desktop/scripts/verify-preload-bundle.mjs

# The release launch check, run unpackaged against the same old-state fixture, for
# startup and sidebar changes. Packaging and signing stay release-only.
- name: Open the seeded thread in the built desktop app
id: desktop_launch
if: ${{ !cancelled() && steps.build.outcome == 'success' && needs.changes.outputs.desktop_launch != 'false' }}
timeout-minutes: 4
run: |
electron=$(node -p "require('./apps/desktop/node_modules/electron')")
xvfb-run -a node scripts/smoke-desktop-app.ts --executable "$electron" --app apps/desktop \
--artifacts-dir "$RUNNER_TEMP/desktop-launch-check"

- name: Upload desktop launch check
if: ${{ failure() && steps.desktop_launch.outcome == 'failure' }}
uses: actions/upload-artifact@v7
with:
name: desktop-launch-check
path: ${{ runner.temp }}/desktop-launch-check
if-no-files-found: ignore

# Browser tests run source modules; this boots the production chunk graph. The
# desktop build above already produced apps/web/dist, and the client waits about
# 15s for a session that never comes, so this runs here instead of in Test Web,
Expand Down Expand Up @@ -622,7 +643,7 @@ jobs:
# not needed. Gates are keyed by job name, except merged Build and the
# macOS lint.
echo "$RESULTS" | jq -e '.changes.outputs as $gates
| {build: ["build", "typecheck"], mobile_native_static_analysis: ["mobile_native"]} as $renamed
| {build: ["build", "typecheck", "desktop_launch"], mobile_native_static_analysis: ["mobile_native"]} as $renamed
| all(to_entries[];
.value.result == "success"
or (.value.result == "skipped"
Expand Down
Loading
Loading