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

オープン 初心者向け
#30,218 コメント 0 件 リアクション 0 件 担当者 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 を介してどのように伝播するかを調べます。authenticate が JSON-RPC エラーメッセージを返すローカルコマンド ACP プロバイダーを使い、Settings → Providers から再現します。サインイン失敗とサインイン後の検証エラーの両方に、一般的な詳細とともにエージェントのメッセージが表示されれば完了です。

索引モデルが 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分
マージ済み PR(30日)
123

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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