Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dotnet/src/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ public async Task SetForegroundSessionIdAsync(string sessionId, CancellationToke
var connection = await EnsureConnectedAsync(cancellationToken);

var response = await InvokeRpcAsync<SetForegroundSessionResponse>(
connection.Rpc, "session.setForeground", [new { sessionId }], cancellationToken);
connection.Rpc, "session.setForeground", [new SetForegroundSessionRequest(sessionId)], cancellationToken);

if (!response.Success)
{
Expand Down Expand Up @@ -1753,6 +1753,9 @@ internal record GetSessionMetadataRequest(
internal record GetSessionMetadataResponse(
SessionMetadata? Session);

internal record SetForegroundSessionRequest(
string SessionId);

internal record UserInputRequestResponse(
string Answer,
bool WasFreeform);
Expand Down Expand Up @@ -1871,6 +1874,7 @@ private static LogLevel MapLevel(TraceEventType eventType)
[JsonSerializable(typeof(SessionCapabilities))]
[JsonSerializable(typeof(SessionUiCapabilities))]
[JsonSerializable(typeof(SessionMetadata))]
[JsonSerializable(typeof(SetForegroundSessionRequest))]
[JsonSerializable(typeof(SystemMessageConfig))]
[JsonSerializable(typeof(SystemMessageTransformRpcResponse))]
[JsonSerializable(typeof(CommandWireDefinition))]
Expand Down
Loading