GeezerVison is showing github.com — chore(release): sync upstream main for RTVision 0.0.58 by kalvenschraut · Pull Request #60 · RTVision/t3code
chore(release): sync upstream main for RTVision 0.0.58
#60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement . We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Uh oh!
There was an error while loading. Please reload this page.
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
371b52d
feat(web): answer pull request actions on the row at once (#12843)
maria-rcks Sep 21, 2026
33cb911
fix(mobile): stop iOS autocorrect from rewriting search queries (#12949)
juliusmarminge Sep 21, 2026
2c2fa8c
fix(web): pull request embed chip shows the state icon (#12951)
flamboh Sep 21, 2026
2d377bf
fix(web): dismiss selection actions when pressing buttons (#12950)
Yash-Singh1 Sep 21, 2026
d2a90b9
fix(web): name message copy actions accurately (#12865)
saphid Sep 21, 2026
80d9c18
fix(contracts): old message-sent events without turnId no longer stop…
Mnigos Sep 21, 2026
e1cbb70
fix(web): the custom snooze calendar starts the week where the locale…
Mnigos Sep 21, 2026
76cc9b0
chore(mobile): bump app version to 1.3.0
t3-code-bot[bot] Sep 21, 2026
1262d2f
feat(server): let t3.json limit or disable submodule init in new work…
juliusmarminge Sep 22, 2026
742173a
feat(settings): resolve t3.json inside the project settings resolver …
juliusmarminge Sep 22, 2026
0141bc2
feat(settings): choose how new worktrees initialize submodules (#12955)
juliusmarminge Sep 22, 2026
9a609a4
fix(web): show thread undo notice in the sidebar (#12972)
juliusmarminge Sep 22, 2026
5423ba0
feat(web): merge the comment and review buttons into one composer (#1…
Bil0000 Sep 22, 2026
e65bc1c
fix(web): allow text selection when renaming threads (#12935)
carterwsmith Sep 22, 2026
5a61f50
chore(lint): report className restyling of components/ui exports (#12…
juliusmarminge Sep 22, 2026
c26119a
refactor(web): drop className overrides that repeat the base styles (…
juliusmarminge Sep 22, 2026
438bf46
fix(web): close menus when clicking into the browser tab (#11148)
Gigioxx Sep 22, 2026
b5a0f81
refactor(web): give Spinner and RefreshIcon a size prop (#12985)
juliusmarminge Sep 22, 2026
aff9318
fix(web): retry failed attachment uploads after reconnect (#10338)
StiensWout Sep 22, 2026
da6a85b
fix(web): respect panel motion in composer transitions (#11064)
gsimone Sep 22, 2026
7c2702d
fix(web): read panel animation settings in the composer (#13098)
juliusmarminge Sep 22, 2026
f25a8e4
feat(models): add opus 5.5 without changing existing aliases (#13094)
t3-code-bot[bot] Sep 22, 2026
4d4d4a7
chore(sync): import upstream main before RTVision conflict overlays
kalvenschraut Sep 22, 2026
109fc69
fix(sync): retain RTVision integrations for release 0.0.58
kalvenschraut Sep 22, 2026
File filter
Filter by extension
.md
(1)
.ts
(8)
All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Hide whitespace
Diff view
Hide whitespace
feat(server): let t3.json limit or disable submodule init in new work…
Loading branch information
Uh oh!
There was an error while loading. Please reload this page.
commit 1262d2f3ab2940c1d47ca4f5c4ca42e5c7259765
There are no files selected for viewing
Original file line number
Diff line number
Diff line change
Expand Up
@@ -128,6 +128,8 @@ export interface CreateWorktreeProgress {
total: number;
}) => Effect.Effect<void, never>;
readonly onSubmodulesStarted?: () => Effect.Effect<void, never>;
/** Fires when `.gitmodules` exists but t3.json sets `worktreeSubmodules` to `"none"`. */
readonly onSubmodulesDisabled?: () => Effect.Effect<void, never>;
readonly onSubmoduleLine?: (line: string) => Effect.Effect<void, never>;
readonly onSubmodulesFinished?: (input: {
ok: boolean;
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -2353,6 +2353,84 @@ it.layer(TestLayer)("GitVcsDriver core integration", (it) => {
}),
);
it.effect("honors the t3.json worktreeSubmodules setting", () =>
Effect.gen(function* () {
const fileSystem = yield* FileSystem.FileSystem;
const pathService = yield* Path.Path;
const previousAllowedProtocol = process.env.GIT_ALLOW_PROTOCOL;
process.env.GIT_ALLOW_PROTOCOL = "file";
yield* Effect.addFinalizer(() =>
Effect.sync(() => {
if (previousAllowedProtocol === undefined) {
delete process.env.GIT_ALLOW_PROTOCOL;
} else {
process.env.GIT_ALLOW_PROTOCOL = previousAllowedProtocol;
}
}),
);
// inner -> nested, so a recursive init populates nested/NESTED.md and
// a top-level init leaves it empty.
const nestedRepo = yield* makeTmpDir("git-nested-");
yield* initRepoWithCommit(nestedRepo);
yield* writeTextFile(nestedRepo, "NESTED.md", "# nested\n");
yield* git(nestedRepo, ["add", "."]);
yield* git(nestedRepo, ["commit", "-m", "nested"]);
const innerRepo = yield* makeTmpDir("git-inner-");
yield* initRepoWithCommit(innerRepo);
yield* writeTextFile(innerRepo, "INNER.md", "# inner\n");
yield* git(innerRepo, ["submodule", "add", nestedRepo, "nested"]);
yield* git(innerRepo, ["add", "."]);
yield* git(innerRepo, ["commit", "-m", "inner"]);
const cwd = yield* makeTmpDir();
const { initialBranch } = yield* initRepoWithCommit(cwd);
yield* git(cwd, ["submodule", "add", innerRepo, "inner"]);
yield* git(cwd, ["commit", "-m", "add submodule"]);
const driver = yield* GitVcsDriver.GitVcsDriver;
const worktreesDir = yield* makeTmpDir("git-worktrees-");
const createWithMode = Effect.fn(function* (
fileMode: "recursive" | "top-level" | "none",
branch: string,
) {
yield* writeTextFile(cwd, "t3.json", `{ "worktreeSubmodules": "${fileMode}" }`);
yield* git(cwd, ["add", "t3.json"]);
yield* git(cwd, ["commit", "-m", `submodules: ${fileMode}`]);
const worktreePath = pathService.join(worktreesDir, branch);
const disabled = yield* Ref.make(false);
yield* driver.createWorktree(
{ cwd, path: worktreePath, refName: initialBranch, newRefName: branch },
{ progress: { onSubmodulesDisabled: () => Ref.set(disabled, true) } },
);
return {
disabled: yield* Ref.get(disabled),
inner: yield* fileSystem.exists(pathService.join(worktreePath, "inner", "INNER.md")),
nested: yield* fileSystem.exists(
pathService.join(worktreePath, "inner", "nested", "NESTED.md"),
),
};
});
assert.deepEqual(yield* createWithMode("recursive", "recursive"), {
disabled: false,
inner: true,
nested: true,
});
assert.deepEqual(yield* createWithMode("top-level", "top-level"), {
disabled: false,
inner: true,
nested: false,
});
assert.deepEqual(yield* createWithMode("none", "none"), {
disabled: true,
inner: false,
nested: false,
});
}),
);
it.effect("reports checkout progress during parallel worktree creation", () =>
Effect.gen(function* () {
const cwd = yield* makeTmpDir();
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -20,6 +20,7 @@ import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
import {
GitCommandError,
T3_PROJECT_FILE_NAME,
type ReviewDiffFileContentsInput,
type ReviewDiffPreviewInput,
type ReviewDiffFileStat,
Expand All
@@ -30,6 +31,7 @@ import { dedupeRemoteBranchesWithLocalMatches, normalizeGitRemoteUrl } from "@t3
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import { compactTraceAttributes } from "@t3tools/shared/observability";
import { decodeJsonResult } from "@t3tools/shared/schemaJson";
import { parseT3ProjectFile } from "@t3tools/shared/t3ProjectFile";
import { gitCommandDuration, gitCommandsTotal, withMetrics } from "../observability/Metrics.ts";
import * as GitVcsDriver from "./GitVcsDriver.ts";
import {
Expand Down
Expand Up
@@ -3092,19 +3094,39 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
// skills, tooling or source in one gets a worktree that is quietly missing
// them. Best-effort: the objects are usually already in the parent's
// `.git/modules`, but a first-ever clone needs the network, and failing to
// populate a submodule must not roll back the caller's thread.
// populate a submodule must not roll back the caller's thread. Repos with
// hundreds of nested submodules opt out or stop at the top level through
// t3.json, read from the checkout that was just created.
const hasSubmodules = yield* fileSystem
.exists(path.join(worktreePath, ".gitmodules"))
.pipe(Effect.orElseSucceed(() => false));
if (hasSubmodules) {
const submoduleMode = hasSubmodules
? yield* fileSystem.readFileString(path.join(worktreePath, T3_PROJECT_FILE_NAME)).pipe(
Effect.flatMap((contents) => {
const file = parseT3ProjectFile(contents);
return file === null
? Effect.logWarning("t3.json is invalid; initializing submodules recursively", {
worktreePath,
}).pipe(Effect.as("recursive" as const))
: Effect.succeed(file.worktreeSubmodules ?? "recursive");
}),
Effect.orElseSucceed(() => "recursive" as const),
)
: "none";
if (hasSubmodules && submoduleMode === "none" && progress?.onSubmodulesDisabled) {
yield* progress.onSubmodulesDisabled();
}
if (submoduleMode !== "none") {
if (progress?.onSubmodulesStarted) {
yield* progress.onSubmodulesStarted();
}
const onSubmoduleLine = progress?.onSubmoduleLine;
yield* runGit(
"GitVcsDriver.createWorktree.updateSubmodules",
worktreePath,
["submodule", "update", "--init", "--recursive"],
submoduleMode === "recursive"
? ["submodule", "update", "--init", "--recursive"]
: ["submodule", "update", "--init"],
onSubmoduleLine
? {
env: { LC_ALL: "C" },
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -1500,6 +1500,13 @@ const makeWsRpcLayer = (
worktreeSetupTracker.stageStatus(threadId, "submodules", "running"),
),
),
onSubmodulesDisabled: () =>
worktreeSetupTracker.stageStatus(
threadId,
"submodules",
"skipped",
"disabled in t3.json",
),
onSubmoduleLine: (line) => {
const submodulePath = /Submodule path '([^']+)'/.exec(line)?.[1];
return submodulePath === undefined
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -52,6 +52,10 @@ on each selected environment, and reset returns to the environment's shared list
For workspace mode, a project's `t3.json` preference applies when the project has no override.
Browser access changes apply when an agent session next starts.
New worktrees initialize git submodules recursively. If that step is slow because the repository
declares many nested submodules, set `"worktreeSubmodules"` in `t3.json` to `"top-level"` to stop
at the ones the repository declares itself, or `"none"` to leave them for a setup script.
## Storage cleanup
Open **Settings → Storage** to enable automatic cleanup on one machine or all connected
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -58,6 +58,13 @@ export const ExecutionEnvironmentPlatform = Schema.Struct({
*/
export const ThreadEnvMode = Schema.Literals(["local", "worktree"]);
export type ThreadEnvMode = typeof ThreadEnvMode.Type;
/**
* How a new worktree populates git submodules: every nested level, only the
* ones this repository declares, or not at all.
*/
export const WorktreeSubmodules = Schema.Literals(["recursive", "top-level", "none"]);
export type WorktreeSubmodules = typeof WorktreeSubmodules.Type;
export type ExecutionEnvironmentPlatform = typeof ExecutionEnvironmentPlatform.Type;
/** How a server can replace itself with another version when asked over RPC.
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -60,4 +60,10 @@ describe("T3ProjectFile", () => {
expect(decode({ defaultThreadEnvMode: "local" }).defaultThreadEnvMode).toBe("local");
expect(() => decode({ defaultThreadEnvMode: "remote" })).toThrow();
});
it("decodes worktreeSubmodules and rejects unknown modes", () => {
expect(decode({ worktreeSubmodules: "none" }).worktreeSubmodules).toBe("none");
expect(decode({ worktreeSubmodules: "top-level" }).worktreeSubmodules).toBe("top-level");
expect(() => decode({ worktreeSubmodules: "shallow" })).toThrow();
});
});
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
import * as Schema from "effect/Schema";
import * as SchemaTransformation from "effect/SchemaTransformation";
import { ThreadEnvMode } from "./environment.ts";
import { ThreadEnvMode, WorktreeSubmodules } from "./environment.ts";
import { ProjectScriptIcon } from "./orchestration.ts";
/** File name of the checked-in T3 project file, resolved at the workspace root. */
Expand Down
Expand Up
@@ -86,6 +86,12 @@ export const T3ProjectFile = Schema.Struct({
'Where new threads start for this repository: "worktree" for a fresh git worktree, "local" for the current checkout. A per-project setting in T3 Code overrides this; when neither is set, the global default applies.',
}),
),
worktreeSubmodules: Schema.optionalKey(
WorktreeSubmodules.annotate({
description:
'How new worktrees populate git submodules: "recursive" (the default) initializes nested submodules too, "top-level" initializes only those declared by this repository, and "none" leaves every submodule empty for a setup script to handle.',
}),
),
scripts: Schema.optionalKey(
Schema.Array(T3ProjectFileScript)
.annotate({
Expand Down
Original file line number
Diff line number
Diff line change
Expand Up
@@ -36,6 +36,7 @@ describe("buildT3ProjectFileJsonSchema", () => {
"defaultThreadEnvMode",
"iconPath",
"scripts",
"worktreeSubmodules",
]);
expect(schema.required).toBeUndefined();
expect(schema.properties.iconPath?.description).toContain("Workspace-relative path");
Expand Down
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.