fix(whatsapp): stabilize auth state and reconcile local runtime after CLI login (#67815)

* WhatsApp: harden auth persistence and backup recovery

* WhatsApp: model unstable auth state across runtime and setup

* WhatsApp: recover login and monitor startup from unstable auth

* Channels: surface auth stabilizing in status and health

* Gateway protocol: add channels.start surface

* Gateway: reconcile local channel runtime after CLI login

* Channels UI: reflect recovered login start state

* Changelog: note WhatsApp auth stabilization

* Gateway: fix lint in call test
This commit is contained in:
Marcus Castro
2026-04-19 14:20:46 -03:00
committed by GitHub
parent 1d4e4314dd
commit aa76cf43f0
53 changed files with 2191 additions and 366 deletions

View File

@@ -2481,6 +2481,24 @@ public struct ChannelsStatusResult: Codable, Sendable {
}
}
public struct ChannelsStartParams: Codable, Sendable {
public let channel: String
public let accountid: String?
public init(
channel: String,
accountid: String?)
{
self.channel = channel
self.accountid = accountid
}
private enum CodingKeys: String, CodingKey {
case channel
case accountid = "accountId"
}
}
public struct ChannelsLogoutParams: Codable, Sendable {
public let channel: String
public let accountid: String?