mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 08:03:22 +00:00
chore: remove unrelated formatting changes
This commit is contained in:
+3
-3
@@ -460,9 +460,9 @@ async function isProviderPtyLive(
|
||||
): Promise<boolean> {
|
||||
// Why: bound the liveness list RPC by the teardown deadline so a wedged daemon
|
||||
// fails fast; undefined keeps the provider default for all other callers.
|
||||
return (await provider.listProcesses(deadlineMs !== undefined ? { deadlineMs } : undefined)).some(
|
||||
(session) => session.id === ptyId
|
||||
)
|
||||
return (
|
||||
await provider.listProcesses(deadlineMs !== undefined ? { deadlineMs } : undefined)
|
||||
).some((session) => session.id === ptyId)
|
||||
}
|
||||
|
||||
async function verifyPtyStopped(
|
||||
|
||||
@@ -38,7 +38,9 @@ export function isSshPtyIdentityMismatchError(err: unknown): boolean {
|
||||
// timeout — convert only here, at the RPC itself, so sequential relay calls share
|
||||
// the remaining budget (undefined keeps the multiplexer default timeout).
|
||||
function relayTimeoutOptions(deadlineMs: number | undefined): { timeoutMs: number } | undefined {
|
||||
return deadlineMs === undefined ? undefined : { timeoutMs: Math.max(1, deadlineMs - Date.now()) }
|
||||
return deadlineMs === undefined
|
||||
? undefined
|
||||
: { timeoutMs: Math.max(1, deadlineMs - Date.now()) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -507,10 +507,7 @@ describe('killAllProcessesForWorktree', () => {
|
||||
// The daemon never replies; the request only rejects when its own
|
||||
// timeout elapses, exactly like the real client.
|
||||
return new Promise((_resolve, reject) => {
|
||||
setTimeout(
|
||||
() => reject(new Error(`Request kill timed out after ${timeoutMs}ms`)),
|
||||
timeoutMs
|
||||
)
|
||||
setTimeout(() => reject(new Error(`Request kill timed out after ${timeoutMs}ms`)), timeoutMs)
|
||||
})
|
||||
}
|
||||
return Promise.resolve({})
|
||||
|
||||
Reference in New Issue
Block a user