[Bug]: API-created workspace initial prompt replies "Not logged in · Please run /login"
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- macos
- Lĩnh vực
- api, authentication
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện flow cục bộ POST /api/repos/{repositoryId}/worktrees, sau đó gửi agent.prompt qua websocket cục bộ trong khi ứng dụng desktop đã được xác thực. So sánh việc xác thực và khởi tạo giữa các workspace được tạo thủ công và các workspace được tạo qua API. Được xem là hoàn tất khi một workspace được tạo qua API chấp nhận prompt ban đầu một cách ổn định mà không gặp vấn đề về /login hoặc thời điểm retry.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 20
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của beyondcode/polyscope-community
-
[Bug]: Remote branch selection uses an unresolved local branch name when creating a workspace Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
[Bug]: Large workspace causes permanent server reconnect loop when a remote client subscribes Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
beyondcode/polyscope-community#198 · 1 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
beyondcode/polyscope-community#189 · 1 bình luận · 2 reaction ·
Tất cả issue của beyondcode/polyscope-community
Issue tương tự
-
area/sessions comp/cron comp/gateway P2 sweeper:risk-message-delivery sweeper:risk-session-state type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NousResearch/hermes-agent#118863 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3312 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
needs-acceptance wg/data-plane-networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/semantic-router#4024 · 1 bình luận ·