Skip to content

Feature: Manually provide new session UUID via command line arg #19602

@Cidan

Description

@Cidan

What would you like to be added?

I would like it if the gemini CLI would allow you to specific a UUID, just like claude does, at the command line. For example, claude let's you do:

claude --session-id <some-uuid> -p "please take a look at..."

which can then be fed back in via the -r <uuid> flag in claude.

Why is this needed?

This flag is needed for better automation of Gemini when abstracted. Right now, if a user has another bot or system that shells out to Gemini for an edit, and a follow up needs to happen, we can't pre-seed a path for a codebase location with a UUID, because the UUID is not known until Gemini runs. With Claude, we can do:

  1. Generate a UUIDv4

  2. Checkout our code into /path/to/sandbox/<uuid>

  3. Open claude with the session id set to <uuid>

  4. Revisit the work/checkout with the same UUID.

With Gemini, we would need to

  1. Generate a UUIDv4

  2. Checkout our code into /path/to/sandbox/<uuid>

  3. Open Gemini and run the prompt

  4. Capture the UUID returned by Gemini via -o json

  5. Store both the folder location UUID and the Gemini UUID as a pair so that we can map a folder -> session

By letting us provide our own session id, we can remove a step of complexity that's not needed.

Additional context

Please and thank you :)

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionality
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions