feat(mission-control): rename sessions inline in the Recent sessions flyout
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
d9355383a4
commit
5bf08873bd
@@ -19,6 +19,11 @@ public sealed class MissionControlSessionRepository
|
||||
await _context.SaveChangesAsync(ct);
|
||||
}
|
||||
|
||||
/// <summary>Sets the session's title; a no-op for an unknown id. <see cref="RecordAsync"/> never overwrites it.</summary>
|
||||
public async Task RenameAsync(string sessionId, string title, CancellationToken ct = default) =>
|
||||
await _context.MissionControlSessions.Where(s => s.SessionId == sessionId)
|
||||
.ExecuteUpdateAsync(s => s.SetProperty(x => x.Title, title), ct);
|
||||
|
||||
/// <summary>The recorded session, or null.</summary>
|
||||
public async Task<MissionControlSessionEntity?> GetAsync(string sessionId, CancellationToken ct = default) =>
|
||||
await _context.MissionControlSessions.AsNoTracking().FirstOrDefaultAsync(s => s.SessionId == sessionId, ct);
|
||||
|
||||
Reference in New Issue
Block a user