microsoft / microsoft/vscode

Agent session resume fails when an event is missing agentDisplayName

Open
#334,456 0 comments 0 reactions 1 assignee Claimed by @TylerLeonhardt View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

## Type of issue

Bug

## Description

Resuming an existing agent session can fail because the session event log cannot be parsed when an event is missing the `agentDisplayName` field.

The UI reports:

`Request session.resume failed ... Failed to read JSONL ... Invalid event at line 2: missing field agentDisplayName`

## Steps to reproduce

1. Open an existing agent session.
2. Send another message to resume the session.
3. Observe that the resume operation fails while reading the session event log.

## Expected behavior

Existing sessions should resume successfully. The event reader should remain compatible with events that do not contain `agentDisplayName`, or migrate/handle those events without making the entire session unusable.

## Screenshot

![Agent session resume failure caused by missing agentDisplayName](https://github.com/user-attachments/assets/7226ef0c-4f0e-4e97-b0c4-d2fec1be9bc1)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.