Skip to content

Auto Run summary only reports last loop iteration, not cumulative session stats #734

@kringle25

Description

@kringle25

Problem

When an Auto Run session spans multiple loop iterations over days/weeks, the "Auto Run stopped" summary entry only reports stats from the last loop iteration, not the cumulative session totals. This significantly undercounts user activity.

Observed Data

An 8-day Auto Run session ("Arnold") with 741 history entries:

Metric Summary Reported Actual (all entries) Under-reported by
Tasks 61 741 (647 success, 22 failed) 12x
Duration 5h 55m 145.9 hours 25x
Tokens 1.87M 16.09M 8.6x
Cost $1,249.60 $6,280.57 5x

Root Cause

The summary entry (entries[0], type AUTO, success: false) is generated when the auto-run stops. It appears to only aggregate stats from the current/last loop iteration (loop iteration 00001 in the prompt), not across all entries in the session history file.

Expected Behavior

The "Auto Run stopped" summary should aggregate across all entries in the session:

  • Total tasks = count of all entries (excluding the summary entry itself)
  • Total duration = sum of all elapsedTimeMs values
  • Total tokens = sum of all inputTokens + outputTokens across all entries
  • Total cost = sum of all totalCostUsd across all entries

Impact

  • Achievement/level progress is calculated on undercounted stats
  • User dashboard shows incorrect session totals
  • Cost tracking is inaccurate (showed $1.2K instead of $6.3K)

Related

Environment

  • macOS Darwin 25.4.0
  • Maestro desktop app (Electron)
  • Session ran March 29 – April 5, 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions