fix(agy): map -r/--resume with session id to --conversation #146

Merged
rootiest merged 1 commits from fix/agy-resume-conversation-syntax into main 2026-09-10 03:38:01 +00:00
Owner

Why

agy (Antigravity CLI) uses different resume syntax than claude. In
claude, --resume covers both "resume most recent" and "resume a specific
session id". In agy, those are two distinct flags: -c/--continue
resumes the most-recent session, while --conversation takes a specific
session id.

The agy wrapper was blanket-mapping -r/--resume to -c/--continue,
which broke every form of agy --resume <id> (the id was silently dropped
and the most-recent session opened instead).

What

functions/agy.fish now inspects the arguments to -r/--resume:

  • Bare -r/--resume (nothing follows, or the next token is another flag)
    -c/--continue (most-recent session).
  • -r/--resume given a session id, via =id or a following bare word
    --conversation/--conversation=id (specific session).

Covers all forms:

agy --resume                                            -> --continue
agy -r                                                   -> -c
agy --resume=5fffb251-...                                -> --conversation=5fffb251-...
agy --resume 5fffb251-...                                -> --conversation 5fffb251-...
agy -r=5fffb251-...                                       -> --conversation=5fffb251-...
agy -r 5fffb251-...                                       -> --conversation 5fffb251-...

Function header docs updated to match. docs/fish-config.md/.1/site are
generated by CI on merge, not hand-regenerated here.

Manual Verification Checklist

  • agy --resume opens the most-recent session
  • agy -r opens the most-recent session
  • agy --resume=<id> opens that specific session
  • agy --resume <id> opens that specific session
  • agy models (no -r/--resume) still passes through unchanged
## Why `agy` (Antigravity CLI) uses different resume syntax than `claude`. In `claude`, `--resume` covers both "resume most recent" and "resume a specific session id". In `agy`, those are two distinct flags: `-c`/`--continue` resumes the most-recent session, while `--conversation` takes a specific session id. The `agy` wrapper was blanket-mapping `-r`/`--resume` to `-c`/`--continue`, which broke every form of `agy --resume <id>` (the id was silently dropped and the most-recent session opened instead). ## What `functions/agy.fish` now inspects the arguments to `-r`/`--resume`: - Bare `-r`/`--resume` (nothing follows, or the next token is another flag) → `-c`/`--continue` (most-recent session). - `-r`/`--resume` given a session id, via `=id` or a following bare word → `--conversation`/`--conversation=id` (specific session). Covers all forms: ``` agy --resume -> --continue agy -r -> -c agy --resume=5fffb251-... -> --conversation=5fffb251-... agy --resume 5fffb251-... -> --conversation 5fffb251-... agy -r=5fffb251-... -> --conversation=5fffb251-... agy -r 5fffb251-... -> --conversation 5fffb251-... ``` Function header docs updated to match. `docs/fish-config.md`/`.1`/site are generated by CI on merge, not hand-regenerated here. ## Manual Verification Checklist - [x] `agy --resume` opens the most-recent session - [x] `agy -r` opens the most-recent session - [x] `agy --resume=<id>` opens that specific session - [x] `agy --resume <id>` opens that specific session - [x] `agy models` (no -r/--resume) still passes through unchanged
rootiest added 1 commit 2026-09-10 03:24:50 +00:00
agy uses different resume syntax than claude: -c/--continue always
resumes the most-recent session, while --conversation takes a
specific session id. Previously -r/--resume was blanket-mapped to
-c/--continue, breaking `agy --resume <id>` and `agy -r=<id>` style
invocations. Now bare -r/--resume (no id following) maps to
-c/--continue; -r/--resume given an id (via =id or a following
non-flag word) maps to --conversation(=id).
rootiest added the Kind/BugArea/Functions labels 2026-09-10 03:25:02 +00:00
rootiest merged commit cc9531f19f into main 2026-09-10 03:38:01 +00:00
rootiest deleted branch fix/agy-resume-conversation-syntax 2026-09-10 03:38:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rootiest/fish-config#146