fix(hopper): preserve startup failures and recover denied launches
Preserve the primary Hopper startup failure and launcher diagnostics while retaining resources when cleanup cannot be confirmed. Reauthenticate matching external application sessions before document cleanup, keep the Python bridge available for bounded reconnects, and expose the provider-owned Hopper startup deadline. Real headless Linux Hopper semantic analysis and 65 focused configuration, handshake, cleanup, and bridge tests passed. macOS authorization/crash causes and saved-HOP behavior require their own real-provider verification. Refs #1808 Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com> Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
This commit is contained in:
co-authored by
N0zoM1z0
Kaoru0822
parent
ee5275cd9f
commit
069308bbe6
@@ -2,6 +2,9 @@ import { HopperProtocolError } from "../domain/hopperErrors.js";
|
||||
import type { JsonValue } from "../domain/jsonValue.js";
|
||||
import { err, ok, type Result } from "../domain/result.js";
|
||||
|
||||
/** Bound cleanup handshakes and the bridge's idle reconnection wait. */
|
||||
export const HOPPER_SHUTDOWN_TIMEOUT_MS = 30_000;
|
||||
|
||||
/** Authenticated identity returned by the Hopper bridge health handshake. */
|
||||
export interface HopperServerInfo {
|
||||
readonly name: string;
|
||||
|
||||
Reference in New Issue
Block a user