Skip to content

Decouple read-only Code/Tooling from Runtime initialization #269

Description

@AntoineToussaint

Read-only Code and Tooling calls currently acquire an AgentSession that unconditionally runs Runtime.Load and Runtime.Init. This couples project inspection to toolchain/environment readiness, adds startup latency, and can prevent semantic recovery on malformed projects before the analyzer runs. Make Runtime initialization lazy and concurrency-safe: Code/Tooling must start the production agent without Runtime lifecycle; Build/Test/Lint/Stop initialize Runtime on first use; runtime initialization failures retain the existing typed env-blocked Test response. Verify real GetProjectInfo/GetSemanticIndex against malformed source and preserve runtime behavior. Supports #268 and codefly-dev/mind#369.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions