@rh-support/troubleshoot 2.6.149 → 2.6.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,7 +171,7 @@ export const AskRedHat = ({ onChatWithAIClick }) => {
171
171
  : (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.answer) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.content);
172
172
  const sources = React.useMemo(() => (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.sources) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.references) || [], [aiResponse]);
173
173
  const sourcesCount = sources.length || 0;
174
- // Show loading only when streaming has started but no content received
174
+ // Show loading only when streaming has started but no content received yet
175
175
  const isLoading = aiResponseState.isStreaming && aiResponseState.accumulatedResponse === '';
176
176
  const isStreaming = aiResponseState.isStreaming;
177
177
  const { parseMarkdown } = useParseRuleMarkdown();
@@ -212,7 +212,7 @@ function TroubleshootSection(props) {
212
212
  throw error;
213
213
  }
214
214
  });
215
- const detailedQuestion = generateAIQuestion(activeSection || '', caseDetails.product, caseDetails.version, caseDetails.summary, caseDetails.issue, caseDetails.caseType || '', i18next.language || 'en');
215
+ const detailedQuestion = generateAIQuestion(isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT, caseDetails.product, caseDetails.version, caseDetails.summary, caseDetails.issue, caseDetails.caseType || '', i18next.language || 'en');
216
216
  const latestUserMessage = isVariationA && ((_e = aiResponseState.aiResponse) === null || _e === void 0 ? void 0 : _e.conversationId) && props.haveARHFieldsChanged
217
217
  ? detailedQuestion
218
218
  : '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.149",
3
+ "version": "2.6.151",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -133,5 +133,5 @@
133
133
  "defaults and supports es6-module",
134
134
  "maintained node versions"
135
135
  ],
136
- "gitHead": "b91e62bc261ac74067ea90d48b1870b7934ad79b"
136
+ "gitHead": "3b1b2bb76012ea9d98588a33fcecb3de80e756a8"
137
137
  }