# Sessions disappear on remote access

**URL:** <https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039>\
**Category:** Google Antigravity\
**Tags:** bug\
**Created:** [October 16, 2026, 4:53pm UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039 "2026-10-16T16:53:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FORTUNA](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/fortuna/32/158889_2.png) [@FORTUNA](https://discuss.ai.google.dev/u/FORTUNA)\
**Post date:** [October 16, 2026, 4:53pm UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/1 "2026-10-16T16:53:33Z")

</div>

![Screenshot_20261016_111225_Edge](https://d3qe71uytubmmx.cloudfront.net/original/3X/a/a/aa185612193c23531801397b394d166454080d38.jpeg)

After updating to the latest agy cli, all sessions disappeared.  
When I start a new one, then go do something else and reopen the browser, they are gone again (sessions, chat, etc)

Argon found this:

````markdown
# Bug Report: Past & Background-Active Sessions Disappear in `agy remote-control serve` (`cli-1.3.6` & `cli-1.4.0`)

## Environment
- **Binary / Version:** `agy` `1.3.6` and `1.4.0` (`ANTIGRAVITY_LS_VERSION=cli-1.3.6` / `1.4.0`, `linux/arm64`)
- **Mode:** `agy remote-control serve` (headless daemon connected via `jetski-webchannel.googleapis.com:443`)

## Summary
There are **two bugs** in the Language Server summary / trajectory store pipeline that cause active or past conversations in `~/.gemini/antigravity-cli/conversations/*.db` to disappear from Remote Control clients (Web / Mobile / Tablet sidebar):

1. **Startup / Restart Bug (`GetAllCascadeTrajectories` & `SearchConversations` ignore `jetbox_summaries_store`):** After `agy remote-control serve` starts or restarts, `reconcileSummaries` caches all on-disk conversations into `conversation_summaries.db` (`cached 49, restored 0, resident: 0 -> 0`), but `GetAllCascadeTrajectories` and `SearchConversations` only return **resident** in-memory trajectories from `CascadeManager`. As a result, **zero** past sessions appear in the sidebar after a daemon restart unless `LoadTrajectory` is manually invoked for each UUID.
2. **Live File-Watcher Clobber Bug (`jetbox_summaries_store` overwrites `annotations` on background `.db` writes):** Whenever a background task or cron schedule (`schedule` tool) appends steps to `conversations/<cascadeId>.db`, the `fsnotify` watcher (`handleFileEvent` -> `recomputeAndStore`) rebuilds the summary purely from the SQLite `.db` file **without** merging `annotations/<cascadeId>.pbtxt`, wiping `title` to `""` and resetting `source` to `CORTEX_TRAJECTORY_SOURCE_CLI`.

---

## Bug 1: `GetAllCascadeTrajectories` & `SearchConversations` Return Only Resident In-Memory Trajectories

### What happens on daemon startup
In `cli.log` when `agy remote-control serve` starts:

```text
I1016 07:28:34.326577 112 store_client.go:714] summary store: starting background reconciliation (trigger=startup)
I1016 07:28:34.344898 112 store_client.go:764] summary store: reconciliation complete, synced 49 records
I1016 07:28:34.904632 207 reconcile_summaries.go:94] [Summaries] reconcile checked 49 conversations, restored 0, cached 49, skipped 0, dropped 0, cancelled false in 0ms (resident: 0 -> 0)
```

- `reconcile_summaries.go:94` (`google3/third_party/jetski/language_server/language_server.(*Server).reconcileSummaries`) checks all 49 `.db`/`.pb` files in `~/.gemini/antigravity-cli/conversations/`, caches them in `conversation_summaries.db`, and leaves `resident: 0 -> 0` in `CascadeManager`.
- However, when a Remote Control client connects and calls:
  - `/exa.language_server_pb.LanguageServerService/GetAllCascadeTrajectories` (`(*Server).GetAllCascadeTrajectories`), or
  - `/exa.language_server_pb.LanguageServerService/SearchConversations`
  both RPCs only return trajectories currently **resident in `CascadeManager`** , ignoring the 49 cached records in `jetbox_summaries_store` (unless `WithSummaryStoreReadsEnabled` / summary-store fallback is used).

### Reproduction & Proof
1. Have existing conversations in `~/.gemini/antigravity-cli/conversations/<cascadeId>.db` and `~/.gemini/antigravity-cli/annotations/<cascadeId>.pbtxt`.
2. Restart `agy remote-control serve`.
3. Call `GetAllCascadeTrajectories` (`{}`):
   - **Actual:** `{"trajectorySummaries": {}}` (empty — or only new conversations created since the process started).
   - **Expected:** Returns all reconciled conversation summaries (with their `annotations/<cascadeId>.pbtxt` titles merged).
4. Manually call `/exa.language_server_pb.LanguageServerService/LoadTrajectory` with `{"cascadeId": "<cascadeId>"}` (`(*CascadeManager).LoadTrajectory`), then call `GetAllCascadeTrajectories` again:
   - The conversation immediately appears in `GetAllCascadeTrajectories` and `SearchConversations` with its full `annotations` (`title`, `lastUserViewTime`) and `workspaces`.

---

## Bug 2: `jetbox_summaries_store` File Watcher Clobbers `annotations` (`title`) on Background `.db` Updates

### Code Path
- `google3/third_party/jetski/language_server/jetbox_summaries_store/jetbox_summaries_store.(*Store).runWatcher`
- `google3/third_party/jetski/language_server/jetbox_summaries_store/jetbox_summaries_store.(*Store).handleFileEvent`
- `google3/third_party/jetski/language_server/jetbox_summaries_store/jetbox_summaries_store.(*Store).loadTrajectoryFile` / `recomputeAndStore`
- `google3/third_party/jetski/language_server/jetbox_summaries_store/jetbox_summaries_store.SummaryToRecord`

### Mechanism
1. When a conversation is created or titled, its title and `last_user_view_time` are persisted in `~/.gemini/antigravity-cli/annotations/<cascadeId>.pbtxt` (e.g. `title:"Resuming Project and Cron Setup"`), while its steps are persisted in `~/.gemini/antigravity-cli/conversations/<cascadeId>.db`.
2. When a background command (`run_command` async task) or recurring `schedule` cron fires and appends a step to `conversations/<cascadeId>.db`:
   - `handleFileEvent` triggers on the `.db` file modification in `conversations/`.
   - It recomputes the `TrajectorySummary` directly from `<cascadeId>.db` **without reading `annotations/<cascadeId>.pbtxt`** (annotations are only merged when `annotations/<cascadeId>.pbtxt` itself is the watched file event or via `CascadeManager`).
   - `SummaryToRecord` then writes the recomputed summary to `conversation_summaries.db` (and pushes it to `JetboxSubscribeToSummaries`) with:
     - `title = ""` (clobbering the existing title in `conversation_summaries.db`)
     - `source = "CORTEX_TRAJECTORY_SOURCE_CLI"`
     - `raw_summary` stripped of protobuf field `15` (`annotations`).

---

## Suggested Fix
1. **In `(*Server).GetAllCascadeTrajectories` and `(*Server).SearchConversations`:** Merge summaries from `jetbox_summaries_store` (`(*Store).GetSummaries`) with resident `CascadeManager` trajectories (preferring resident in-memory state when a trajectory is loaded, and falling back to `jetbox_summaries_store` for non-resident trajectories), or restore recent trajectories in `reconcileSummaries`.
2. **In `jetbox_summaries_store.(*Store).handleFileEvent` / `loadTrajectoryFile`:** When recomputing a summary from `conversations/<cascadeId>.db`, always read and merge `annotations/<cascadeId>.pbtxt` (or preserve the existing `title` / `annotations` from the store) before calling `SummaryToRecord` / `putSummary`.

````

---

<div class="post-metadata">

**Author:** ![rkim972](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/rkim972/32/159001_2.png) [@rkim972](https://discuss.ai.google.dev/u/rkim972)\
**Post date:** [October 17, 2026, 12:46am UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/2 "2026-10-17T00:46:23Z")

</div>

I have this issue too.

Additionally, possibly unrelated but /boost’s subagents seem to get “forgotten” by the subagent tree in remote control and I have to click the “Started (Subagent Name)” to let it show again.

---

<div class="post-metadata">

**Author:** ![FORTUNA](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/fortuna/32/158889_2.png) [@FORTUNA](https://discuss.ai.google.dev/u/FORTUNA)\
**Post date:** [October 17, 2026, 1:38am UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/3 "2026-10-17T01:38:06Z")

</div>

I have a permanent local hotfix until they fix it themselves, but I mean, if I can do it, they can too

---

<div class="post-metadata">

**Author:** ![kevdev](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kevdev/32/159040_2.png) [@kevdev](https://discuss.ai.google.dev/u/kevdev)\
**Post date:** [October 17, 2026, 4:18am UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/4 "2026-10-17T04:18:42Z")

</div>

I’m having the same issue.

---

<div class="post-metadata">

**Author:** ![Raymond\_Sun](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/raymond_sun/32/159386_2.png) [@Raymond\_Sun](https://discuss.ai.google.dev/u/Raymond_Sun)\
**Post date:** [October 19, 2026, 2:03am UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/5 "2026-10-19T02:03:50Z")

</div>

could you share the fix.

---

<div class="post-metadata">

**Author:** ![harrisonlingren](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/harrisonlingren/32/143151_2.png) [@harrisonlingren](https://discuss.ai.google.dev/u/harrisonlingren)\
**Post date:** [October 19, 2026, 3:29am UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/6 "2026-10-19T03:29:12Z")

</div>

Also seeing this as of this week. I submitted a bug report via the web UI.

---

<div class="post-metadata">

**Author:** ![Maniraj\_Chervirala](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/maniraj_chervirala/32/31651_2.png) [@Maniraj\_Chervirala](https://discuss.ai.google.dev/u/Maniraj_Chervirala)\
**Post date:** [October 19, 2026, 3:40pm UTC](https://discuss.ai.google.dev/t/sessions-disappear-on-remote-access/190039/7 "2026-10-19T15:40:50Z")

</div>

Hi everyone, the issue where conversations disappear on remote access has been resolved in version 1.4.2. Please upgrade to the latest version.
