Skip to content

Commit 4f39664

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/configurable-session-idle-timeout
# Conflicts: # apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx # apps/web/src/components/settings/SettingsPanels.tsx # packages/contracts/src/settings.ts
2 parents 8045aa0 + 949929d commit 4f39664

1,534 files changed

Lines changed: 48536 additions & 29555 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/test-t3-app/SKILL.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ Test with meaningful project and thread data. Read
2121
[references/sqlite-fixtures.md](references/sqlite-fixtures.md) only when
2222
inspecting or seeding SQLite. Stop the test server before direct fixture writes.
2323

24+
## Drive agent turns for free
25+
26+
Do not spend a paid model to see a turn render. `vp run dev` registers the
27+
`Replay (dev)` provider, which replays recorded turns with simulated streaming
28+
through the real adapter and orchestration. Its models are scenarios:
29+
`showcase` covers thinking, a plan, tool calls, an approval, and markdown.
30+
Press `Ctrl+Alt+Shift+R` for a picker (GNOME takes that key for screen
31+
recording), call `window.t3dev.replay("showcase")`
32+
with `preview_evaluate`, or run
33+
`node apps/server/src/bin.ts thread start --base-dir .t3 --provider devReplay --model showcase <project> "go"`.
34+
When the test needs real provider behavior, use that provider's cheapest
35+
model, such as Haiku for Claude or Luna for Codex.
36+
2437
## Use the Browser panel
2538

2639
Call `preview_status`, then `preview_open` if the Browser panel is

‎.coderabbit.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig((ctx) => ({
2727
instructions: "Hold changed code to the rules in docs/internals/web-ui.md.",
2828
},
2929
{
30-
path: "**/*.test.{ts,tsx}",
30+
path: "**/*.test.*",
3131
instructions:
3232
"Hold changed tests to the rules in docs/internals/testing.md. Request tests only as those rules allow.",
3333
},

‎.github/triage/PLAYBOOK.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ provided alongside this playbook. Everything machine-specific lives there, not h
1111

1212
## 1. Ask what went wrong
1313

14-
Your first message to the user: ask them to describe what went wrong, in their own
15-
words. Ask them to paste screenshots directly into this session if they have any.
14+
Unless the user already described it, your first message asks what went wrong, in
15+
their own words. Ask them to paste screenshots directly into this session if they have any.
1616
Ask follow-up questions when the description is vague. Good repro steps are the most
1717
valuable thing you can extract from this conversation.
1818

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,6 @@ jobs:
225225
!/apps/mobile/modules/t3-terminal/Vendor/**/*.a
226226
sparse-checkout-cone-mode: false
227227

228-
# Blacksmith boots GitHub's Ubuntu runner image (gcc is usually present),
229-
# but ACP process-tree live tests compile a small pthread fixture with `cc`
230-
# and soft-skip when it is missing. Install build-essential so that path
231-
# always runs in CI instead of silently no-oping.
232-
- name: Install C toolchain for process-tree fixtures
233-
run: |
234-
sudo apt-get update
235-
sudo apt-get install -y --no-install-recommends build-essential
236-
command -v cc
237-
238228
- uses: ./.github/actions/setup-apt-mirrors
239229

240230
# The desktop tests compile the browser secret helper. The install runs in
@@ -344,6 +334,12 @@ jobs:
344334
- name: Test
345335
run: vp run --filter @t3tools/web test
346336

337+
# Browser tests run source modules; this boots the production chunk graph.
338+
- name: Boot the built web client
339+
run: |
340+
vp run --filter @t3tools/web build
341+
node apps/web/scripts/verify-built-boot.ts
342+
347343
# apps/server sets `fileParallelism: false`, so its test files run strictly
348344
# one at a time. Sharding spreads them over separate runners instead of
349345
# separate workers, so no two server test files ever share a machine and the

‎.github/workflows/deploy-relay.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ on:
55
branches:
66
- main
77
# Redeploys main after a variable or secret change. Alchemy redeploys the
8-
# Worker when a value it reads changes, so force is rarely needed, and it
9-
# replaces the Postgres runtime role (alchemy-run/alchemy#1832).
8+
# Worker when a value it reads changes, so force is rarely needed.
109
workflow_dispatch:
1110
inputs:
1211
force:
13-
description: Redeploy every resource, including ones with no detected changes. Replaces the Postgres runtime role.
12+
description: Redeploy every resource, including ones with no detected changes.
1413
type: boolean
1514
default: false
1615

‎.github/workflows/mobile-eas-production.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ jobs:
275275
--environment production \
276276
--platform ${{ inputs.platform }} \
277277
--message "$OTA_MESSAGE" \
278+
--emit-metadata \
278279
--non-interactive
279280
280281
# Reconcile each version separately because the major is in the fingerprint.
@@ -313,8 +314,11 @@ jobs:
313314
--environment production \
314315
--platform "$platform" \
315316
--message "$message" \
317+
--emit-metadata \
316318
--non-interactive; then
317319
echo ":white_check_mark: $platform/$profile: OTA published to production (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
320+
# The next target's export replaces dist; keep this one for the map upload.
321+
rm -rf "dist-$platform-$profile" && mv dist "dist-$platform-$profile"
318322
else
319323
failed=1
320324
echo ":x: $platform/$profile: OTA publish failed (fingerprint \`$hash\`)" >> "$GITHUB_STEP_SUMMARY"
@@ -354,3 +358,18 @@ jobs:
354358
fi
355359
done
356360
exit "$failed"
361+
362+
# Lets the relay symbolicate crash stacks from the updates published
363+
# above. A step of its own so the R2 credentials reach only this script,
364+
# not `eas update` and the dependencies it runs. Never fails the job.
365+
- name: Upload OTA source maps
366+
if: ${{ !cancelled() && steps.expo-token.outputs.present == 'true' }}
367+
working-directory: apps/mobile
368+
env:
369+
MOBILE_SOURCEMAPS_R2: ${{ secrets.MOBILE_SOURCEMAPS_R2 }}
370+
run: |
371+
for dir in dist dist-*; do
372+
if [ -f "$dir/eas-update-metadata.json" ]; then
373+
node scripts/upload-sourcemaps.mts ota "$dir"
374+
fi
375+
done

‎.github/workflows/release-desktop.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ on:
6464
required: false
6565
default: false
6666
type: boolean
67+
# Whether the job opens the packaged app against a seeded database and
68+
# opens a thread before uploading it. Linux AppImage or macOS DMG.
69+
launch_check:
70+
required: false
71+
default: false
72+
type: boolean
6773
# A runner of the target's own platform and architecture, for a `runner`
6874
# that cannot execute the target. The build job skips everything that
6975
# runs the packaged binaries, and a second job runs it there.
@@ -517,6 +523,38 @@ jobs:
517523
518524
vp run dist:desktop:artifact "${args[@]}"
519525
526+
# A build can package fine and still not open (a missing module in the
527+
# backend or the bundle). This launches the app from the shipped
528+
# AppImage or DMG.
529+
- name: Launch check
530+
if: inputs.launch_check
531+
shell: bash
532+
run: |
533+
set -euo pipefail
534+
check=(node scripts/smoke-desktop-app.ts --artifacts-dir "$RUNNER_TEMP/desktop-launch-check")
535+
if [[ "${{ inputs.platform }}" == "mac" ]]; then
536+
mount="$RUNNER_TEMP/desktop-launch-dmg"
537+
hdiutil attach -nobrowse -readonly -mountpoint "$mount" "$(ls "$GITHUB_WORKSPACE"/release/*.dmg)"
538+
trap 'hdiutil detach "$mount" -force >/dev/null || true' EXIT
539+
app=$(ls -d "$mount"/*.app)
540+
executable=$(/usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "$app/Contents/Info.plist")
541+
"${check[@]}" --executable "$app/Contents/MacOS/$executable"
542+
else
543+
sudo apt-get install -y xvfb
544+
appimage=$(ls "$GITHUB_WORKSPACE"/release/*.AppImage)
545+
chmod +x "$appimage"
546+
(cd "$RUNNER_TEMP" && "$appimage" --appimage-extract >/dev/null)
547+
xvfb-run -a "${check[@]}" --executable "$RUNNER_TEMP/squashfs-root/t3code"
548+
fi
549+
550+
- name: Upload launch check output
551+
if: failure() && inputs.launch_check
552+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
553+
with:
554+
name: desktop-launch-check-${{ inputs.platform }}-${{ inputs.arch }}
555+
path: ${{ runner.temp }}/desktop-launch-check
556+
if-no-files-found: ignore
557+
520558
# The verify job runs what this host could not: the packaged natives and
521559
# the CLI. Its scripts are bundled so that job needs no install.
522560
- name: Stage verification inputs

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ jobs:
344344
- name: Test
345345
run: vp run --filter @t3tools/web test
346346

347+
# Browser tests run source modules; this boots the production chunk graph.
348+
- name: Boot the built web client
349+
run: |
350+
vp run --filter @t3tools/web build
351+
node apps/web/scripts/verify-built-boot.ts
352+
347353
# Server test files run one at a time, so more small runners beat fewer big ones.
348354
test_server:
349355
name: Release server tests ${{ matrix.shard }}
@@ -613,6 +619,7 @@ jobs:
613619
rust_target: aarch64-apple-darwin
614620
resource_key: darwin-arm64
615621
cli_archive: true
622+
launch_check: true
616623

617624
desktop_mac_x64:
618625
name: Desktop macOS x64
@@ -662,6 +669,7 @@ jobs:
662669
rust_target: x86_64-unknown-linux-gnu
663670
resource_key: linux-x64
664671
cli_archive: true
672+
launch_check: true
665673

666674
# node-pty has no Linux prebuild and compiles from source, so the arm64 app
667675
# and archive are built on arm64 hardware rather than cross-built.

‎.macroscope/check-run-agents/effect-service-conventions.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Effect Service Conventions
3-
model: gpt-6-sol
4-
effort: max
3+
model: gpt-6-1-sol
4+
reasoning: low
55
input: incremental
66
tools:
77
- browse_code
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Test Signal
3+
model: gpt-6-1-terra
4+
reasoning: low
5+
input: incremental
6+
tools:
7+
- browse_code
8+
- modify_pr
9+
# An explicit include overrides ignore.md, which skips test files for every other check.
10+
include:
11+
- "**/*.test.*"
12+
exclude:
13+
- ".repos/**"
14+
requires:
15+
- Check
16+
maxBudgetPerRun: 1
17+
maxBudgetPerPR: 5
18+
conclusion: neutral
19+
---
20+
21+
# Test signal review
22+
23+
Review only the tests this pull request adds or grows. Tests it moves, renames, or deletes are not findings. The rules are in `docs/internals/testing.md` under `## What to test`; read that section first and hold new tests to it.
24+
25+
Post each finding as a brief inline comment on the new test with one fix. Ask only for fewer or smaller tests, never for more coverage.
26+
27+
When there are no findings, make the entire final response exactly `All clear` on one line with nothing else.

0 commit comments

Comments
 (0)