Skip to content

Add support for continuing existing conversations in non-interactive mode #1530

@bachittle

Description

@bachittle

Currently, each gemini CLI invocation starts fresh without memory of previous interactions.

Proposed: Add --continue (-c) or --resume (-r) flag to maintain conversation context across CLI calls. This would allow users to build on previous responses without re-explaining context.

Example:
gemini -p "Explain X"
gemini --continue -p "What about Y?"

this infrastructure already exists in interactive mode, so this should be pretty easy to transfer over:

  • /chat save - Save current conversation
  • /chat resume - Resume saved conversation
  • /chat list - List saved conversations

but then -p commands would need to save every time it is used. so would need to think about this carefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityarea/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationpriority/p2Important but can be addressed in a future release.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions