[Bug]: ACP sign-in replaces the agent's error message with a generic one

未关闭 适合新手
#30,218 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@iScabrous 已经在做这个了。

开始于 2026年11月3日。

  • #30295 来自 @iScabrous —— 未关闭
  • #30321 来自 @Mohsintl —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
85/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

从 packages/provider-acp-registry/src/server/auth.ts 中的 failure() 和登录后的会话验证路径开始,查看固定的详细信息字符串在哪里使用,以及 AcpRequestError 如何通过 cause 传递。通过 Settings → Providers 使用一个 authenticate 返回 JSON-RPC 错误消息的本地命令 ACP 提供程序复现问题。完成标准是:登录失败和登录后的验证错误都显示代理的消息以及通用详细信息。

由索引模型根据 Issue 内容生成。

描述

bug needs-triage
Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/server

Steps to reproduce
  1. Add a local-command ACP provider whose authenticate answers with a JSON-RPC error that has a message, e.g. {"code": -32000, "message": "Connect to the VPN, then sign in again."}
  2. Open Settings → Providers, select the provider, and press Sign in.
Expected behavior

The card shows the agent's message, so the user knows what to do, e.g. "The ACP agent could not complete sign-in. Connect to the VPN, then sign in again."

Actual behavior

The card shows only "The ACP agent could not complete sign-in." The agent's message is kept on the error's cause but never shown, because failure() in packages/provider-acp-registry/src/server/auth.ts uses the fixed detail string for every failure. The post-sign-in verify step ("The provider could not create a session after sign-in.") hides it the same way.

Appending the AcpRequestError's message to the detail in failure() would fix both.

Impact

Minor bug or occasional failure

Version or commit

main @ cefb544af3

Environment

macOS 26, desktop app, a local-command ACP agent

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

None in the app; the reason only appears in the server's logs.

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
7 小时 39 分钟
30 天内合并 PR
123

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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