Skip to content

Use safe stringify for agent session cache#292537

Merged
alexr00 merged 1 commit intomainfrom
alexr00/occupational-jellyfish
Feb 3, 2026
Merged

Use safe stringify for agent session cache#292537
alexr00 merged 1 commit intomainfrom
alexr00/occupational-jellyfish

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Feb 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 3, 2026 10:46
@alexr00 alexr00 enabled auto-merge (squash) February 3, 2026 10:46
@alexr00 alexr00 self-assigned this Feb 3, 2026
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the agent session cache serialization to use safeStringify instead of JSON.stringify to prevent potential errors from circular references or bigint values.

Changes:

  • Replaced JSON.stringify with safeStringify in the saveCachedSessions method to handle edge cases like circular references and bigint values gracefully

@SamaelxLunafreya
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts

no siema

@alexr00 alexr00 merged commit f2c8acb into main Feb 3, 2026
27 of 28 checks passed
@alexr00 alexr00 deleted the alexr00/occupational-jellyfish branch February 3, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants