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(antigravity): read usage from each instance data directory by fixfon · Pull Request #17769 · pingdotgg/t3code

fix(antigravity): read usage from each instance data directory #17769

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.

Sign up for GitHub

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

Merged
maria-rcks merged 4 commits into pingdotgg:main from fixfon:fix/antigravity-instance-usage-roots
Oct 19, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(antigravity): read usage from each instance data directory #17769

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
2174bce
fix(antigravity): read usage from each instance data directory
fixfon Oct 10, 2026
540f155
test(server): assert usage from every Antigravity instance directory
fixfon Oct 16, 2026
e8a6817
Merge remote-tracking branch 'origin/main' into fix/antigravity-insta…
juliusmarminge Oct 19, 2026
7c837bd
test(server): simplify Antigravity instance usage fixture
juliusmarminge Oct 19, 2026
File filter
Filter by extension

Clear filters
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
Diff view
Next Next commit
fix(antigravity): read usage from each instance data directory
Antigravity usage scans resolved ANTIGRAVITY_DATA_DIR from the host
environment only, so an instance configured with its own data directory
had its history omitted. Resolve the data roots from each instance's
merged environment; the existing canonical directory set still counts
shared and aliased roots once.

Refs #17631.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@fixfon @claude
fixfon and claude committed Oct 16, 2026
commit 2174bce56ad1c0a30312b9d831faf4fb15e2da1b

There are no files selected for viewing

10 changes: 6 additions & 4 deletions 10 apps/server/src/provider/Drivers/AntigravityUsage.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ const make = Effect.gen(function* () {
const fileSystem = yield* FileSystem.FileSystem;
const path = yield* Path.Path;
const host = yield* ProviderHost.ProviderHost;
const hostEnvironment = yield* HostProcess.Environment;
const cache = makeAntigravityUsageCache();

const dataRoots = Effect.gen(function* () {
const dataRoots = Effect.fn("AntigravityUsage.dataRoots")(function* (
environment: NodeJS.ProcessEnv,
) {
const home = yield* HostProcess.HomeDirectory;
const configured = hostEnvironment["ANTIGRAVITY_DATA_DIR"]
const configured = environment["ANTIGRAVITY_DATA_DIR"]
?.split(",")
.map((value) => value.trim())
.filter(Boolean);
Expand All @@ -61,7 +62,8 @@ const make = Effect.gen(function* () {
instances,
windowStartMs,
}) {
const roots = yield* dataRoots;
const roots: Array<string> = [];
for (const instance of instances) roots.push(...(yield* dataRoots(instance.environment)));
for (const { instanceId } of instances.filter((instance) => instance.configured)) {
const directories = yield* resolveAntigravityInstanceDirectories(
host.paths.stateDir,
Expand Down
38 changes: 38 additions & 0 deletions 38 apps/server/src/usage/UsageService.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,44 @@ describe("UsageService", () => {
}).pipe(Effect.scoped),
);

it.live("reads Antigravity history from each instance's data directory", () =>
Effect.gen(function* () {
const { settings, home } = yield* setup;
const first = NodePath.join(home, "antigravity-first");
const second = NodePath.join(home, "antigravity-second");
yield* Effect.promise(async () => {
await NodeFSP.mkdir(first);
await NodeFSP.mkdir(second);
});
const instance = (dataDir: string) => ({
driver: ProviderDriverKind.make("antigravity"),
environment: [{ name: "ANTIGRAVITY_DATA_DIR", value: dataDir, sensitive: false }],
});
const service = yield* UsageService.make.pipe(
Effect.provide(
layerService({
prefix: "usage-service-antigravity-instances-test",
home,
settings: {
providerInstances: {
...settings.providerInstances,
[ProviderInstanceId.make("antigravity-first")]: instance(first),
[ProviderInstanceId.make("antigravity-second")]: instance(` ${second}, `),
},
},
}),
),
);
const summary = yield* service.readSummary(WINDOW);
const roots = summary.sources
.filter((source) => source.fingerprint.provider === "antigravity")
.map((source) => source.fingerprint.resolvedHomePath);
for (const dir of [first, second]) {
assert.include(roots, yield* Effect.promise(() => NodeFSP.realpath(dir)));
}
}).pipe(Effect.scoped),
);

it.live("reads configured and disabled accounts once across shared and aliased homes", () =>
Effect.gen(function* () {
const { transcript, settings, home } = yield* setup;
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
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.