Skip to content

Type ColdRefused as a sum over the startup reasons #339

Description

@blooop

Question

Type ColdRefused as decided in "Make api::Launch self-sufficient and type ColdRefused": replace reason: String (flows/launch.rs:1880-1884) with a sum over the startup reasons — NoHomeDirectory / Config(ConfigError) / Metadata(MetadataError) (payloads already core types, mirroring dl's private StartupError at dl/src/session.rs:35-39) — plus a no-cold-path arm replacing NoColdPath's English literal (flows/launch.rs:1911-1916). dl's renderer takes over the words (render.rs:2034-2046 currently clones the string; render::startup_reason becomes the match on the typed arms). Consult constructive-modeling; follow the NotRefreshed precedent (repo_manager.rs:336-359). Red-first: a test pinning that a metadata-refused cold open surfaces as the typed arm, not prose.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions