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
-
难度 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 于 3 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
aws/agentcore-cli#2874 ·
维护者通常 1 天内回复
查看 aws/agentcore-cli 的全部 Issue
相似的 Issue
-
enhancement status:needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
dongdongbh/Mindwtr#1625 ·
维护者通常 1 天内回复
-
area/ui-schema good first issue type/bug
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
-
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
duckdb/duckdb-wasm#2335 ·
维护者通常 1 天内回复