Skip to content

User Story: Add session management commands for Gemini and Qwen #8

@eigenverft

Description

@eigenverft

User Story

As a user of Gemini and Qwen named sessions, I want session management commands similar to Codex, so that I can:

  • List my stored Gemini/Qwen sessions
  • Inspect session details (name, session id, last directory, updated timestamp)
  • Remove stale sessions
  • Clear all sessions when needed

Current State

Codex has these session helpers:

  • Get-CodexSession - List all or get specific session
  • Remove-CodexSession - Remove a session
  • Set-CodexSessionDirectory - Update session directory
  • Clear-CodexSessions - Clear all sessions

Gemini and Qwen have none of these.

Acceptance Criteria

Get-GeminiSession

  • List all stored Gemini sessions
  • Get specific session by -SessionName
  • Returns: SessionName, SessionId, LastDirectory, UpdatedUtc

Get-QwenSession

  • List all stored Qwen sessions
  • Get specific session by -SessionName
  • Returns: SessionName, SessionId, LastDirectory, UpdatedUtc

Remove-GeminiSession

  • Remove a specific Gemini session by name
  • Requires -Force confirmation

Remove-QwenSession

  • Remove a specific Qwen session by name
  • Requires -Force confirmation

Clear-GeminiSessions

  • Clear all Gemini sessions
  • Requires -Force confirmation

Clear-QwenSessions

  • Clear all Qwen sessions
  • Requires -Force confirmation

Example Usage

# List all Gemini sessions
Get-GeminiSession

# Get specific Qwen session
Get-QwenSession -SessionName "qwen-repo1"

# Remove a stale session
Remove-GeminiSession -SessionName "old-project" -Force

# Clear all Qwen sessions
Clear-QwenSessions -Force

Notes

  • Copy pattern from existing Codex session functions
  • Session stores: named-gemini-sessions.json, named-qwen-sessions.json
  • No need to implement Set-*SessionDirectory initially (less critical)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions