[Bug]: /quick ai error messages are not role-aware and lack actionable guidance

オープン
#68 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #69 @sezallagwal による — マージされずにクローズ

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
backend

調査の方向性

まず、API キーも URL も指定せず、空のルームも含めて /quick ai を再現し、その後 AI モーダル、アプリ設定、/quick config のエントリポイントを調べます。完了条件は、ロール固有の実行可能なエラー、空のルームに対する通知、および選択したプロバイダーが使用するフィールドにのみ必須マーカーが表示されることです。

索引モデルが issue の本文から書いたものです。

説明

bug

Description

When /quick ai is used without a configured API key or URL, the error messages shown in the AI modal are not helpful:

  • Admins see "Please contact your administrator" even though they ARE the admin
  • Personal mode users see "Please check your configuration" with no direction on where to fix it
  • All error messages are the same regardless of the user's role
  • Running /quick ai in an empty room silently does nothing
  • App settings mark all fields as required even though only the selected provider's fields need to be filled

Expected behavior

  • Admins should see "Please add the required API key or URL in the app settings"
  • Regular workspace users should see "The required API key or URL is missing. Please contact your administrator"
  • Personal mode users should see "Please set up your API key or URL using /quick config"
  • Running /quick ai in an empty room should show a notification
  • App settings should not show required markers on optional fields
Steps to reproduce
  1. Install the Quick Replies app
  2. Do not configure any AI API key
  3. Run /quick ai, type a prompt, click Generate
  4. Observe: admin sees "contact your administrator" error
  5. Also try in an empty channel — nothing happens
Version

Version 8.1.1

What browsers are you seeing the problem on?

Chrome

主要言語
TypeScript
スター
7
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/Apps.QuickReplies のほかの issue

RocketChat/Apps.QuickReplies の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。