mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 16:03:49 +00:00
fix(ai-vault): preserve non-scanner relay errors
This commit is contained in:
@@ -79,6 +79,11 @@ describe('describeAiVaultScanError', () => {
|
||||
"Error invoking remote method 'aiVault:listSessions': Error: SSH relay is not ready"
|
||||
)
|
||||
).toBe('SSH relay is not ready')
|
||||
expect(describeAiVaultScanError('Relay Scanner is not ready')).toBe('Scanner is not ready')
|
||||
expect(describeAiVaultScanError('Relay AI Vault scanner is not ready')).toBe(
|
||||
'AI Vault scanner is not ready'
|
||||
)
|
||||
expect(describeAiVaultScanError('Relay client is not connected')).toBe(
|
||||
'Relay client is not connected'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -8,8 +8,8 @@ const RETRY = 'Refresh to try again.'
|
||||
|
||||
/** Electron wraps every rejected `ipcMain.handle` before the renderer sees it. */
|
||||
const IPC_INVOKE_PREFIX = /^Error invoking remote method '[^']*': (?:\w*Error: )?/
|
||||
/** Relay-hosted scan errors carry a transport-only `Relay ` prefix. */
|
||||
const RELAY_PREFIX = /^Relay /
|
||||
/** Relay-hosted scanner errors carry a transport-only `Relay ` prefix. */
|
||||
const RELAY_PREFIX = /^Relay (?=AI Vault )/
|
||||
/** Both the fork-based service and the legacy worker thread emit this family. */
|
||||
const SCANNER = String.raw`AI Vault (?:service|scanner worker)`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user