Support changing port and base path of dev chat UI
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- typescript
研究方向
從 agentcore dev 入口開始,追蹤 --port 如何啟動 agent server 和開發聊天 Web UI。檢查 UI 對 /index.js、/api/status 以及 Host、Origin 和 X-Agentcore-Local header 的處理。完成標準是 UI 支援可設定的 port、base path 和選用的 header 檢查,且相關行為由 repository 的相關測試涵蓋。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- TypeScript
- 星號
- 339
- 分支
- 129
- 平均合併
- 19 小時 21 分鐘
- 30 天內合併 PR
- 125
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aws/agentcore-cli 的其他 Issue
-
logs/traces: `--since 5` (missing unit) silently searches from 2001可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 88/100
aws/agentcore-cli#2940 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
aws/agentcore-cli#2939 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
aws/agentcore-cli#2938 ·
維護者通常 1 天內回覆
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")可能已有人在做 @n1dhruv 於 6 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 82/100
aws/agentcore-cli#2875 · 1 則留言 ·
維護者通常 1 天內回覆
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminal可能已有人在做 @abhiramshaji-cyber 於 4 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
aws/agentcore-cli#2874 ·
維護者通常 1 天內回覆
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 75/100
-
review-followup
難度 2/5 1-3 小時 新手友好度 68/100
griffinwork40/agent-afk#5387 ·
維護者通常 1 天內回覆
-
bug needs-triage
難度 2/5 1-3 小時 新手友好度 78/100
CodeManufactoryLLC/Code60#358 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
android:plan ios:plan main:plan packages:learn
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆