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

未关闭
#68 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

  • #69 来自 @sezallagwal —— 已关闭,未合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
backend

调研方向

首先,在没有 API 密钥或 URL 的情况下复现 /quick ai,包括在空房间中复现,然后检查 AI 模态框、应用设置以及 /quick config 的入口。完成标准是提供特定于角色且可采取行动的错误、针对空房间的通知,并且仅为所选 provider 使用的字段显示必需标记。

由索引模型根据 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 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RocketChat/Apps.QuickReplies 的其他 Issue

查看 RocketChat/Apps.QuickReplies 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。