chore: update protocol artifacts

This commit is contained in:
Peter Steinberger
2026-01-24 11:27:55 +00:00
parent be1cdc9370
commit eaeb52f70a
3 changed files with 10 additions and 8 deletions

View File

@@ -964,6 +964,7 @@ public struct SessionsPreviewParams: Codable, Sendable {
public struct SessionsResolveParams: Codable, Sendable { public struct SessionsResolveParams: Codable, Sendable {
public let key: String? public let key: String?
public let sessionid: String?
public let label: String? public let label: String?
public let agentid: String? public let agentid: String?
public let spawnedby: String? public let spawnedby: String?
@@ -972,6 +973,7 @@ public struct SessionsResolveParams: Codable, Sendable {
public init( public init(
key: String?, key: String?,
sessionid: String?,
label: String?, label: String?,
agentid: String?, agentid: String?,
spawnedby: String?, spawnedby: String?,
@@ -979,6 +981,7 @@ public struct SessionsResolveParams: Codable, Sendable {
includeunknown: Bool? includeunknown: Bool?
) { ) {
self.key = key self.key = key
self.sessionid = sessionid
self.label = label self.label = label
self.agentid = agentid self.agentid = agentid
self.spawnedby = spawnedby self.spawnedby = spawnedby
@@ -987,6 +990,7 @@ public struct SessionsResolveParams: Codable, Sendable {
} }
private enum CodingKeys: String, CodingKey { private enum CodingKeys: String, CodingKey {
case key case key
case sessionid = "sessionId"
case label case label
case agentid = "agentId" case agentid = "agentId"
case spawnedby = "spawnedBy" case spawnedby = "spawnedBy"

View File

@@ -964,6 +964,7 @@ public struct SessionsPreviewParams: Codable, Sendable {
public struct SessionsResolveParams: Codable, Sendable { public struct SessionsResolveParams: Codable, Sendable {
public let key: String? public let key: String?
public let sessionid: String?
public let label: String? public let label: String?
public let agentid: String? public let agentid: String?
public let spawnedby: String? public let spawnedby: String?
@@ -972,6 +973,7 @@ public struct SessionsResolveParams: Codable, Sendable {
public init( public init(
key: String?, key: String?,
sessionid: String?,
label: String?, label: String?,
agentid: String?, agentid: String?,
spawnedby: String?, spawnedby: String?,
@@ -979,6 +981,7 @@ public struct SessionsResolveParams: Codable, Sendable {
includeunknown: Bool? includeunknown: Bool?
) { ) {
self.key = key self.key = key
self.sessionid = sessionid
self.label = label self.label = label
self.agentid = agentid self.agentid = agentid
self.spawnedby = spawnedby self.spawnedby = spawnedby
@@ -987,6 +990,7 @@ public struct SessionsResolveParams: Codable, Sendable {
} }
private enum CodingKeys: String, CodingKey { private enum CodingKeys: String, CodingKey {
case key case key
case sessionid = "sessionId"
case label case label
case agentid = "agentId" case agentid = "agentId"
case spawnedby = "spawnedBy" case spawnedby = "spawnedBy"

View File

@@ -501,9 +501,7 @@ export async function runHeartbeatOnce(opts: {
return { status: "skipped", reason: "alerts-disabled" }; return { status: "skipped", reason: "alerts-disabled" };
} }
const heartbeatOkText = responsePrefix const heartbeatOkText = responsePrefix ? `${responsePrefix} ${HEARTBEAT_TOKEN}` : HEARTBEAT_TOKEN;
? `${responsePrefix} ${HEARTBEAT_TOKEN}`
: HEARTBEAT_TOKEN;
const canAttemptHeartbeatOk = Boolean( const canAttemptHeartbeatOk = Boolean(
visibility.showOk && delivery.channel !== "none" && delivery.to, visibility.showOk && delivery.channel !== "none" && delivery.to,
); );
@@ -559,11 +557,7 @@ export async function runHeartbeatOnce(opts: {
} }
const ackMaxChars = resolveHeartbeatAckMaxChars(cfg, heartbeat); const ackMaxChars = resolveHeartbeatAckMaxChars(cfg, heartbeat);
const normalized = normalizeHeartbeatReply( const normalized = normalizeHeartbeatReply(replyPayload, responsePrefix, ackMaxChars);
replyPayload,
responsePrefix,
ackMaxChars,
);
const shouldSkipMain = normalized.shouldSkip && !normalized.hasMedia; const shouldSkipMain = normalized.shouldSkip && !normalized.hasMedia;
if (shouldSkipMain && reasoningPayloads.length === 0) { if (shouldSkipMain && reasoningPayloads.length === 0) {
await restoreHeartbeatUpdatedAt({ await restoreHeartbeatUpdatedAt({