Skip to content

Incorrect Total Time on Auto Run during errors #242

@chr1syy

Description

@chr1syy

Screenshot

Image

Only did 1 Auto Run with ~30minutes before the error happened. Kept Re-trying until i restarted the app and got presented with another AutoRun-Badge for 1 hour (lvl 2 / 11).

Suspected Issue

AutoRun was working on Regex for different types of errors, the agent might have given back info about the changed code which got interpreted as error in Maestro itself and appeared as SSH Connection refused error. With retry multiple sessions got started over and over again and might have added time to the Auto Run progress through App.tsx:

           // Multiply by number of concurrent sessions so each active Auto Run contributes its time
            // e.g., 2 sessions running for 1 minute = 2 minutes toward cumulative achievement time
            const deltaMs = elapsedMs * activeBatchSessionIds.length;

            // Update achievement stats with the delta
            const { newBadgeLevel } = updateAutoRunProgress(deltaMs);

It appears that errors during active AutoRuns just set errorPaused: true while the AutoRun still counts for activeBatchSessionIds, so time gets counted.

Metadata

Metadata

Assignees

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