GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(sync): retain RTVision integrations for release 0.0.63 · RTVision/t3code@c3453c3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps
    • server/src
      • server.test.ts
    • web/src
      • components/pullRequest
        • PullRequestRow.tsx
      • routes
        • __root.tsx
        • _chat.pull-requests.tsx
  • docs/user
    • install.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/server.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/server.test.ts
+66-2Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ import {
117117
} from "./ws.ts";
118118
import * as CheckpointDiffQuery from "./checkpointing/CheckpointDiffQuery.ts";
119119
import * as GitManager from "./git/GitManager.ts";
120+
import * as DiskSpace from "./diskSpace.ts";
120121
import * as EnvironmentTheme from "./environmentTheme.ts";
121122
import * as UsageLimitSources from "./usage/UsageLimitSources.ts";
122123
import * as Keybindings from "./keybindings.ts";
@@ -172,6 +173,7 @@ import * as VcsStatusBroadcaster from "./vcs/VcsStatusBroadcaster.ts";
172173
import * as VcsDriverRegistry from "./vcs/VcsDriverRegistry.ts";
173174
import * as VcsProvisioningService from "./vcs/VcsProvisioningService.ts";
174175
import * as GitHubCli from "./sourceControl/GitHubCli.ts";
176+
import * as GiteaCli from "./sourceControl/GiteaCli.ts";
175177
import * as VcsProcess from "./vcs/VcsProcess.ts";
176178
import * as GitWorkflowService from "./git/GitWorkflowService.ts";
177179
import * as ReviewService from "./review/ReviewService.ts";
@@ -520,6 +522,7 @@ const buildAppUnderTest = (options?: {
520522
layers?: {
521523
keybindings?: Partial<Keybindings.Keybindings["Service"]>;
522524
environmentTheme?: Partial<EnvironmentTheme.EnvironmentThemeService["Service"]>;
525+
diskSpace?: Partial<DiskSpace.DiskSpace["Service"]>;
523526
providerRegistry?: Partial<ProviderRegistry.ProviderRegistry["Service"]>;
524527
modelManifest?: Partial<ModelManifest.ModelManifest["Service"]>;
525528
usageLimitSources?: Partial<UsageLimitSources.UsageLimitSources["Service"]>;
@@ -788,6 +791,11 @@ const buildAppUnderTest = (options?: {
788791
streamChanges: Stream.empty,
789792
...options?.layers?.environmentTheme,
790793
}),
794+
Layer.mock(DiskSpace.DiskSpace)({
795+
current: Effect.succeed(null),
796+
streamChanges: Stream.make(null),
797+
...options?.layers?.diskSpace,
798+
}),
791799
Layer.mock(UsageLimitSources.UsageLimitSources)({
792800
current: Effect.succeed([]),
793801
streamChanges: Stream.make([]),
@@ -1228,13 +1236,17 @@ const buildAppUnderTest = (options?: {
12281236
Layer.provideMerge(makeAuthTestLayer()),
12291237
Layer.provideMerge(ServerSecretStore.layer),
12301238
Layer.provide(workspaceAndProjectServicesLayer),
1239+
Layer.provide(Layer.mock(GiteaCli.GiteaCli)({ baseUrl: Option.none() })),
12311240
Layer.provideMerge(
12321241
options?.layers?.httpClient === undefined
12331242
? FetchHttpClient.layer
12341243
: Layer.succeed(HttpClient.HttpClient, options.layers.httpClient),
12351244
),
1236-
Layer.provide(GitHubCli.layer.pipe(Layer.provideMerge(VcsProcess.layer))),
1237-
Layer.provide(layerConfig),
1245+
// Folded into one step: `pipe` accepts at most twenty operators and the
1246+
// merged layer list reached twenty-one. Same wiring as two provides.
1247+
Layer.provide(
1248+
GitHubCli.layer.pipe(Layer.provideMerge(VcsProcess.layer), Layer.provideMerge(layerConfig)),
1249+
),
12381250
);
12391251

12401252
yield* Layer.build(appLayer);
@@ -6823,6 +6835,58 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
68236835
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
68246836
);
68256837

6838+
it.effect(
6839+
"subscribeServerConfig reports low disk space and streams changes to opt-in subscribers",
6840+
() =>
6841+
Effect.gen(function* () {
6842+
const report = (level: "warning" | "critical", availableBytes: number) => ({
6843+
level,
6844+
path: "/home/t3",
6845+
availableBytes,
6846+
totalBytes: 100_000_000_000,
6847+
});
6848+
6849+
yield* buildAppUnderTest({
6850+
layers: {
6851+
diskSpace: {
6852+
current: Effect.succeed(report("warning", 3_000_000_000)),
6853+
// Replays the snapshot's report first, like the live service.
6854+
streamChanges: Stream.make(
6855+
report("warning", 3_000_000_000),
6856+
report("critical", 500_000_000),
6857+
null,
6858+
),
6859+
},
6860+
providerRegistry: { streamChanges: Stream.empty },
6861+
},
6862+
});
6863+
6864+
const wsUrl = yield* getWsServerUrl("/ws");
6865+
const events = yield* Effect.scoped(
6866+
withWsRpcClient(wsUrl, (client) =>
6867+
client[WS_METHODS.subscribeServerConfig]({ lowDiskSpace: true }).pipe(
6868+
Stream.filter(
6869+
(event) => event.type === "snapshot" || event.type === "lowDiskSpaceUpdated",
6870+
),
6871+
Stream.take(3),
6872+
Stream.runCollect,
6873+
),
6874+
),
6875+
);
6876+
6877+
const [first, second, third] = Array.from(events);
6878+
assert.equal(first?.type, "snapshot");
6879+
if (first?.type === "snapshot") assert.equal(first.config.lowDiskSpace?.level, "warning");
6880+
// The replayed report duplicates the snapshot, so it is not resent.
6881+
assert.equal(second?.type, "lowDiskSpaceUpdated");
6882+
if (second?.type === "lowDiskSpaceUpdated") {
6883+
assert.equal(second.payload.lowDiskSpace?.level, "critical");
6884+
}
6885+
assert.equal(third?.type, "lowDiskSpaceUpdated");
6886+
if (third?.type === "lowDiskSpaceUpdated") assert.isNull(third.payload.lowDiskSpace);
6887+
}).pipe(Effect.provide(NodeHttpServer.layerTest)),
6888+
);
6889+
68266890
it.effect("subscribeServerConfig withholds published themes from other subscribers", () =>
68276891
Effect.gen(function* () {
68286892
const themes = [
Collapse file

‎apps/web/src/components/pullRequest/PullRequestRow.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/pullRequest/PullRequestRow.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function PullRequestRowImpl({
204204
meta={
205205
<>
206206
{showReviewRequest && entry.viewerReviewRequested && entry.state === "open" ? (
207-
<span className="shrink-0 rounded-full bg-amber-500/10 px-1.5 text-amber-700 dark:text-amber-400">
207+
<span className="shrink-0 rounded-full bg-warning/10 px-1.5 text-warning-foreground">
208208
Your review requested
209209
</span>
210210
) : null}
Collapse file

‎apps/web/src/routes/__root.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/routes/__root.tsx
+7-14Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
ToastProvider,
4444
toastManager,
4545
} from "../components/ui/toast";
46-
import { resolveAndPersistPreferredEditor } from "../editorPreferences";
46+
import { useOpenInPreferredEditor } from "../editorPreferences";
4747
import { isElectron } from "../env";
4848
import { applyAppearanceFontVariables } from "~/appearanceFonts";
4949
import { applyAppearanceContrast } from "~/appearanceContrast";
@@ -62,7 +62,6 @@ import { hasHostedPairingRequest, isHostedStaticApp } from "../hostedPairing";
6262
import { isLocalEnvironmentDisabled } from "../localEnvironment";
6363
import { shellEnvironment } from "../state/shell";
6464
import { useAtomValue } from "@effect/atom-react";
65-
import { useAtomCommand } from "../state/use-atom-command";
6665
import { useEnvironments, usePrimaryEnvironment } from "../state/environments";
6766
import {
6867
primaryServerConfigAtom,
@@ -479,10 +478,11 @@ function EventRouter({
479478
const pathname = useLocation({ select: (loc) => loc.pathname });
480479
const projectGroupingSettings = useClientSettings(selectProjectGroupingSettings);
481480
const primaryEnvironment = usePrimaryEnvironment();
482-
const openInEditor = useAtomCommand(shellEnvironment.openInEditor, {
483-
reportFailure: false,
484-
});
485481
const serverConfig = useAtomValue(primaryServerConfigAtom);
482+
const openInEditor = useOpenInPreferredEditor(
483+
primaryEnvironment?.environmentId ?? null,
484+
serverConfig?.availableEditors ?? [],
485+
);
486486
const serverConfigEvent = useAtomValue(primaryServerConfigEventAtom);
487487
const serverWelcome = useAtomValue(primaryServerWelcomeAtom);
488488
const readPathname = useEffectEvent(() => pathname);
@@ -567,17 +567,10 @@ function EventRouter({
567567
return;
568568
}
569569

570-
const editor = resolveAndPersistPreferredEditor(serverConfig.availableEditors);
571-
if (!editor) {
572-
return;
573-
}
574570
void (async () => {
575571
const result = await openInEditor({
576-
environmentId: primaryEnvironment.environmentId,
577-
input: {
578-
cwd: serverConfig.keybindingsConfigPath,
579-
editor,
580-
},
572+
kind: "file",
573+
path: serverConfig.keybindingsConfigPath,
581574
});
582575
if (result._tag === "Success") {
583576
return;
Collapse file

‎apps/web/src/routes/_chat.pull-requests.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/routes/_chat.pull-requests.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ function PullRequestsRouteView() {
17821782
{coverageWarnings.length > 0 ? (
17831783
<div
17841784
role="status"
1785-
className="mb-3 rounded-md border border-amber-500/20 bg-amber-500/5 px-3 py-2 text-sm text-muted-foreground"
1785+
className="mb-3 rounded-md border border-warning/20 bg-warning/5 px-3 py-2 text-sm text-muted-foreground"
17861786
>
17871787
{coverageWarnings.map((message) => (
17881788
<p key={message}>{message}</p>
Collapse file

‎docs/user/install.md‎

Copy file name to clipboardExpand all lines: docs/user/install.md
+24-58Lines changed: 24 additions & 58 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -5,88 +5,54 @@ desktop, web, or mobile app. Set up the machine where the agents will work first
55

66
## Requirements
77

8+
The `@rtvision/t3` npm package runs on Node.js 22.16+ in the 22.x line,
9+
23.11+ in the 23.x line, or 24.10 and later. Install Node.js and npm on the
10+
server and connect to RTVision's network to reach its npm registry. The desktop
11+
app includes its server runtime.
12+
13+
SSH hosts use a standalone archive when it is available and compatible. Hosts
14+
such as Alpine need Node.js and npm for the fallback installation.
15+
816
You need an installed, authenticated provider before starting a thread. You can
917
launch T3 Code and configure providers afterwards.
1018

1119
## Command line
1220

1321
```bash
14-
curl -fsSL https://t3.codes/install.sh | sh
15-
```
16-
17-
On Windows, in PowerShell:
18-
19-
```powershell
20-
irm https://t3.codes/install.ps1 | iex
22+
npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3@latest
2123
```
2224

23-
This puts `t3` in `~/.local/bin`. If your shell reports `command not found`
24-
afterwards, that directory is not on your `PATH` yet; the installer prints the
25-
line to add. Set `T3CODE_CHANNEL=nightly` to install the nightly train, or
26-
`T3CODE_VERSION` to pin an exact version.
27-
28-
| Task | Command |
29-
| ------------------------------------------------ | --------------------------------------------------------- |
30-
| Start the server and open the web app | `t3` |
31-
| Start the server without a browser | `t3 serve` |
32-
| Keep it running in the background (macOS, Linux) | `t3 service install` ([details](./background-service.md)) |
33-
| Move to the newest release | `t3 update` |
34-
| Remove it again | `t3 uninstall` |
35-
36-
Run `t3 --help` for the full reference.
37-
38-
To try T3 Code once without installing it, run `npx t3@latest` instead (needs
39-
Node.js for `npx`).
40-
41-
### Intel Macs
42-
43-
There is no `t3` executable for Intel Macs (the desktop app is available). To
44-
run a server there, build it from source with Node.js 24 and `vp`
45-
([Install vp](https://github.com/pingdotgg/t3code#install-vp)):
46-
47-
```bash
48-
git clone https://github.com/pingdotgg/t3code
49-
cd t3code && vp i && vp run build:desktop
50-
node apps/server/dist/bin.mjs
51-
```
52-
53-
`t3 update` and the background service do not apply to a server run this way;
54-
update it with `git pull` and a rebuild.
25+
This starts the server and opens the local web app. Run
26+
`npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3@latest --help` for command-line options.
5527

5628
## Desktop app
5729

58-
Download a release from [GitHub Releases](https://github.com/pingdotgg/t3code/releases),
59-
or use a package manager:
60-
61-
| Platform | Install |
62-
| ------------------ | ---------------------------------- |
63-
| Windows | `winget install T3Tools.T3Code` |
64-
| macOS | `brew install --cask t3-code` |
65-
| Debian, Ubuntu | `sudo apt install ./T3-Code-*.deb` |
66-
| Arch Linux | `yay -S t3code-bin` |
67-
| Arch Linux nightly | `yay -S t3code-nightly-bin` |
68-
69-
The `.deb` updates itself like the other desktop builds. It asks for your
70-
password to install each update. If your desktop has no password prompt, the
71-
update fails. Download the new `.deb` and install it the same way.
30+
Download the Windows x64 or Linux x64 installer from
31+
[RTVision GitHub Releases](https://github.com/RTVision/t3code/releases).
32+
Desktop installers are unsigned.
7233

7334
### Windows Subsystem for Linux
7435

7536
Choose a WSL distro in **Settings → Connections** to run agents and projects
76-
there. Install the provider CLIs inside that distro. T3 Code installs its own
77-
server runtime there automatically; the first launch after an app update can
78-
take longer.
37+
there. Install and authenticate provider CLIs inside that distro. T3 Code installs its
38+
matching server runtime there automatically; the first launch after an app
39+
update can take longer.
40+
41+
The bundled Linux runtime needs `libatomic.so.1`. On Debian or Ubuntu, install
42+
it inside the WSL distro with `sudo apt-get update && sudo apt-get install libatomic1`.
43+
If a startup failure switched the app to Windows, re-enable the WSL backend in
44+
**Settings → Connections** after installing the library.
7945

8046
### Open a project from a terminal
8147

8248
With the desktop app already running on the same machine:
8349

8450
```bash
85-
t3 app
51+
npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3 app
8652
```
8753

8854
This opens a new thread for the current directory, adding the project if needed.
89-
Pass a path, such as `t3 app ../my-project`, to open another directory. It requires
55+
Pass a path, such as `npx --registry=https://npm-registry.rtvision.com/ @rtvision/t3 app ../my-project`, to open another directory. It requires
9056
the desktop app, so a standalone server or an SSH session is not enough. If the
9157
command cannot reach the app, start or update the desktop app and try again.
9258

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.