[Bug]: API-created workspace initial prompt replies "Not logged in · Please run /login"
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- macos
- 領域
- api, authentication
調査の方向性
まずローカルの POST /api/repos/{repositoryId}/worktrees フローを再現し、デスクトップアプリが認証済みの状態で、次にローカル websocket 経由で agent.prompt を送信します。手動で作成した workspace と API で作成した workspace の認証と初期化を比較します。API で作成した workspace が /login や retry のタイミングに関する問題なしに、初期 prompt を確実に受け付ければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Platform
macOS
Operating system version
macOS 26.5.2 build 25F84
System architecture
ARM64 (M1, M2, etc)
PolyScope Version
0.26.0
Bug description
When creating a workspace through the local Polyscope REST API and then sending the initial prompt over the local Polyscope websocket, the prompt sometimes fails with:
Not logged in · Please run /login
The workspace itself is created successfully, but the initial agent prompt is rejected as unauthenticated.
This happens even though Polyscope is open and authenticated for normal/manual workspace usage.
Request Flow
Workspace creation:
POST http://127.0.0.1:4321/api/repos/{repositoryId}/worktrees
Accept: application/json
Content-Type: application/json
Payload:
{
"branch": "dev/example-task",
"name": "dev/example-task"
}
The prompt is then sent over the local websocket:
{
"type": "agent.prompt",
"worktreeId": "{worktreeId}",
"prompt": "{initial prompt text}"
}
Polyscope replies with:
Not logged in · Please run /login
Expected Behavior
If the Polyscope desktop app is already authenticated and manual prompting works, API-created workspaces should be able to receive the initial prompt without requiring /login.
Actual Behavior
The workspace is created, but the initial prompt fails with:
Not logged in · Please run /login
Notes
I added retries on my side because this initially looked like a transient timing issue immediately after workspace creation. The error still surfaces enough that it seems like either:
- the API/websocket-created agent session is not inheriting the app's authenticated state, or
- Polyscope is accepting the prompt before the workspace agent/auth state is fully initialized.
This is separate from the cloud API. Workspace creation and prompting are both going through the local Polyscope desktop API/server.
Steps to reproduce
No response
Relevant log output
- 主要言語
- 言語のデータがありません
- スター
- 20
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
beyondcode/polyscope-community のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
beyondcode/polyscope-community#198 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
beyondcode/polyscope-community#189 · コメント 1 件 · リアクション 2 件 ·
beyondcode/polyscope-community の issue をすべて見る
似ている issue
-
Area: Excel support
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
orbeon/orbeon-forms#7893 ·
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/python-sdk#3566 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
griptape-ai/griptape#2353 ·