发布

  • [OPIK-5909] [FE] perf: speed up Ollie assistant start times (#6285)

    frostbyte_neo 发布于 2026-04-15 12:01:37 +00:00

    • [OPIK-5909] [FE] perf: speed up Ollie assistant start times

    Reduce perceived start time by prewarming pod provisioning at workspace
    resolve, tightening the health-poll interval, and parallelizing the
    manifest fetch + preconnecting to the pod origin.

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

    • [OPIK-5909] [FE] chore: gate Ollie prewarm on plugin store instead of IS_DEV

    • [OPIK-5909] [FE] chore: address review — extract manifest retry constants, gate prewarm on IS_DEV

    • Extract MANIFEST_RETRY_COUNT, MANIFEST_RETRY_BASE_DELAY_MS,
      MANIFEST_RETRY_MAX_DELAY_MS to named constants alongside the
      existing HEALTH_POLL_* family.
    • Skip usePrewarmAssistantCompute in Vite dev (IS_DEV) so Comet
      engineers running vite --mode comet don't fire a wasted
      /opik/ollie/compute request that useAssistantBackend would
      short-circuit to DEV_RESULT anyway. Plugin-store gate still
      handles the OSS case.
    • [OPIK-5909] [FE] chore: move Ollie prewarm behind plugin store to satisfy dep-cruiser

    WorkspaceGuard lives in core app code and was importing
    usePrewarmAssistantCompute directly from plugins/comet/, which
    violates the no-project-importing-plugins rule enforced by
    depcruise in CI.

    Wraps the hook in a null-rendering AssistantPrewarmer plugin
    component, registers it in PluginsStore, and renders it from
    WorkspaceGuard via the store. OSS builds don't register the
    plugin, so the prewarm naturally skips without needing a runtime
    assistantPlugin check inside the hook.


    Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

    下载附件