Skip to content

CLI autocomplete is painfully slow #290

Description

@skyf0l

Running exegol with argcomplete enabled feels sluggish, every Tab press freezes for ~0.5–1s before suggestions appear.

Expected: Completion should return almost instantly (tens of milliseconds), only touching the minimal modules needed to list containers/images.

Actual: Completion blocks for hundreds of ms, re-importing heavy modules and even contacting Docker/Supabase during completion.

Impact: Everyday CLI use feels laggy; shells look frozen; tab completion becomes unusable on slower machines.

Notes: Profiling shows most time spent importing ExegolController, ExegolManager, UserConfig, SessionHandler, and calling DockerUtils in the completer. We should avoid importing the full CLI stack for completion and cache container/image names without hitting Docker on every Tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions