diff --git a/docs/subsystems/gateway-sessions.md b/docs/subsystems/gateway-sessions.md index 416b839e9..c09ae57b6 100644 --- a/docs/subsystems/gateway-sessions.md +++ b/docs/subsystems/gateway-sessions.md @@ -441,6 +441,11 @@ covers them), and `sessions/manage` carries the same as `reads`. While `asked` is false the Sessions page shows the consent (`consentCard` in the sessions plugin): each agent found with a switch, off; Allow selected saves `all: false` with each agent picked or not, Allow all `all: true`. +A choice with `all` false reads no agent it doesn't name, so one found +after it (Antigravity 2.0 installed after Allow selected: baysonfox on +X) is `new` in `found` (on disk, not named, not read), and the Sessions +page asks about those once (`laterCard`): Show their sessions sends +each `true`, Keep off `false`, so it isn't new again. Settings › Privacy, *Agents' session history* (`renderSessionReads` in the sessions plugin's `settings.js`), has *Agents found later* (`all`, sent with each listed agent at the value its row shows) and a row per agent. diff --git a/internal/gui/assets/plugins/sessions/client.js b/internal/gui/assets/plugins/sessions/client.js index 56a584e76..518a604fd 100644 --- a/internal/gui/assets/plugins/sessions/client.js +++ b/internal/gui/assets/plugins/sessions/client.js @@ -580,6 +580,54 @@ magpie.plugin("sessions", (ctx) => { return card; } + // An agent found after the user chose which agents' sessions to read + // (baysonfox on X: Antigravity 2.0, installed after allow selected, + // showed only what came through the gateway): a choice that names its + // agents reads no other, so the page asks about each such agent once + // (reads.found[].new). Allow names it on, Keep off names it off; either + // way it isn't asked about again, and Settings › Privacy changes it. + const laterFound = () => data?.reads?.asked && !data.reads.gateway ? (data.reads.found || []).filter((x) => x.new) : []; + let laterBusy = false; + + function laterCard(found) { + const card = el("div", "sm-consent sm-later"); + const title = el("b", "sm-consent-title", t("Show these agents' sessions too?")); + title.id = "smLaterTitle"; + card.setAttribute("role", "group"); + card.setAttribute("aria-labelledby", title.id); + card.append(title); + const list = el("div", "list sm-consent-list"); + for (const x of found) { + const row = el("div", "row sm-consent-row"); + row.append(icon(x.icon), el("span", "sm-consent-name", x.name)); + list.append(row); + } + card.append(list); + const acts = el("div", "sm-consent-acts"); + const save = async (on) => { + laterBusy = true; + draw(); + const agents = {}; + for (const x of found) agents[x.agent] = on; + try { + await api("sessions/reads", { agents }); + await load(); + } catch (err) { status(err.message, "err"); } + finally { laterBusy = false; draw(); } + }; + const off = el("button", "text sm-later-off", t("Keep off")); + off.type = "button"; + off.disabled = laterBusy; + off.onclick = () => save(false); + const on = el("button", "text primary sm-later-on", t("Show their sessions")); + on.type = "button"; + on.disabled = laterBusy; + on.onclick = () => save(true); + acts.append(off, on); + card.append(acts); + return card; + } + function head() { const h = el("div", "usage-head sm-head"); const wrap = el("div", "sm-switch"); @@ -672,6 +720,7 @@ magpie.plugin("sessions", (ctx) => { } if (trashOn) { box.append(...trash()); return box; } if (consentApplies()) box.append(consentCard()); + else if (laterFound().length) box.append(laterCard(laterFound())); if (recordingApplies()) box.append(recordingCard()); if (!data.agents.length) { if (consentApplies()) return box; diff --git a/internal/gui/assets/plugins/sessions/i18n.js b/internal/gui/assets/plugins/sessions/i18n.js index de653c203..7aff028fb 100644 --- a/internal/gui/assets/plugins/sessions/i18n.js +++ b/internal/gui/assets/plugins/sessions/i18n.js @@ -13,6 +13,9 @@ magpie.strings({ "No agent's sessions were found on this computer yet.": "这台电脑上还没有找到任何智能体的会话。", "Allow selected": "允许所选", "Allow all": "全部允许", + "Show these agents' sessions too?": "还要显示这些智能体的会话吗?", + "Keep off": "保持关闭", + "Show their sessions": "显示会话", "Other folders": "其他文件夹", "Temporary folders, the disk's root and apps' hidden folders": "临时文件夹、磁盘根目录和应用的隐藏文件夹", "Delete all sessions": "删除全部会话", @@ -120,6 +123,9 @@ magpie.strings({ "No agent's sessions were found on this computer yet.": "這台電腦上還沒有找到任何智慧體的會話。", "Allow selected": "允許所選", "Allow all": "全部允許", + "Show these agents' sessions too?": "也要顯示這些智慧體的會話嗎?", + "Keep off": "保持關閉", + "Show their sessions": "顯示會話", "Other folders": "其他資料夾", "Temporary folders, the disk's root and apps' hidden folders": "暫存資料夾、磁碟根目錄和應用程式的隱藏資料夾", "Delete all sessions": "刪除全部會話", @@ -227,6 +233,9 @@ magpie.strings({ "No agent's sessions were found on this computer yet.": "このコンピュータにはまだエージェントのセッションが見つかりません。", "Allow selected": "選択したものを許可", "Allow all": "すべて許可", + "Show these agents' sessions too?": "これらのエージェントのセッションも表示しますか?", + "Keep off": "オフのままにする", + "Show their sessions": "セッションを表示", "Other folders": "その他のフォルダ", "Temporary folders, the disk's root and apps' hidden folders": "一時フォルダ、ディスクのルート、アプリの隠しフォルダ", "Delete all sessions": "すべてのセッションを削除", @@ -334,6 +343,9 @@ magpie.strings({ "No agent's sessions were found on this computer yet.": "Auf diesem Computer wurden noch keine Sitzungen von Agenten gefunden.", "Allow selected": "Ausgewählte erlauben", "Allow all": "Alle erlauben", + "Show these agents' sessions too?": "Auch die Sitzungen dieser Agenten anzeigen?", + "Keep off": "Aus lassen", + "Show their sessions": "Sitzungen anzeigen", "Other folders": "Weitere Ordner", "Temporary folders, the disk's root and apps' hidden folders": "Temporäre Ordner, das Stammverzeichnis und versteckte Ordner von Apps", "Delete all sessions": "Alle Sitzungen löschen", diff --git a/internal/gui/assets/plugins/sessions/sessions.css b/internal/gui/assets/plugins/sessions/sessions.css index 00284af9a..c4c57c695 100644 --- a/internal/gui/assets/plugins/sessions/sessions.css +++ b/internal/gui/assets/plugins/sessions/sessions.css @@ -197,6 +197,7 @@ body.window .row.sm-sub-row { min-height: 42px; padding-left: calc(14px + var(-- .sm-consent-row .lib-switch { flex: none; cursor: pointer; padding: 0; border: 0; } .sm-consent-row .lib-switch:disabled { opacity: .5; cursor: default; } .sm-consent-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; } +.sm-later .sm-consent-row { cursor: default; } /* a session's output speed (session_speed.go): its last two minutes and tokens a second now, opening the round's numbers */ .row.sm-sess .sm-speed { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .15s ease; } diff --git a/internal/gui/sessions_reads.go b/internal/gui/sessions_reads.go index 9a5ad0805..f6b5476ba 100644 --- a/internal/gui/sessions_reads.go +++ b/internal/gui/sessions_reads.go @@ -19,6 +19,12 @@ type readAgentJSON struct { Name string `json:"name"` Icon string `json:"icon"` On bool `json:"on"` + // New: found here, never named by the user's choice, and not read, + // since that choice reads only the agents it names (All false): an + // agent installed after "allow selected" (baysonfox on X: Antigravity + // 2.0's sessions showed only through the gateway). The Sessions page + // asks about these once. + New bool `json:"new,omitempty"` } type readsJSON struct { @@ -45,6 +51,7 @@ func readsNow() readsJSON { out.Asked, out.All = r.Asked, r.All } agents := sessions.Found() + here := slices.Clone(agents) if r != nil { for a := range r.Agents { if !slices.Contains(agents, a) { @@ -55,6 +62,10 @@ func readsNow() readsJSON { looks := agentLooks() for _, a := range agents { j := readAgentJSON{Agent: a, Name: a, Icon: "generic", On: r.Reads(a)} + if r != nil && r.Asked && !j.On { + _, named := r.Agents[a] + j.New = !named && slices.Contains(here, a) + } if l, ok := looks[a]; ok { j.Name, j.Icon = l.Shared, l.Icon } diff --git a/internal/gui/sessions_reads_test.go b/internal/gui/sessions_reads_test.go index 4188a3c2e..23545de0e 100644 --- a/internal/gui/sessions_reads_test.go +++ b/internal/gui/sessions_reads_test.go @@ -94,3 +94,122 @@ func TestSessionReadsRoutes(t *testing.T) { t.Fatal("a body that isn't JSON was taken") } } + +// An agent installed after "allow selected" (baysonfox on X: Antigravity +// 2.0's sessions showed only while it was connected to magpie, agy CLI's +// always). The choice read agy only, and nothing asked about the app found +// later. /api/sessions/reads marks it new; the page's Show their sessions names it on and +// its sessions are listed, and Keep off names it off and it isn't new again. +// The app's folder is a real Antigravity 2.30 one (testdata/antigravity-2.30, +// written by its language server on Windows), agy's a real agy CLI's. +func TestSessionReadsNewAgent(t *testing.T) { + for _, allow := range []bool{true, false} { + t.Run(map[bool]string{true: "allow", false: "keep off"}[allow], func(t *testing.T) { + h := sandboxHome(t) + copyTree(t, "../sessions/testdata/agy-sessions", filepath.Join(h, ".gemini", "antigravity-cli")) + copyTree(t, "../sessions/testdata/antigravity-2.30", filepath.Join(h, ".gemini", "antigravity")) + // the choice made before the app was installed: agy only + if err := settings.SetSessionReads(func(*settings.SessionReads) *settings.SessionReads { + return &settings.SessionReads{Asked: true, Agents: map[string]bool{"agy": true}} + }); err != nil { + t.Fatal(err) + } + sessions.Reset() + t.Cleanup(sessions.Reset) + mux := http.NewServeMux() + sessionManageRoutes(mux, folderOnly{}) + call := func(method, path, body string) []byte { + t.Helper() + w := httptest.NewRecorder() + mux.ServeHTTP(w, httptest.NewRequest(method, path, strings.NewReader(body))) + if w.Code != 200 { + t.Fatalf("%s %s: %d %s", method, path, w.Code, w.Body) + } + return w.Body.Bytes() + } + of := func(r readsJSON, agent string) readAgentJSON { + t.Helper() + for _, f := range r.Found { + if f.Agent == agent { + return f + } + } + t.Fatalf("%s not found: %+v", agent, r.Found) + return readAgentJSON{} + } + listed := func() []string { + t.Helper() + var m struct { + Sessions []struct { + ID string `json:"id"` + Agent string `json:"agent"` + } `json:"sessions"` + } + json.Unmarshal(call("GET", "/api/sessions/manage?agent=antigravity", ""), &m) + // with none of its own the page is on another agent's (agy's) + var ids []string + for _, s := range m.Sessions { + if s.Agent == "antigravity" { + ids = append(ids, s.ID) + } + } + return ids + } + var r readsJSON + json.Unmarshal(call("GET", "/api/sessions/reads", ""), &r) + if a := of(r, "antigravity"); a.On || !a.New { + t.Fatalf("antigravity found after allow selected = %+v, want off and new", a) + } + if a := of(r, "agy"); !a.On || a.New { + t.Fatalf("agy, named on = %+v", a) + } + if ids := listed(); len(ids) != 0 { + t.Fatalf("antigravity listed before it was allowed: %v", ids) + } + body := `{"agents":{"antigravity":false}}` + if allow { + body = `{"agents":{"antigravity":true}}` + } + // a fresh value: new is left out when false + r = readsJSON{} + json.Unmarshal(call("POST", "/api/sessions/reads", body), &r) + a := of(r, "antigravity") + if a.New || a.On != allow { + t.Fatalf("after the answer: %+v", a) + } + if s := settings.Shared().SessionReads; s == nil || s.All || !s.Agents["agy"] { + t.Fatalf("the answer changed the rest of the choice: %+v", s) + } + ids := listed() + if allow && (len(ids) != 1 || ids[0] != "d96c88af-9e92-463f-a81c-9bb0f7007818") { + t.Fatalf("antigravity allowed: listed %v", ids) + } + if !allow && len(ids) != 0 { + t.Fatalf("antigravity kept off: listed %v", ids) + } + }) + } +} + +// Only a choice that reads agents by name finds one new: allow all reads +// those found later, and before the choice the consent asks about all. +func TestSessionReadsNewOnlyWhenNamed(t *testing.T) { + for name, r := range map[string]*settings.SessionReads{ + "not asked": {}, + "allow all": {Asked: true, All: true}, + "all, agy off": {Asked: true, All: true, Agents: map[string]bool{"agy": false}}, + } { + t.Run(name, func(t *testing.T) { + h := sandboxHome(t) + copyTree(t, "../sessions/testdata/antigravity-2.30", filepath.Join(h, ".gemini", "antigravity")) + if err := settings.SetSessionReads(func(*settings.SessionReads) *settings.SessionReads { return r }); err != nil { + t.Fatal(err) + } + for _, f := range readsNow().Found { + if f.New { + t.Fatalf("%s new under %+v", f.Agent, r) + } + } + }) + } +} diff --git a/internal/gui/tests/sessions-reads.test.cjs b/internal/gui/tests/sessions-reads.test.cjs index 039209c80..dfb846dfa 100644 --- a/internal/gui/tests/sessions-reads.test.cjs +++ b/internal/gui/tests/sessions-reads.test.cjs @@ -6,6 +6,9 @@ // Allow selected stays off until one is picked and saves those picked, // Allow all saves every agent and those found later. Settings › Privacy // has a row for agents found later and one per agent, each saved alone. +// An agent found after a choice that names its agents (baysonfox on X: +// Antigravity 2.0 installed after allow selected) is asked about once on +// the Sessions page: Allow names it on, Keep off names it off. // Every language, Chromium and WebKit, a narrow window; the API is faked. const assert = require("node:assert/strict"); const fs = require("node:fs/promises"); @@ -41,9 +44,12 @@ function serve(lang, store, posts) { } for (const p of posts) for (const a in p.agents || {}) store.named[a] = true; for (const f of store.found) if (!(f.agent in store.named)) f.on = store.asked && store.all; + // as readsNow: found, not named and not read under a choice that names + for (const f of store.found) f.new = store.asked && !store.all && !(f.agent in store.named); return json({ asked: store.asked, all: store.all, found: store.found }); } if (url.pathname === "/api/sessions/manage") { + for (const f of store.found) f.new = store.asked && !store.all && !(f.agent in store.named); const on = store.found.filter((f) => store.asked && f.on); const agents = on.map((f) => ({ agent: f.agent, count: 1, deletable: true, name: f.name, icon: f.icon })); const agent = agents[0]?.agent || ""; @@ -58,11 +64,11 @@ function serve(lang, store, posts) { } const words = { - en: { nav: "Sessions", title: "Show your agents' sessions?", some: "Allow selected", all: "Allow all", head: "Agents' session history", later: "Agents found later", on: "On", off: "Off" }, - zh: { nav: "会话", title: "显示智能体的会话吗?", some: "允许所选", all: "全部允许", head: "智能体的会话历史", later: "之后发现的智能体", on: "开启", off: "关闭" }, - "zh-TW": { nav: "會話", title: "顯示智慧體的會話嗎?", some: "允許所選", all: "全部允許", head: "智慧體的會話歷史", later: "之後發現的智慧體", on: "開啟", off: "關閉" }, - ja: { nav: "セッション", title: "エージェントのセッションを表示しますか?", some: "選択したものを許可", all: "すべて許可", head: "エージェントのセッション履歴", later: "あとで見つかったエージェント", on: "オン", off: "オフ" }, - de: { nav: "Sitzungen", title: "Sitzungen deiner Agenten anzeigen?", some: "Ausgewählte erlauben", all: "Alle erlauben", head: "Sitzungsverlauf der Agenten", later: "Später gefundene Agenten", on: "An", off: "Aus" }, + en: { nav: "Sessions", title: "Show your agents' sessions?", some: "Allow selected", all: "Allow all", head: "Agents' session history", later: "Agents found later", on: "On", off: "Off", laterTitle: "Show these agents' sessions too?", keepOff: "Keep off", allow: "Show their sessions" }, + zh: { nav: "会话", title: "显示智能体的会话吗?", some: "允许所选", all: "全部允许", head: "智能体的会话历史", later: "之后发现的智能体", on: "开启", off: "关闭", laterTitle: "还要显示这些智能体的会话吗?", keepOff: "保持关闭", allow: "显示会话" }, + "zh-TW": { nav: "會話", title: "顯示智慧體的會話嗎?", some: "允許所選", all: "全部允許", head: "智慧體的會話歷史", later: "之後發現的智慧體", on: "開啟", off: "關閉", laterTitle: "也要顯示這些智慧體的會話嗎?", keepOff: "保持關閉", allow: "顯示會話" }, + ja: { nav: "セッション", title: "エージェントのセッションを表示しますか?", some: "選択したものを許可", all: "すべて許可", head: "エージェントのセッション履歴", later: "あとで見つかったエージェント", on: "オン", off: "オフ", laterTitle: "これらのエージェントのセッションも表示しますか?", keepOff: "オフのままにする", allow: "セッションを表示" }, + de: { nav: "Sitzungen", title: "Sitzungen deiner Agenten anzeigen?", some: "Ausgewählte erlauben", all: "Alle erlauben", head: "Sitzungsverlauf der Agenten", later: "Später gefundene Agenten", on: "An", off: "Aus", laterTitle: "Auch die Sitzungen dieser Agenten anzeigen?", keepOff: "Aus lassen", allow: "Sitzungen anzeigen" }, }; async function open(engine, width, t) { @@ -131,6 +137,38 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", assert.deepEqual(errors, []); }); } + for (const [lang, width] of [["en", 900], ["en", 390], ["zh", 420], ["zh-TW", 420], ["ja", 420], ["de", 390]]) { + const w = words[lang]; + for (const allow of [true, false]) { + test(`${engine} ${lang} ${width}px: an agent found after allow selected is asked about once (${allow ? "allow" : "keep off"})`, async (t) => { + const { page, errors } = await open(engine, width, t); + const store = { + asked: true, all: false, named: { claude: true }, + found: [{ agent: "claude", name: "Claude Code", icon: "claudecode-color", on: true }, { agent: "antigravity", name: "Antigravity", icon: "antigravity-color", on: false }], + }, posts = []; + await page.route("**/*", serve(lang, store, posts)); + await page.goto("http://magpie.test/?view=sessions"); + const card = page.locator("#view-sessions .sm-later"); + await card.waitFor(); + assert.equal(await page.locator("#view-sessions .sm-consent:not(.sm-later)").count(), 0, "the first consent is not shown again"); + assert.equal(await card.locator(".sm-consent-title").textContent(), w.laterTitle); + assert.equal(await card.getAttribute("role"), "group"); + assert.deepEqual(await card.locator(".sm-consent-name").allTextContents(), ["Antigravity"]); + // the sessions already read are listed under it + await page.locator('#view-sessions .row.sm-sess[data-id="claude-1"]').waitFor(); + await fits(page, "#view-sessions .sm-later"); + assert.equal(posts.length, 0); + await card.getByRole("button", { name: allow ? w.allow : w.keepOff, exact: true }).click(); + await card.waitFor({ state: "detached" }); + assert.deepEqual(posts, [{ agents: { antigravity: allow } }]); + // not asked again + await page.reload(); + await page.locator('#view-sessions .row.sm-sess[data-id="claude-1"]').waitFor(); + assert.equal(await page.locator("#view-sessions .sm-later").count(), 0); + assert.deepEqual(errors, []); + }); + } + } test(`${engine} en 390px: Allow all reads every agent, those found later too`, async (t) => { const { page, errors } = await open(engine, 390, t); const store = { asked: false, all: false, found: found(), named: {} }, posts = []; diff --git a/internal/sessions/testdata/antigravity-2.30/agyhub_summaries_proto.pb b/internal/sessions/testdata/antigravity-2.30/agyhub_summaries_proto.pb new file mode 100644 index 000000000..8050cd699 Binary files /dev/null and b/internal/sessions/testdata/antigravity-2.30/agyhub_summaries_proto.pb differ diff --git a/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript/00000000.jsonl b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript/00000000.jsonl new file mode 100644 index 000000000..2d166a278 --- /dev/null +++ b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript/00000000.jsonl @@ -0,0 +1,2 @@ +{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE","created_at":"2026-11-18T03:57:19Z","content":"\nread a.txt\n\n\nThe current local time is: 2026-11-18T11:57:19+08:00.\n\n\nThe user changed setting `Model Selection` from None to g3. No need to comment on this change if the user doesn't ask about it. If reporting what model you are, please use a human readable name instead of the exact string.\n"} +{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-11-18T03:57:20Z","input_tokens":1000,"cache_read_tokens":200,"output_tokens":7,"content":"pong"} diff --git a/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript_full/00000000.jsonl b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript_full/00000000.jsonl new file mode 100644 index 000000000..2d166a278 --- /dev/null +++ b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/chunks/transcript_full/00000000.jsonl @@ -0,0 +1,2 @@ +{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE","created_at":"2026-11-18T03:57:19Z","content":"\nread a.txt\n\n\nThe current local time is: 2026-11-18T11:57:19+08:00.\n\n\nThe user changed setting `Model Selection` from None to g3. No need to comment on this change if the user doesn't ask about it. If reporting what model you are, please use a human readable name instead of the exact string.\n"} +{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-11-18T03:57:20Z","input_tokens":1000,"cache_read_tokens":200,"output_tokens":7,"content":"pong"} diff --git a/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript.jsonl b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript.jsonl new file mode 100644 index 000000000..2d166a278 --- /dev/null +++ b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript.jsonl @@ -0,0 +1,2 @@ +{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE","created_at":"2026-11-18T03:57:19Z","content":"\nread a.txt\n\n\nThe current local time is: 2026-11-18T11:57:19+08:00.\n\n\nThe user changed setting `Model Selection` from None to g3. No need to comment on this change if the user doesn't ask about it. If reporting what model you are, please use a human readable name instead of the exact string.\n"} +{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-11-18T03:57:20Z","input_tokens":1000,"cache_read_tokens":200,"output_tokens":7,"content":"pong"} diff --git a/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript_full.jsonl b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript_full.jsonl new file mode 100644 index 000000000..2d166a278 --- /dev/null +++ b/internal/sessions/testdata/antigravity-2.30/brain/d96c88af-9e92-463f-a81c-9bb0f7007818/.system_generated/logs/transcript_full.jsonl @@ -0,0 +1,2 @@ +{"step_index":0,"source":"USER_EXPLICIT","type":"USER_INPUT","status":"DONE","created_at":"2026-11-18T03:57:19Z","content":"\nread a.txt\n\n\nThe current local time is: 2026-11-18T11:57:19+08:00.\n\n\nThe user changed setting `Model Selection` from None to g3. No need to comment on this change if the user doesn't ask about it. If reporting what model you are, please use a human readable name instead of the exact string.\n"} +{"step_index":1,"source":"MODEL","type":"PLANNER_RESPONSE","status":"DONE","created_at":"2026-11-18T03:57:20Z","input_tokens":1000,"cache_read_tokens":200,"output_tokens":7,"content":"pong"} diff --git a/internal/sessions/testdata/antigravity-2.30/conversation_summaries.db b/internal/sessions/testdata/antigravity-2.30/conversation_summaries.db new file mode 100644 index 000000000..c9f5c3a25 Binary files /dev/null and b/internal/sessions/testdata/antigravity-2.30/conversation_summaries.db differ diff --git a/internal/sessions/testdata/antigravity-2.30/conversations/d96c88af-9e92-463f-a81c-9bb0f7007818.db b/internal/sessions/testdata/antigravity-2.30/conversations/d96c88af-9e92-463f-a81c-9bb0f7007818.db new file mode 100644 index 000000000..65428a62b Binary files /dev/null and b/internal/sessions/testdata/antigravity-2.30/conversations/d96c88af-9e92-463f-a81c-9bb0f7007818.db differ