{"record":{"id":"18cb78f48c2716b8","repo":"github/copilot-sdk","slug":"unknown-workspacesummaryhosttype-value-value","errorCode":null,"errorMessage":"Unknown WorkspaceSummaryHostType value: ${value}","messagePattern":"Unknown WorkspaceSummaryHostType value: (.+?)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"java/sdk/src/generated/java/com/github/copilot/generated/rpc/WorkspaceSummaryHostType.java","lineNumber":33,"sourceCode":" * @since 1.0.0\n */\n@javax.annotation.processing.Generated(\"copilot-sdk-codegen\")\npublic enum WorkspaceSummaryHostType {\n    /** The {@code github} variant. */\n    GITHUB(\"github\"),\n    /** The {@code ado} variant. */\n    ADO(\"ado\");\n\n    private final String value;\n    WorkspaceSummaryHostType(String value) { this.value = value; }\n    @com.fasterxml.jackson.annotation.JsonValue\n    public String getValue() { return value; }\n    @com.fasterxml.jackson.annotation.JsonCreator\n    public static WorkspaceSummaryHostType fromValue(String value) {\n        for (WorkspaceSummaryHostType v : values()) {\n            if (v.value.equals(value)) return v;\n        }\n        throw new IllegalArgumentException(\"Unknown WorkspaceSummaryHostType value: \" + value);\n    }\n}\n","sourceCodeStart":15,"sourceCodeEnd":36,"githubUrl":"https://github.com/github/copilot-sdk/blob/cd8cf15dc3f9e762615790aaed0a771a0f392755/java/sdk/src/generated/java/com/github/copilot/generated/rpc/WorkspaceSummaryHostType.java#L15-L36","documentation":"WorkspaceSummaryHostType.fromValue is the Jackson @JsonCreator for the WorkspaceSummaryHostType enum, throwing IllegalArgumentException when no enum constant's value matches the input string. The SDK cannot deserialize a host-type string that its generated enum does not declare.","triggerScenarios":"Deserializing a workspace summary whose hostType field is a string absent from the generated WorkspaceSummaryHostType constants, or calling fromValue directly with an unknown value.","commonSituations":"A newer CLI/server reports a host type (e.g. a newly supported editor) that the older generated SDK enum lacks; hand-written strings with wrong casing.","solutions":["Upgrade the Copilot Java SDK so WorkspaceSummaryHostType includes the reported host type.","Check the unknown value in the exception message against the enum's declared constants.","Normalize casing/spelling if the value originates in your own code."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"boolean known = Stream.of(WorkspaceSummaryHostType.values()).anyMatch(v -> v.getValue().equals(raw));\nif (!known) log.warn(\"Unsupported host type: {}\", raw);","typeGuard":null,"tryCatchPattern":"try {\n  WorkspaceSummaryHostType t = WorkspaceSummaryHostType.fromValue(raw);\n} catch (IllegalArgumentException e) {\n  log.warn(\"Unknown host type '{}'\", raw);\n}","preventionTips":["Track CLI releases for new host types and update the SDK promptly.","Check the unknown value in the exception message against the enum's constants.","Guard optional summary rendering with a fallback for unknown host types."],"tags":["java","enum","deserialization","generated-code"],"backgroundTag":"invalid-enum-value","analyzedSha":"cd8cf15dc3f9e762615790aaed0a771a0f392755","analyzedAt":"2026-09-09T18:32:31.973Z","contentChangedAt":"2026-09-09T18:32:31.973Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}