Support changing port and base path of dev chat UI
Maintainer thường phản hồi trong vòng 1 ngày
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
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu từ điểm vào agentcore dev và theo dõi cách --port khởi chạy máy chủ agent và web UI chat dành cho quá trình phát triển. Kiểm tra cách UI xử lý /index.js, /api/status và các header Host, Origin và X-Agentcore-Local. Công việc được xem là hoàn tất khi UI hỗ trợ port có thể cấu hình, base path và các kiểm tra header tùy chọn, với hành vi được bao phủ bởi các test liên quan của repository.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
My goal is to use the agentcore dev UI in a cloud IDE like VS Code Server or possibly SageMaker Studio. In these contexts:
- There are often restrictions to which ports can be used (since typically the IDE itself is running on one, and a web proxy like nginx on another), and
- Forwarded ports are typically accessed via some non-base path e.g.
https://...cloudfront.net/port/9000/
Both of these pose problems for the AgentCore CLI today:
- Currently, the
--portoption inagentcore devdoes not set the port of the web UI that's spun up... In fact in my specific environment, it didn't seem to correspond to the agent server that's started either? So it's counter-intuitive at best and maybe pointless at worst. It always seems to use8081. - The web UI also assumes it's running at the root
/with no way to configure this... So first assets (like/index.js) and later API calls (like/api/status) try to pull from the "wrong" URL when used in this environment. - The web UI also seems to check request host headers and reject any connections that don't come from 127.0.0.1/localhost - which further complicates things
I did manage to get the current app working with some creative nginx configuration - but it's pretty messy, especially number 2 that requires a broad range of sub_filters manipulating inbound requests. It'd be much better if the CLI itself could provide more direct support for running in this kind of remote IDE environment.
Acceptance Criteria
The dev chat web UI:
- Can be overridden to launch on a different port
- Can be configured with a "base path" prefix for all resource & API fetches (for e.g.
/port/9000/) - Can disable checks on
Host,Origin,X-Agentcore-Localheaders
Even better if:
- We can configure these options somewhere central they'll be transparently picked up without needing to be included in every
agentcore devcommand - or even auto-detect when running in such an environment
Additional Context
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 339
- Fork
- 129
- Merge trung bình
- 19 giờ 21 phút
- Pull request đã merge (30 ngày)
- 125
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 aws/agentcore-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
aws/agentcore-cli#2940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/agentcore-cli#2939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
aws/agentcore-cli#2938 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Có thể đã có người làm @n1dhruv đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/agentcore-cli#2875 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalCó thể đã có người làm @abhiramshaji-cyber đã nhận 3 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws/agentcore-cli#2874 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws/agentcore-cli
Issue tương tự
-
enhancement status:needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
dongdongbh/Mindwtr#1625 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
duckdb/duckdb-wasm#2335 ·
Maintainer thường phản hồi trong vòng 1 ngày