Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5ad0e23
feat(web): show thread and subagent tasks and usage
LaMarCab76 Nov 13, 2026
a2243df
fix(web): correct native tasks and bound thread usage reads
LaMarCab76 Nov 13, 2026
125463f
fix(server): preserve insights when descendant turn reads fail
LaMarCab76 Nov 13, 2026
32028cf
Merge pull request #1: thread and subagent tasks and usage
LaMarCab76 Nov 14, 2026
d12d9fb
Merge remote-tracking branch 'upstream/main'
LaMarCab76 Nov 14, 2026
1b05265
ci(fork): sync upstream and build desktop installers
LaMarCab76 Nov 14, 2026
9920fd0
feat(threads): optionally snooze a thread until its next scheduled ta…
LaMarCab76 Nov 14, 2026
0efc73d
Merge remote-tracking branch 'origin/feat/snooze-until-scheduled-task'
LaMarCab76 Nov 14, 2026
ee83442
ci(fork): build personal releases as T3 Code L with the nightly logo
LaMarCab76 Nov 14, 2026
a483280
chore(fork): merge upstream main preserving fork features
LaMarCab76 Nov 15, 2026
b24b638
fix(fork): publish increasing versions with updater-compatible tags
LaMarCab76 Nov 15, 2026
75aa7e8
fix(fork): include update feed in local installer builds
LaMarCab76 Nov 15, 2026
816feef
Merge remote-tracking branch 'upstream/main'
LaMarCab76 Nov 15, 2026
c016bd7
feat(web): command progress, thread details in the sidebar, and wallp…
LaMarCab76 Nov 16, 2026
77185bc
fix(web): address review on command progress, sidebar details, and wa…
LaMarCab76 Nov 16, 2026
474039f
Merge pull request #2: command progress, thread details in the sideba…
LaMarCab76 Nov 16, 2026
41a04c5
fix(web): overlay thread insights menu on lineage rows
LaMarCab76 Nov 16, 2026
0341184
fix(web): keep thread details on the right of the chat
LaMarCab76 Nov 16, 2026
1ea2ec2
Merge remote-tracking branch 'origin/main' into chat-menu-position
LaMarCab76 Nov 16, 2026
14533bb
fix(fork): address review findings before integration
LaMarCab76 Nov 16, 2026
7e4c0ac
fix(desktop): align mock update feed channels
LaMarCab76 Nov 16, 2026
cbe7caa
Merge pull request #3 from LaMarCab76/chat-menu-position
LaMarCab76 Nov 16, 2026
a34bb53
ci(fork): block merges with unresolved CodeRabbit threads
LaMarCab76 Nov 16, 2026
f4e6d79
Merge remote-tracking branch 'upstream/main'
LaMarCab76 Nov 16, 2026
222aefd
feat(web): show estimated cost in thread details
LaMarCab76 Nov 17, 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
55 changes: 55 additions & 0 deletions .github/fork/brand-l.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Personal fork branding: "T3 Code L" with the nightly logo, sharing the official app's data
// (~/.t3 and the t3code-v2 Chromium profile). Run from the repo root on a throwaway checkout
// before `scripts/build-desktop-artifact.ts`; it rewrites tracked files and must not be committed.
import * as NodeFS from "node:fs";

const NAME = "T3 Code L";
const APP_ID = "com.lamarcab76.t3code.l";

function replaceOnce(path, from, to) {
const text = NodeFS.readFileSync(path, "utf8");
if (text.split(from).length !== 2) throw new Error(`${path}: expected exactly one "${from}"`);
NodeFS.writeFileSync(path, text.replace(from, to));
}

replaceOnce(
"apps/desktop/src/app/DesktopEnvironment.ts",
'const APP_BASE_NAME = "T3 Code";',
`const APP_BASE_NAME = "${NAME}";`,
);
replaceOnce(
"apps/desktop/src/app/DesktopEnvironment.ts",
"displayName: `${APP_BASE_NAME} (${stageLabel})`,",
"displayName: APP_BASE_NAME,",
);
replaceOnce(
"apps/desktop/src/app/DesktopAppIdentity.ts",
"`${environment.branding.baseName} ${environment.branding.stageLabel}`,",
"environment.displayName,",
);
replaceOnce(
"scripts/build-desktop-artifact.ts",
'const DESKTOP_APP_ID = "com.t3tools.t3code";',
`const DESKTOP_APP_ID = "${APP_ID}";`,
);
replaceOnce("apps/desktop/src/app/DesktopEnvironment.ts", '"com.t3tools.t3code"', `"${APP_ID}"`);
replaceOnce(
"apps/desktop/package.json",
'"productName": "T3 Code (Beta)"',
`"productName": "${NAME}"`,
);

const icons = [
["nightly-macos-1024.png", "black-macos-1024.png"],
["nightly-universal-1024.png", "black-universal-1024.png"],
["nightly-windows.ico", "t3-black-windows.ico"],
["nightly-web-favicon.ico", "t3-black-web-favicon.ico"],
["nightly-web-favicon-16x16.png", "t3-black-web-favicon-16x16.png"],
["nightly-web-favicon-32x32.png", "t3-black-web-favicon-32x32.png"],
["nightly-web-apple-touch-180.png", "t3-black-web-apple-touch-180.png"],
["nightly-web-icon-192x192.png", "t3-black-web-icon-192x192.png"],
["nightly-web-icon-512x512.png", "t3-black-web-icon-512x512.png"],
];
for (const [from, to] of icons) NodeFS.copyFileSync(`assets/nightly/${from}`, `assets/prod/${to}`);

console.log(`Branded as ${NAME} (${APP_ID}) with the nightly logo.`);
131 changes: 131 additions & 0 deletions .github/workflows/fork-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Fork desktop builds
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: fork-desktop-builds
cancel-in-progress: false
jobs:
linux:
if: github.repository == 'LaMarCab76/t3code'
runs-on: ubuntu-24.04
outputs:
version: ${{ steps.meta.outputs.version }}
env:
T3CODE_DESKTOP_UPDATE_REPOSITORY: LaMarCab76/t3code
T3CODE_TELEMETRY_CHANNEL: dev
CSC_IDENTITY_AUTO_DISCOVERY: "false"
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
sparse-checkout: |
/*
!/.repos/
sparse-checkout-cone-mode: false
persist-credentials: false
- uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb
with:
node-version-file: package.json
run-install: false
- run: sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config libfuse2 imagemagick
- run: vp install --frozen-lockfile --filter=t3... --filter=@t3tools/web... --filter=@t3tools/desktop... --filter=@t3tools/scripts...
- run: node .github/fork/brand-l.mjs
- id: meta
run: echo "version=$(node -p 'require("./apps/desktop/package.json").version')-fork.$(date -u +%Y%m%d).${GITHUB_RUN_NUMBER}" >> "$GITHUB_OUTPUT"
- run: node scripts/update-release-package-versions.ts "${{ steps.meta.outputs.version }}"
- run: node scripts/build-desktop-artifact.ts --platform linux --target AppImage --arch x64 --build-version "${{ steps.meta.outputs.version }}" --output-dir release
- run: |
node apps/server/scripts/cli.ts build-exe
mkdir -p cli-monitor/linux-x64
cp native/resource-monitor/target/x86_64-unknown-linux-gnu/release/t3-resource-monitor cli-monitor/linux-x64/
node scripts/build-cli-archive.ts --platform linux --arch x64 --version "${{ steps.meta.outputs.version }}" --resource-monitor-dir "$PWD/cli-monitor" --output-dir release-cli
node scripts/smoke-cli-archive.ts --archive release-cli/*.tar.gz --expect-version "${{ steps.meta.outputs.version }}"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: wsl-runtime
path: release-cli/*.tar.gz
if-no-files-found: error
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: desktop-linux
path: |
release/*.AppImage
release/*.deb
release/*.yml
if-no-files-found: error
desktop:
needs: linux
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
platform: mac
target: dmg
arch: arm64
- runner: windows-2025
platform: win
target: nsis
arch: x64
runs-on: ${{ matrix.runner }}
defaults:
run:
shell: bash
env:
T3CODE_DESKTOP_UPDATE_REPOSITORY: LaMarCab76/t3code
T3CODE_TELEMETRY_CHANNEL: dev
CSC_IDENTITY_AUTO_DISCOVERY: "false"
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
sparse-checkout: |
/*
!/.repos/
sparse-checkout-cone-mode: false
persist-credentials: false
- uses: voidzero-dev/setup-vp@250f29ce396baf5e8f24498e17c0dfdebabc26eb
with:
node-version-file: package.json
run-install: false
- run: vp install --frozen-lockfile --filter=t3... --filter=@t3tools/web... --filter=@t3tools/desktop... --filter=@t3tools/scripts...
- run: node .github/fork/brand-l.mjs
- run: node scripts/update-release-package-versions.ts "${{ needs.linux.outputs.version }}"
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
if: matrix.platform == 'win'
with:
name: wsl-runtime
path: wsl-runtime
- run: |
args=()
if [[ "${{ matrix.platform }}" == win ]]; then args+=(--wsl-runtime "$PWD"/wsl-runtime/*.tar.gz); fi
node scripts/build-desktop-artifact.ts --platform "${{ matrix.platform }}" --target "${{ matrix.target }}" --arch "${{ matrix.arch }}" --build-version "${{ needs.linux.outputs.version }}" --output-dir release "${args[@]}"
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: desktop-${{ matrix.platform }}
path: |
release/*.dmg
release/*.zip
release/*.exe
release/*.yml
release/*.blockmap
if-no-files-found: error
publish:
needs: [linux, desktop]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
with:
path: artifacts
merge-multiple: true
- env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ needs.linux.outputs.version }}
run: |
cd artifacts
sha256sum * > SHA256SUMS
gh release create "v$VERSION" * --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "T3 Code L $VERSION" --notes "macOS arm64, Windows x64 and Linux x64. Personal unsigned builds; source $GITHUB_SHA."
50 changes: 50 additions & 0 deletions .github/workflows/fork-coderabbit-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Fork CodeRabbit gate
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
pull_request_review:
types: [submitted, dismissed]
pull_request_review_thread:
types: [resolved, unresolved]
permissions:
contents: read
pull-requests: read
concurrency:
group: fork-coderabbit-gate-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
threads:
name: CodeRabbit threads
if: github.repository == 'LaMarCab76/t3code'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
const { owner, repo } = context.repo;
const number = context.payload.pull_request.number;
const open = [];
let cursor = null;
do {
const { repository } = await github.graphql(
`query($owner: String!, $repo: String!, $number: Int!, $cursor: String) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
reviewThreads(first: 100, after: $cursor) {
pageInfo { hasNextPage endCursor }
nodes { isResolved path line comments(first: 1) { nodes { author { login } url } } }
}
}
}
}`,
{ owner, repo, number, cursor },
);
const threads = repository.pullRequest.reviewThreads;
for (const thread of threads.nodes) {
const first = thread.comments.nodes[0];
if (!thread.isResolved && first?.author?.login.startsWith('coderabbitai')) open.push({ ...thread, url: first.url });
}
cursor = threads.pageInfo.hasNextPage ? threads.pageInfo.endCursor : null;
} while (cursor);
for (const thread of open) core.error(`${thread.path}:${thread.line ?? '?'} ${thread.url}`);
if (open.length > 0) core.setFailed(`${open.length} unresolved CodeRabbit thread(s)`);
24 changes: 24 additions & 0 deletions .github/workflows/fork-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Fork upstream sync
on:
schedule:
- cron: "23 */6 * * *"
workflow_dispatch:
permissions:
contents: write
actions: write
concurrency:
group: fork-upstream-sync
cancel-in-progress: false
jobs:
sync:
if: github.repository == 'LaMarCab76/t3code'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd
with:
script: |
const { owner, repo } = context.repo;
const upstream = await github.rest.repos.getBranch({ owner: 'pingdotgg', repo: 't3code', branch: 'main' });
const result = await github.rest.repos.merge({ owner, repo, base: 'main', head: upstream.data.commit.sha, commit_message: 'chore(fork): sync upstream main' });
if (result.status === 204) return;
await github.rest.actions.createWorkflowDispatch({ owner, repo, workflow_id: 'fork-build.yml', ref: 'main' });
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const AUTO_SETTLE_SETTING_KEYS: ReadonlySet<string> = new Set([
"sidebarAutoSettleAfterDays",
"autoResumeLimitedThreads",
"snoozeLimitedThreads",
"snoozeThreadsUntilScheduledTask",
]);

function planServerSettingsWrites(
Expand Down
17 changes: 17 additions & 0 deletions apps/mobile/src/features/settings/ThreadSettingsSections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function AutoSettleSettingsRows(props: {
patch: Partial<AutoSettleSettings> & {
autoResumeLimitedThreads?: boolean;
snoozeLimitedThreads?: boolean;
snoozeThreadsUntilScheduledTask?: boolean;
},
) => props.write(patch);

Expand All @@ -122,6 +123,10 @@ export function AutoSettleSettingsRows(props: {
const disabledFor = (...keys: string[]) =>
disabled || managedSettingReason(displayTargets, ...keys) !== undefined;
const afterDays = referenceSettings.sidebarAutoSettleAfterDays;
const supportsScheduledTaskSnooze = displayTargets.every(
(target) =>
target.environment.serverConfig.environment.capabilities.scheduledTaskSnooze === true,
);

return (
<View className="gap-6">
Expand All @@ -145,6 +150,18 @@ export function AutoSettleSettingsRows(props: {
/>
</SettingsSection>
) : null}
{!projectSelected && supportsScheduledTaskSnooze ? (
<SettingsSection title="Scheduled tasks">
<SettingsSwitchRow
icon="clock"
label="Snooze until scheduled task runs"
subtitle="When a turn ends and the thread has a scheduled task coming up, snooze the thread until the task runs."
value={uniformMobileSetting(displayTargets, "snoozeThreadsUntilScheduledTask")}
disabled={disabledFor("snoozeThreadsUntilScheduledTask")}
onValueChange={(value) => writeToAll({ snoozeThreadsUntilScheduledTask: value })}
/>
</SettingsSection>
) : null}
<SettingsSection title="Auto-settle">
<SettingsSwitchRow
icon="arrow.triangle.branch"
Expand Down
7 changes: 6 additions & 1 deletion apps/server/src/auth/RpcAuthorization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
AuthSourceControlWriteScope,
AuthTerminalReadScope,
AuthTerminalOperateScope,
ORCHESTRATION_V2_WS_METHODS,
WS_METHODS,
WsRpcGroup,
} from "@t3tools/contracts";
Expand Down Expand Up @@ -70,7 +71,11 @@ describe("RPC authorization scopes", () => {
});

it("lets thread readers observe and refresh checkout branches", () => {
for (const method of [WS_METHODS.subscribeVcsBranch, WS_METHODS.vcsRefreshBranch]) {
for (const method of [
WS_METHODS.subscribeVcsBranch,
WS_METHODS.vcsRefreshBranch,
ORCHESTRATION_V2_WS_METHODS.getThreadInsights,
]) {
expect(requiredScopeForRpcMethod(method)).toBe(AuthOrchestrationReadScope);
}
});
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/auth/RpcAuthorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const RPC_REQUIRED_SCOPES = {
[ORCHESTRATION_V2_WS_METHODS.dispatchCommand]: AuthOrchestrationOperateScope,
[ORCHESTRATION_V2_WS_METHODS.getWorkflowScript]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getNativeChildWork]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.getThreadInsights]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.stopWorkflow]: AuthOrchestrationOperateScope,
[ORCHESTRATION_V2_WS_METHODS.forceStopThread]: AuthOrchestrationOperateScope,
[ORCHESTRATION_V2_WS_METHODS.getTurnDiff]: AuthOrchestrationReadScope,
Expand All @@ -61,6 +62,7 @@ export const RPC_REQUIRED_SCOPES = {
[ORCHESTRATION_V2_WS_METHODS.subscribeShell]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.subscribeThread]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.subscribeCommandOutput]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.subscribeCommandProgress]: AuthOrchestrationReadScope,
[ORCHESTRATION_V2_WS_METHODS.subscribePromptSuggestion]: AuthOrchestrationReadScope,
[WS_METHODS.projectsMutate]: AuthOrchestrationOperateScope,
[WS_METHODS.serverProbe]: AuthOrchestrationReadScope,
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/environment/ServerEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export const make = Effect.gen(function* () {
oneTimeSchedules: true,
freshContext: true,
scheduledTaskThreadModes: true,
scheduledTaskSnooze: true,
npmReleaseLookup: true,
voiceTranscription: isSpeechPlatformSupported(hostPlatform, hostArchitecture, hostLibc),
cloudVoiceTranscription: true,
Expand All @@ -295,6 +296,7 @@ export const make = Effect.gen(function* () {
linkFence: true,
mcpApprovalCodes: true,
mcpHostedApproval: true,
threadInsights: true,
shellThreadFamilies: true,
shellOlderSettled: true,
},
Expand Down
2 changes: 2 additions & 0 deletions apps/server/src/observability/RpcInstrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const RPC_AGGREGATES = {
[ORCHESTRATION_V2_WS_METHODS.dispatchCommand]: "orchestrationV2",
[ORCHESTRATION_V2_WS_METHODS.getWorkflowScript]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.getNativeChildWork]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.getThreadInsights]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.stopWorkflow]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.forceStopThread]: "orchestration",
[ORCHESTRATION_V2_WS_METHODS.getTurnItem]: "orchestration",
Expand All @@ -34,6 +35,7 @@ const RPC_AGGREGATES = {
[ORCHESTRATION_V2_WS_METHODS.subscribeShell]: "orchestrationV2",
[ORCHESTRATION_V2_WS_METHODS.subscribeThread]: "orchestrationV2",
[ORCHESTRATION_V2_WS_METHODS.subscribeCommandOutput]: "orchestrationV2",
[ORCHESTRATION_V2_WS_METHODS.subscribeCommandProgress]: "orchestrationV2",
[ORCHESTRATION_V2_WS_METHODS.subscribePromptSuggestion]: "orchestrationV2",
[WS_METHODS.projectsMutate]: "orchestration",
[WS_METHODS.serverProbe]: "server",
Expand Down
Loading
Loading