{"record":{"id":"7c828f790431a3f2","repo":"larksuite/cli","slug":"install-cropped-lark-suite-failed-s","errorCode":null,"errorMessage":"install cropped lark-suite failed: %s","messagePattern":"install cropped lark-suite failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/skillscheck/layout.go","lineNumber":76,"sourceCode":"\n\tstagingRoot, err := vfs.MkdirTemp(\"\", \"lark-cli-suite-\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"create suite staging directory: %w\", err)\n\t}\n\tdefer vfs.RemoveAll(stagingRoot)\n\n\tstageResult := runner.StageSuite(source, stagingRoot)\n\tif stageResult == nil || stageResult.Err != nil {\n\t\treturn fmt.Errorf(\"suite archive install failed: %s\", resultDetail(stageResult))\n\t}\n\n\tsuitePath := filepath.Join(stagingRoot, \".agents\", \"skills\", \"lark-suite\")\n\tif err := prepareSuite(suitePath, plan.OfficialSkills, plan.ToUpdate); err != nil {\n\t\treturn err\n\t}\n\tinstallResult := runner.InstallLocalSuite(suitePath)\n\tif installResult == nil || installResult.Err != nil {\n\t\treturn fmt.Errorf(\"install cropped lark-suite failed: %s\", resultDetail(installResult))\n\t}\n\tif err := removeSkills(runner, installedSeparate); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}\n\nfunc prepareSuite(suitePath string, official, target []string) error {\n\treferencesPath := filepath.Join(suitePath, \"references\")\n\tarchived, err := listDirectSubdirs(referencesPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"inspect suite archive: %w\", err)\n\t}\n\tif err := assertSameSkillNames(archived, official, \"suite archive\"); err != nil {\n\t\treturn err\n\t}\n\n\ttargetSet := toSet(target)","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/skillscheck/layout.go#L58-L94","documentation":"After cropping the staged suite, the InstallLocalSuite call failed to install it into the agent host; %s is the runner's result detail (install target unwritable, host skill directory in a bad state).","triggerScenarios":"Thrown at internal/skillscheck/layout.go:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the agent skills directory permissions","Retry the skills sync after fixing the host-side install target"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}