Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/plannotator-tui-hosts/src/antigravity.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Antigravity CLI (`agy`): one directory per conversation under the app data directory
//! (`$ANTIGRAVITY_CLI_HOME`, default `~/.gemini/antigravity-cli`), its steps in
//! (`$ANTIGRAVITY_CLI_HOME` or `$ANTIGRAVITY_APP_DATA_DIR`, default `~/.gemini/antigravity-cli`), its steps in
//! `brain/<conversation id>/.system_generated/logs/transcript_full.jsonl`.
//!
//! Each line is one step: `USER_INPUT` steps carry the prompt in `content`, `PLANNER_RESPONSE`
Expand Down
2 changes: 1 addition & 1 deletion crates/plannotator-tui-hosts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum Host {
/// reports it as `cmd`.
CommandCode,
/// Antigravity CLI: `<app data>/brain/<conversation id>/.../transcript_full.jsonl`, the
/// app data directory `~/.gemini/antigravity-cli` unless `ANTIGRAVITY_CLI_HOME` moves it;
/// app data directory `~/.gemini/antigravity-cli` unless `ANTIGRAVITY_CLI_HOME` or `ANTIGRAVITY_APP_DATA_DIR` moves it;
/// Herdr reports it as `agy` with the conversation id.
Antigravity,
}
Expand Down
10 changes: 10 additions & 0 deletions crates/plannotator-tui/src/last/roots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ impl Roots {
codex_home: path("CODEX_HOME").unwrap_or_else(|| home.join(".codex")),
copilot_home: path("COPILOT_HOME").unwrap_or_else(|| home.join(".copilot")),
factory_config: path("FACTORY_CONFIG_DIR").unwrap_or_else(|| home.join(".factory")),
// agy 1.2.7 reads ANTIGRAVITY_APP_DATA_DIR; ANTIGRAVITY_CLI_HOME is the name reported in #70.
antigravity_home: path("ANTIGRAVITY_CLI_HOME")
.or_else(|| path("ANTIGRAVITY_APP_DATA_DIR"))
.unwrap_or_else(|| home.join(antigravity::DEFAULT_APP_DATA_DIR)),
pi_session_dir: path("PI_CODING_AGENT_SESSION_DIR"),
pi_agent_dir: path("PI_CODING_AGENT_DIR"),
Expand Down Expand Up @@ -108,6 +110,14 @@ mod tests {

use super::*;

#[test]
fn antigravity_app_data_dir_is_honoured() {
let roots = Roots::from_lookup(PathBuf::from("home"), |key| {
(key == "ANTIGRAVITY_APP_DATA_DIR").then(|| OsString::from("root/agy app"))
});
assert_eq!(roots.antigravity_home, PathBuf::from("root/agy app"));
}

#[test]
fn every_documented_root_override_is_honoured() {
let values: HashMap<&str, OsString> = [
Expand Down
2 changes: 1 addition & 1 deletion docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ when it runs its own Herdr integration; that id is looked up as `<id>.jsonl`, sl
first.

**Antigravity CLI** (2026-10-27, herdr-annotate#70). `agy` keeps one directory per
conversation in its app data directory (`$ANTIGRAVITY_CLI_HOME`, else
conversation in its app data directory (`$ANTIGRAVITY_CLI_HOME` or `$ANTIGRAVITY_APP_DATA_DIR`, else
`~/.gemini/antigravity-cli`, `%USERPROFILE%` on Windows):
`brain/<conversation id>/.system_generated/logs/transcript_full.jsonl`, one step per line.
`transcript.jsonl` beside it truncates long `content` and is never read. A reply is a
Expand Down
Loading