Skip to content

Unbounded growth of spec execution history in globalStorage (~8GB+ / 6000+ files) #4165

@haabe

Description

@haabe

Before opening, please confirm:

Operating System

MacOS Tahoe

Kiro Version

0.6.32

Bug Description

Kiro is currently storing 6,422 execution log files (including failed ones) and never cleaning them up. Each file contains the full context of a spec generation run, including your prompts and environment context.

  • Location: ~/Library/Application Support/Kiro/User/globalStorage/kiro.kiroagent///
  • File count: 6,422 files
  • Total size: ~8.2GB (21GB across all workspaces)
  • File type: JSON execution logs with workflowType: "spec-generation"
  • Issue: No cleanup/rotation of old or failed executions

Steps to Reproduce

  1. Work with Kiro over time
  2. See the execution log grow

Expected Behavior

Execution history should have retention limits

Conversation ID

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions