yetone
d2fa7d8d79
sessions: an Antigravity app conversation shows what was said, not only its title
...
@yansheng1003 on X: the Sessions page showed an Antigravity 2.0
conversation's title and preview only. HasTranscript left "antigravity"
out, since conversations/<id>.db's step text is encrypted at rest, so
the row had no Show conversation and /api/sessions/transcript said
"this agent's conversations can't be shown".
The app also writes every step in plain text beside the database:
brain/<id>/.system_generated/logs/transcript_full.jsonl in the same
store, in agy CLI's format (user input, planner responses with their
tool_calls, tool results). Antigravity 2.30's language server writes it
in the stable store and in Insiders' (both checked: run in a sandbox
HOME on Windows against a fake model that called read_file).
- transcript.go: antigravity has a transcript; readTranscriptOf reads
it through agyTranscript (antigravityTranscriptOf), so the viewer,
TranscriptAt, search, the said index and the Markdown export all get
it. A conversation with no transcript file is ErrNoTranscript, as
before.
- antigravity_app.go: antigravityTranscript derives the path from the
database's (stable, Insiders, a WSL distro's); its size and time are
folded into the session file's with the -wal's, so a step it adds
reads the session and the said index again.
- search.go: linesFile is false for antigravity, so the encrypted .db is
never pre-scanned for the words.
- testdata/antigravity-2.30-tools: that real conversation (db with the
WAL checkpointed, summary row, brain/ logs).
Tests: TestAntigravityAppTranscript (stable, Insiders, WSL: parts, search
hit and miss, Markdown), TestAntigravityAppNoTranscript,
internal/gui TestSessionAntigravityConversation (/api/sessions marks it,
/api/sessions/transcript gives the five parts).
Run: on mica (mica-run) at base de5fc6700 :
- gofmt -l internal/sessions internal/gui: clean.
- go vet ./internal/sessions ./internal/gui, GOOS=linux go vet -tags
nogui and GOOS=windows go vet on the same, go build .: ok.
- go test -count=1 -timeout 45m ./internal/sessions: ok but for
TestWSLAgentsGoneListingDrops (load ~48; fixed at its cause in the
commit before this one); go test ./internal/gui: ok (299s).
- After that fix: go test -run 'WSL|Antigravity|Agy|Gone'
./internal/sessions ok; GUI files sessions-talk, -talk-sheet,
-talk-model, -export, -said, -subagents, -reads, -search, -convert:
168 of 168 in Chromium and WebKit.
- Old code (de5fc6700 with only the new tests and testdata):
TestAntigravityAppTranscript red in stable, insiders and wsl ("the
session isn't marked readable"), TestSessionAntigravityConversation
red ("listed with no conversation to show ... Transcript:false").
- Windows (win-run on xiaomi-gpu): TestAntigravityAppTranscript (3
subtests) and TestAntigravityAppNoTranscript pass.
TestAntigravityAppFolder is red there at the base as well (#5957 ).
Rebased onto bfddc9cfb , on mote (mote-run) at this tree: gofmt clean,
the three vets and go build ok, go test -count=1 ./internal/sessions
./internal/gui ok (56s, 157s).
Not tried: the real GUI window opening this conversation; the API and
page are covered by the tests above.
2026-11-18 18:55:46 +08:00
..
2026-11-18 18:55:46 +08:00
2026-10-29 23:56:05 +08:00
2026-11-17 20:56:30 +08:00
2026-10-30 11:28:49 +08:00
2026-10-17 14:05:17 +08:00
2026-10-31 23:10:48 +08:00
2026-10-31 23:10:48 +08:00
2026-10-31 23:10:48 +08:00
2026-10-31 23:10:48 +08:00
2026-10-31 23:10:48 +08:00
2026-10-31 23:10:48 +08:00
2026-11-07 08:43:16 +08:00
2026-11-14 12:27:25 +08:00
2026-11-11 09:30:53 +08:00
2026-11-12 08:39:44 +08:00
2026-11-12 08:39:44 +08:00
2026-10-27 04:15:48 +08:00
2026-11-10 10:48:04 +08:00
2026-11-17 15:39:43 +08:00
2026-11-18 18:55:46 +08:00
2026-11-08 00:33:08 +08:00
2026-11-18 18:55:46 +08:00
2026-11-14 14:17:52 +08:00
2026-10-27 10:01:09 +08:00
2026-11-16 02:58:09 +08:00
2026-11-16 02:58:09 +08:00
2026-11-16 02:58:09 +08:00
2026-11-16 02:58:09 +08:00
2026-11-14 17:45:41 +08:00
2026-11-14 17:45:41 +08:00
2026-11-12 07:40:42 +08:00
2026-11-12 07:40:42 +08:00
2026-11-12 07:40:42 +08:00
2026-10-25 05:42:59 +08:00
2026-11-06 19:28:44 +08:00
2026-10-25 15:55:54 +08:00
2026-11-17 15:39:43 +08:00
2026-10-04 07:57:49 +08:00
2026-11-16 16:51:51 +08:00
2026-10-25 07:17:17 +08:00
2026-10-25 06:45:23 +08:00
2026-11-10 10:48:04 +08:00
2026-11-16 16:51:51 +08:00
2026-11-03 19:13:00 +08:00
2026-11-13 13:53:05 +08:00
2026-11-13 13:53:05 +08:00
2026-11-17 15:39:43 +08:00
2026-11-17 15:39:43 +08:00
2026-10-22 18:06:07 +08:00
2026-11-13 12:26:43 +08:00
2026-11-13 12:26:43 +08:00
2026-11-16 18:56:32 +08:00
2026-11-16 18:56:32 +08:00
2026-10-19 11:30:48 +08:00
2026-10-19 11:30:48 +08:00
2026-11-03 05:08:39 +08:00
2026-11-03 05:08:39 +08:00
2026-10-19 11:30:47 +08:00
2026-11-13 15:12:46 +08:00
2026-10-11 20:09:15 +08:00
2026-11-10 14:43:44 +08:00
2026-10-22 18:06:07 +08:00
2026-10-29 23:56:05 +08:00
2026-10-19 11:30:47 +08:00
2026-11-13 19:07:34 +08:00
2026-11-16 16:51:51 +08:00
2026-10-01 17:42:10 +08:00
2026-10-15 23:08:00 +08:00
2026-10-29 12:42:52 +08:00
2026-10-19 11:30:48 +08:00
2026-11-03 08:54:40 +08:00
2026-10-13 16:17:06 +08:00
2026-10-07 19:43:01 +08:00
2026-11-12 00:42:50 +08:00
2026-11-16 18:56:32 +08:00
2026-10-25 12:25:06 +08:00
2026-10-29 23:56:05 +08:00
2026-10-25 12:25:06 +08:00
2026-11-10 10:48:04 +08:00
2026-11-15 18:56:34 +08:00
2026-11-15 18:56:34 +08:00
2026-11-06 14:58:40 +08:00
2026-11-13 11:18:30 +08:00
2026-11-05 01:08:08 +08:00
2026-11-06 19:08:15 +08:00
2026-11-06 19:08:15 +08:00
2026-11-03 18:15:07 +08:00
2026-11-01 09:12:11 +08:00
2026-10-27 04:39:56 +08:00
2026-11-09 18:08:28 +08:00
2026-11-12 04:52:19 +08:00
2026-11-10 10:48:04 +08:00
2026-10-27 04:39:56 +08:00
2026-11-16 02:58:09 +08:00
2026-11-06 19:36:59 +08:00
2026-11-02 06:11:06 +08:00
2026-10-27 04:39:56 +08:00
2026-11-09 08:38:02 +08:00
2026-11-10 10:48:04 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 12:54:39 +08:00
2026-10-08 19:04:18 +08:00
2026-10-29 13:17:17 +08:00
2026-10-29 23:56:05 +08:00
2026-10-12 02:56:01 +08:00
2026-10-31 02:49:08 +08:00
2026-11-10 10:48:04 +08:00
2026-10-08 19:04:18 +08:00
2026-11-12 04:52:19 +08:00
2026-11-10 11:18:14 +08:00
2026-10-04 18:56:31 +08:00
2026-10-04 18:56:31 +08:00
2026-11-04 09:10:52 +08:00
2026-11-03 20:21:17 +08:00
2026-11-04 09:10:52 +08:00
2026-10-25 07:42:13 +08:00
2026-10-29 07:08:23 +08:00
2026-10-15 03:34:58 +08:00
2026-10-18 02:43:03 +08:00
2026-10-05 21:56:59 +08:00
2026-11-11 15:09:32 +08:00
2026-11-07 18:08:39 +08:00
2026-11-05 16:11:14 +08:00
2026-11-02 06:11:06 +08:00
2026-11-14 03:28:08 +08:00
2026-11-18 11:16:54 +08:00
2026-11-18 11:16:54 +08:00
2026-11-06 19:53:13 +08:00
2026-11-14 11:42:17 +08:00
2026-10-31 18:52:01 +08:00
2026-11-18 16:33:04 +08:00
2026-11-03 10:50:30 +08:00
2026-11-03 10:50:30 +08:00
2026-10-05 21:56:59 +08:00
2026-10-28 17:34:27 +08:00
2026-10-05 21:56:59 +08:00
2026-11-09 18:08:28 +08:00
2026-10-31 18:52:01 +08:00
2026-10-25 08:40:59 +08:00
2026-10-29 23:56:05 +08:00
2026-10-15 03:34:58 +08:00
2026-11-03 20:21:17 +08:00
2026-11-14 03:28:08 +08:00
2026-11-14 03:28:08 +08:00
sessions: Codex rollouts the Codex app has compressed (.jsonl.zst) are read as the plain ones ( #448 ) — with "compress local chat history" on, the Codex app packs older rollout-*.jsonl into rollout-*.jsonl.zst, and rolloutName ended in \.jsonl$, so those sessions, their calls and their usage were gone from Sessions, Usage and the ledger. A .zst rollout is now found, decompressed as it is read (klauspost/compress, already used for dsh's .zstd files; dshOpen now shares openLines), read whole again whenever it changes rather than read on from an offset, and its calls' places are those of its lines decompressed, so a call's content (the detail view) reads the same from either form, and one read before its file was packed still finds it. A rollout there in both forms (the app packing it) is read once, as the plain one, under the same codex:<thread id> key, so the session keeps its id and nothing is counted twice; deleting such a session moves both forms to the trash. TestCodexPackedSessions, TestCodexPackedCalls and TestCodexPackedDelete fail without the change; rollouts packed with the zstd CLI list the same as plain ones in a sandbox CODEX_HOME.
2026-10-02 00:47:11 +08:00
2026-11-02 06:11:06 +08:00
2026-11-13 19:07:34 +08:00
2026-10-01 17:42:10 +08:00
2026-10-31 17:47:20 +08:00
2026-11-10 10:48:04 +08:00
2026-10-13 18:16:18 +08:00
2026-10-13 18:16:18 +08:00
2026-11-04 21:15:33 +08:00
2026-11-04 21:15:33 +08:00
2026-11-10 10:48:04 +08:00
2026-10-28 14:10:42 +08:00
2026-10-28 14:09:05 +08:00
2026-10-27 04:39:56 +08:00
2026-11-14 12:27:25 +08:00
2026-10-25 17:57:52 +08:00
2026-10-31 09:41:13 +08:00
2026-10-13 07:14:22 +08:00
2026-11-12 09:57:52 +08:00
2026-11-12 09:57:52 +08:00
2026-11-12 05:44:12 +08:00
2026-11-13 14:45:32 +08:00
2026-11-11 08:44:55 +08:00
2026-11-13 14:45:32 +08:00
2026-10-23 01:58:00 +08:00
2026-10-30 11:28:49 +08:00
2026-10-13 08:15:14 +08:00
2026-11-10 12:54:39 +08:00
2026-10-07 06:17:56 +08:00
2026-11-10 10:48:04 +08:00
2026-11-09 18:08:28 +08:00
2026-11-10 12:54:39 +08:00
2026-11-02 17:19:23 +08:00
2026-11-08 02:37:09 +08:00
2026-11-09 18:49:15 +08:00
2026-11-10 10:48:04 +08:00
2026-11-12 02:30:15 +08:00
2026-11-12 04:52:19 +08:00
2026-11-12 09:57:52 +08:00
2026-10-21 02:44:23 +08:00
2026-10-21 02:44:23 +08:00
2026-10-10 09:53:38 +08:00
2026-10-15 09:36:26 +08:00
2026-10-14 04:59:09 +08:00
2026-10-10 04:24:18 +08:00
2026-10-30 19:12:35 +08:00
2026-11-14 14:02:49 +08:00
2026-11-11 12:22:45 +08:00
2026-10-28 20:28:27 +08:00
2026-10-13 08:15:14 +08:00
2026-11-10 12:54:39 +08:00
2026-11-09 18:08:28 +08:00
2026-10-02 23:02:03 +08:00
2026-10-02 23:02:03 +08:00
2026-10-02 23:02:03 +08:00
2026-11-10 10:48:04 +08:00
2026-10-27 12:40:00 +08:00
2026-10-05 21:56:59 +08:00
2026-10-02 23:02:03 +08:00
2026-11-10 10:48:04 +08:00
2026-11-09 19:16:55 +08:00
2026-11-09 19:16:55 +08:00
2026-11-09 18:08:28 +08:00
2026-11-13 15:12:46 +08:00
2026-11-13 15:12:46 +08:00
2026-11-09 18:08:28 +08:00
2026-10-31 12:50:14 +08:00
2026-10-15 08:33:54 +08:00
2026-11-01 14:18:44 +08:00
2026-11-09 21:18:44 +08:00
2026-10-08 23:43:20 +08:00
2026-10-19 11:30:47 +08:00
2026-10-19 11:30:47 +08:00
2026-11-12 04:52:19 +08:00
2026-11-17 20:56:30 +08:00
2026-11-17 20:56:30 +08:00
2026-10-27 10:21:10 +08:00
2026-10-03 02:17:57 +08:00
2026-10-03 17:11:26 +08:00
2026-10-03 17:11:26 +08:00
2026-10-03 17:11:26 +08:00
2026-10-29 12:12:30 +08:00
2026-11-14 03:28:08 +08:00
2026-10-20 23:50:02 +08:00
2026-10-15 09:40:51 +08:00
2026-10-03 17:11:26 +08:00
2026-10-03 17:11:26 +08:00
2026-11-18 17:30:43 +08:00
2026-10-08 17:38:03 +08:00
2026-10-11 01:13:52 +08:00
2026-10-27 04:39:56 +08:00
2026-11-12 07:40:42 +08:00
2026-10-30 11:54:46 +08:00
2026-10-29 23:56:05 +08:00
2026-10-30 12:25:23 +08:00
2026-11-12 06:29:11 +08:00
2026-10-13 08:15:14 +08:00
2026-11-11 17:52:02 +08:00
2026-11-14 17:04:45 +08:00
2026-11-14 17:04:45 +08:00
2026-10-29 00:48:47 +08:00
2026-10-22 22:03:16 +08:00
2026-11-16 02:58:09 +08:00
2026-11-13 19:07:34 +08:00
2026-11-13 19:07:34 +08:00
2026-10-31 09:41:13 +08:00
2026-11-01 04:40:44 +08:00
2026-11-12 09:57:52 +08:00
2026-11-17 18:59:48 +08:00
usage: a model spelled with a dotted version is priced at its maker's, and a model can be priced from any provider (tony on Discord: old sessions' copilot/claude models had no known price) — Copilot and its CLI's sessions name Anthropic's models claude-opus-4.6 and claude-haiku-4.5, models.dev's anthropic entry claude-opus-4-6 and claude-haiku-4-5, and a session's bare model was looked up only by its exact key at its maker, so neither was priced; a gateway call whose provider is gone or lists no price fell to the same miss. A price is now looked for with a dot and a dash taken for the same, after every exact match. gemini-3-pro-preview stays unpriced: Google's entry on models.dev no longer lists it and no price is made up. For it, and any model like it, magpie model price <model> <in>,<out>,<cache read>,<cache write> keeps a price under */<model> that counts from any provider not priced by the user, after <provider>/<model> and <provider>/* and before any list price, and for a session's bare model; --reset takes it away, magpie model prices lists it. TestDottedIDPricedAtItsMakers, TestAnyProviderPrice and TestPriceOfDottedAndAnyProvider fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 17:46:54 +08:00
2026-10-30 18:55:51 +08:00
2026-11-11 10:03:28 +08:00
sessions: a session in magpie's trash can be erased for good, one at a time or the whole trash, after magpie's own dialog ( #487 : no way to empty the trash but removing its folder by hand) — the Sessions page's Trash only restored, and said magpie never erases what is in it: remove the folder yourself. Each trashed row now has Delete forever and the Trash an Empty trash, with the count of what is in it; both ask in magpie's dialog, as Delete does (never confirm()), naming the sessions, and Cancel sends nothing. They post /api/sessions/purge with the rows' keys, or all for every session the trash lists; each key is checked as Restore checks it (<agent>/<name>, an agent magpie deletes for, no separators, no . or ..), and its folder, and its agent's, must be real folders in <magpie dir>/trash/sessions, not links, with the session's note (session.json) in it; only that folder goes, its note with it, so the trash lists it no more. Nothing is erased by itself: the note under the Trash now says they are kept until erased there, and magpie never erases them by itself. TestPurgeOne, TestPurgeAll, TestPurgeRefusesOutOfTrash, TestSessionsPurgeRoute and sessions-purge.test.cjs (Chromium, WebKit; en, zh) fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (TestFXInState failed once under load, passes alone and in its package); sessions-manage, sessions-toolbar, click-scroll, old-webkit pass.
2026-10-02 08:20:33 +08:00
2026-11-16 16:51:51 +08:00
2026-11-02 06:11:06 +08:00
2026-10-25 15:29:58 +08:00
2026-10-20 20:32:05 +08:00
2026-10-20 20:32:05 +08:00
2026-10-29 15:29:30 +08:00
2026-11-09 18:55:01 +08:00
2026-10-29 15:31:36 +08:00
2026-10-13 13:02:09 +08:00
2026-10-13 13:02:09 +08:00
2026-11-06 07:32:04 +08:00
2026-10-18 02:43:03 +08:00
2026-11-02 06:11:06 +08:00
2026-09-30 20:31:11 +08:00
2026-11-09 08:38:02 +08:00
2026-11-16 07:19:18 +08:00
2026-11-17 17:33:23 +08:00
2026-11-17 17:33:23 +08:00
2026-11-01 11:34:13 +08:00
2026-11-16 02:58:09 +08:00
2026-10-21 00:07:49 +08:00
2026-10-13 06:43:50 +08:00
2026-10-13 06:43:50 +08:00
2026-11-18 18:55:46 +08:00
2026-10-05 22:23:29 +08:00
2026-11-16 02:58:09 +08:00
2026-11-17 20:56:30 +08:00
2026-10-21 18:19:48 +08:00
2026-10-21 18:19:48 +08:00
2026-11-17 20:56:30 +08:00
2026-11-11 09:04:52 +08:00
2026-10-25 05:42:59 +08:00
2026-11-09 18:08:28 +08:00
2026-11-09 21:04:19 +08:00
2026-10-13 09:37:52 +08:00
2026-11-09 20:50:24 +08:00
2026-10-30 14:38:22 +08:00
2026-11-12 08:39:44 +08:00
2026-11-12 08:39:44 +08:00
2026-11-12 08:39:44 +08:00
2026-10-27 04:15:48 +08:00
2026-10-20 20:32:04 +08:00
2026-11-10 10:48:04 +08:00
2026-11-01 06:21:39 +08:00
2026-11-12 08:39:44 +08:00
2026-10-20 20:32:04 +08:00
2026-10-10 20:47:00 +08:00
2026-10-15 23:08:01 +08:00
2026-11-09 18:08:28 +08:00
2026-11-12 09:57:52 +08:00
2026-10-25 01:39:40 +08:00
2026-10-25 01:39:40 +08:00
2026-10-21 18:19:48 +08:00
2026-10-21 02:44:22 +08:00
2026-10-29 12:42:52 +08:00
2026-10-29 12:42:52 +08:00
2026-10-15 23:08:00 +08:00
2026-10-15 23:08:00 +08:00
2026-11-10 10:48:04 +08:00
2026-11-10 10:48:04 +08:00
2026-11-10 10:48:04 +08:00
2026-10-27 12:40:00 +08:00
2026-11-10 10:48:04 +08:00
2026-10-19 11:32:59 +08:00
2026-10-03 01:43:32 +08:00
2026-10-04 23:30:56 +08:00
2026-11-11 07:24:28 +08:00
2026-10-14 08:28:52 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 06:07:43 +08:00
2026-10-13 06:43:50 +08:00
2026-10-27 12:40:00 +08:00
2026-10-25 12:25:06 +08:00
2026-11-18 18:55:46 +08:00
2026-10-31 16:05:49 +08:00
2026-11-12 00:25:56 +08:00
2026-11-12 00:25:56 +08:00
2026-11-10 18:01:13 +08:00
2026-11-11 05:58:14 +08:00
2026-11-11 05:58:14 +08:00
2026-10-30 10:28:30 +08:00
2026-11-03 08:54:40 +08:00
2026-11-10 12:54:39 +08:00
2026-11-14 12:27:25 +08:00
2026-10-15 09:36:26 +08:00
2026-11-18 18:55:46 +08:00
2026-11-17 00:21:23 +08:00
2026-11-12 00:42:50 +08:00
2026-11-09 18:55:01 +08:00
2026-11-11 17:52:02 +08:00
2026-11-12 09:50:58 +08:00
2026-11-12 02:44:19 +08:00
2026-11-11 17:52:02 +08:00