Skip to content

data.totalPremiumRequests was returned as float, while an int is expected, causing corruption of a session file #3432

@bmehta001

Description

@bmehta001

Describe the bug

I received a bug that said "Error: Session file is corrupted (line 4984: data.totalPremiumRequests: Expected integer, received float)"

totalPremiumRequests -> I saw that the value received was 7.5, so I used another CoPilot session to recover this one by changing the value to 8. The shutdown event already recorded gpt-5.5.requests.count = 8, so the repaired value now matches the schema’s required integer type

Affected version

1.0.49

Steps to reproduce the behavior

Not sure how to reproduce the behavior but the fix should be simple - either

  1. expect a float
  2. cast floats to an int
  3. Ensure floats are not received

Expected behavior

data.totalPremiumRequests should not cause the session to crash irrecoverably

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions