[Bug] Handle Gemini error responses safely in /quick ai
@CodeMatrix1 がすでに取り組んでいます。
2026年3月30日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
調査の方向性
/quick aiのエントリーポイントから開始し、response.data.candidates[0].content.parts[0].text周辺のGeminiレスポンス処理を追跡します。過負荷または一時的な利用不能のレスポンスを再現し、その後、明示的なプロバイダーメッセージが表示され、予期しないレスポンスが汎用的な失敗を引き起こすのではなくログに記録されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
When /quick ai is used with Gemini and the provider returns an error payload instead of generated candidate text, the AI flow fails.
The current implementation assumes the Gemini response always contains text at:
response.data.candidates[0].content.parts[0].text
In practice, Gemini can return an error object instead of candidates, for example when the model is overloaded or temporarily unavailable. In those cases, /quick ai does not handle the response shape safely.
Expected behavior
/quick aishould safely handle Gemini responses that do not includecandidates- if Gemini returns an explicit error payload, the app should surface the provider message instead of failing
- if Gemini returns an unexpected shape without generated text, the app should log the error in gemini response.
Actual behaviour
/quick aiassumes the Gemini response always contains generated text atresponse.data.candidates[0].content.parts[0].text- when Gemini returns an error payload instead of
candidates, the AI flow fails - proper logs are not generated
- the modal falls back to a generic failure message instead of handling the provider response safely
Steps to reproduce
- Install the Quick Replies app
- Configure Gemini as the AI provider
- Trigger
/quick ai - Enter a prompt and click
Generate - Hit a Gemini error response such as overload / temporary unavailability
- Observe that the response does not contain generated candidate text
Relevant ScreenShots
Version
v8.2.1
What browsers are you seeing the problem on?
Firefox
- 主要言語
- TypeScript
- スター
- 7
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
RocketChat/Apps.QuickReplies のほかの issue
-
[Bug]: Contextual bar actions do not work and duplicate reply names are allowed during edits再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
RocketChat/Apps.QuickReplies#70 · コメント 1 件 ·
-
[Bug]: /quick ai error messages are not role-aware and lack actionable guidance再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
[Feat] One Click AI-Powered Reply Suggestions for Improved UX再び着手できるかも @moyrsd が 583 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
RocketChat/Apps.QuickReplies#59 · コメント 3 件 · 担当者 1 名 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
RocketChat/Apps.QuickReplies#55 · コメント 2 件 ·
RocketChat/Apps.QuickReplies の issue をすべて見る
似ている issue
-
Bug: Broken RTL / BiDi text rendering when mixing Persian (Farsi) with English or numbers対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 半日 初心者へのやさしさ 68/100
amosblomqvist/learnharness#758 ·
メンテナーはふだん 2 日以内に返信
-
Change Workspacesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dsh-market/dsh-market#1210 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
trustjonathan/STUDY-HUB#13 ·