Files
magpie/internal/sessions/testdata
yetone 3869aee3b0 sessions: agy's calls in T3 Code are on Usage → Requests
zzzkl on X: requests from Antigravity in T3 Code weren't on Usage →
Requests, while a plain agy's were.

T3 Code (pingdotgg/t3code, read at 00c6adbd) runs agy for each
Antigravity instance as an ACP server on the instance's own Google
sign-in: `agy acp --gemini-dir <profile> --app-data-dir antigravity-acp`
(antigravityAuthSupport.ts), the profile being
<T3 Code's folder>/userdata/providers/antigravity/<sha256 of the
instance id>, the folder $T3CODE_HOME or ~/.t3 (dev for its dev
server). Those requests go to Google, never through the gateway, and
magpie's agy reader looked only in ~/.gemini/antigravity-cli, so
nothing counted them. agy writes the same transcript_full.jsonl there
as in its own folder (agy 1.5.10 run that way in a sandbox against a
fake Gemini endpoint; the fixture is its bytes).

agyCallFiles now reads every T3 Code profile's antigravity-acp too, and
Found lists agy for those folders, so the read consent covers them.
T3 Code's folder is appdir.T3Code, shared with agent's t3Base.

Siblings: `agy acp` from any other ACP client with the defaults writes
to antigravity-cli, already read (agy acp --help). T3 Code's magpie
instances (Claude, Codex) go through the gateway and are counted there.

Run: TestAgyCallsInT3Code (default folder, T3CODE_HOME, ~/ form) red
on the old calls_agy.go/access.go with 0 calls, and with Found() =
[claude codex] when only access.go is old; green with the change.
gofmt -l clean; go vet (darwin, GOOS=linux, GOOS=windows) of appdir,
agent and sessions on mote. Full suite (go test -timeout 45m ./..., mica, at 0e3d09361 plus this):
every package ok but agent, dirent, gateway, gui, library and profile;
each red was run again at the base: TestWSLAgentFolderIsALink 2 of 12
red at the base too (filed #7150), the dirent watch tests and
TestOpenCodeGoOwnFreeModelGetsNothingOfOpenCodes red at the base
(#7031, #7117), TestGatewayModeListsNoOwnSessions (#7064) ok alone,
library and profile hung in testenv.warmAt (#5267) and ok alone.
After the rebase on 14b6b9555 (this commit's tree): appdir ok, agent ok
but TestWSLAgentFolderIsALink (#7150), sessions ok (2335s).
Rebased again onto 9768b384e (its three commits touch none of
sessions, agent or appdir): go build ./... and the TestAgy/T3 tests
of sessions and agent ok at this commit.
No GUI file is reached (no string, API or page change).

Not tried: a real T3 Code signed in to Google (the profile layout is
from T3's source, agy's files from a real agy acp); T3 Code in WSL;
a plain agy with its own GEMINI_HOME/--gemini-dir. The calls count as
agy (Antigravity CLI), not T3 Code, and the Sessions page doesn't list
these conversations (agy --conversation would look in agy's own folder).
T3's throwaway helper sessions delete their files, so their calls go too.
2026-11-19 11:18:11 +08:00
..