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:
18 files changed
+196
-23
No files matched your search
@@ -27,12 +27,12 @@ export const actions = [
|
||||
defineAction({
|
||||
name: 'get_status',
|
||||
readOnly: true,
|
||||
returns: '运行状态。`online` 表示账号在线;`good` 仅在接收链路确认停滞时为 `false`。',
|
||||
returns: '运行状态。`online` 表示账号在线;`good` 表示已确认的收发链路健康状态。',
|
||||
returnsSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
online: { type: 'boolean', description: '是否在线' },
|
||||
good: { type: 'boolean', description: '接收链路健康状态;仅在确认停滞时为 false' },
|
||||
good: { type: 'boolean', description: '收发链路健康状态;确认接收停滞或主动请求连接失效时为 false' },
|
||||
},
|
||||
required: ['online', 'good'],
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { ApiHandler, type ApiActionContext } from '../src/api-handler';
|
||||
|
||||
describe('get_status receive health (#233)', () => {
|
||||
describe('get_status transport health (#233, #342)', () => {
|
||||
it('keeps online true while reporting a stalled receive path as not good', async () => {
|
||||
const ctx = {
|
||||
isOnline: () => true,
|
||||
|
||||
Reference in new issue
Block a user