fix(bridge): recover stale outbound sessions

Recover invalidated native send bindings from same-account receive evidence. Track outbound connection loss in status health and refresh the six public native artifacts from native build 94f2b63.

Closes #342
This commit is contained in:
DrSmoothl committed 2026-08-09 21:40:09 +08:00
1 parent 129b091081
commit 870e9a5fbc
18 files changed
+196 -23

No files matched your search

+11 -2
View File
@@ -688,10 +688,19 @@ describe('QqHookClient — packet TRACE', () => {
message: 'send ack 1 timed out after 25 ms',
});
await expect(client.sendAndWait(
const requestError = await client.sendAndWait(
'Pipe.Error',
Buffer.from([0xff]),
)).rejects.toThrow('send ack 2 timed out after 25 ms');
).then(
() => null,
(error: unknown) => error,
);
expect(requestError).toMatchObject({
name: 'HookPipeRequestError',
message: 'send ack 2 timed out after 25 ms',
status: 12,
requestId: 2,
});
expect(traceMessages(entries)).toEqual(expect.arrayContaining([
expect.stringMatching(/^packet_terminal serviceCmd="Ack\.Timeout" requestId=1 outcome=timeout reason=ack_timeout error="send ack 1 timed out after 25 ms" elapsedMs=\d+$/),