@dxos/client
    Preparing search index...

    Interface DebugPortController

    Start/stop handle for the agent debug port.

    The port evaluates arbitrary code in the page, so it is never started implicitly: activation is always an explicit gesture, the session id is regenerated each time, and nothing is persisted — a reload leaves it stopped.

    interface DebugPortController {
        getStatus(): DebugPortStatus;
        resume(options?: DebugPortStartOptions): undefined | string;
        start(options?: DebugPortStartOptions): string;
        stop(): void;
        subscribe(listener: () => void): () => void;
    }
    Index

    Methods

    • Restart a session persisted by start({ persist: true }) in this tab, reusing its id so the agent's existing session id keeps working across the reload. Returns the id, or undefined when there is nothing live to resume. Never mints a new session: with no unexpired record this is a no-op, so calling it at startup cannot turn the port on by itself.

      Parameters

      Returns undefined | string