@devries-cameron20 / t3code-1 / commits / ddc36529ad
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(forgejo): the fj sign-in hint points subpath servers to tea (#36290)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Shai List committed Nov 14, 2026 at 08:17 UTC ddc36529ad76f9c4ef24ae3f6eda6a83ed7bb22e
3 files changed +4 -4
docs/user/source-control.md
+1 -1
@@ -55,7 +55,7 @@ T3 Code prefers a matching `fj` login and falls back to `tea` when `fj` is unava
55 or has no login for that server. Once an account is selected, failed actions stay on that
56 account. Settings shows the detected CLI. Forgejo and Gitea share one integration entry.
57 Servers hosted under a URL subpath, such as `https://example.com/forgejo`, use `tea` because
58 -fj 0.6 does not preserve the subpath when checking its account.
58 +fj does not preserve the subpath when checking its account.
59
60 When cloning or publishing, use a full repository URL to select a specific server.
61 You can use `owner/repo` when only one fj server is configured, or with your default `tea`
packages/source-control-forgejo/src/server/ForgejoCli.ts
+2 -2
@@ -305,7 +305,7 @@ export const make = Effect.gen(function* () {
305 const remote = remoteUrl ? parseForgejoRemote(remoteUrl) : null;
306 return Object.keys(keys.hosts).flatMap((host) => {
307 const url = parseForgejoRemote(`https://${host}`);
308 - // fj 0.6 drops URL mounts during whoami and OAuth renewal; tea supports them.
308 + // fj drops URL mounts during whoami and OAuth renewal; tea supports them.
309 if (!url || url.path) return [];
310 // fj omits the scheme in storage. Only an explicit matching HTTP remote opts into HTTP.
311 const scheme =
@@ -634,7 +634,7 @@ export const make = Effect.gen(function* () {
634 cwd: input.cwd,
635 reason: "authentication",
636 detail:
637 - "No matching Forgejo login. Use `fj auth login`, `fj auth add-token`, or `tea login add` for this server; choose a default when multiple tea accounts match.",
637 + "No matching Forgejo login. Use `fj auth login`, `fj auth add-token`, or `tea login add` for this server. For a server under a URL subpath, use `tea login add`. Choose a default when multiple tea accounts match.",
638 });
639 if (hostOnly)
640 return { command, login: login.name, repository: "", baseUrl: login.url.replace(/\/+$/, "") };
packages/source-control-forgejo/src/server/ForgejoSourceControlProvider.ts
+1 -1
@@ -129,7 +129,7 @@ export const makeDiscovery = Effect.gen(function* () {
129 : providerAuth({
130 status: "unauthenticated",
131 detail:
132 - "Authenticate this server with `fj --host <server-url> auth add-token`.",
132 + "Authenticate this server with `fj --host <server-url> auth add-token`. For a server under a URL subpath, such as `https://example.com/forgejo`, use `tea login add` instead.",
133 }),
134 },
135 });