Support changing port and base path of dev chat UI
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Start at the agentcore dev entry point and trace how --port launches the agent server and dev chat web UI. Inspect the UI handling of /index.js, /api/status, and Host, Origin, and X-Agentcore-Local headers. Done means the UI supports a configurable port, base path, and optional header checks, with the behavior covered by the repository's relevant tests.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 339
- Forks
- 129
- Avg merge
- 19h 21m
- Merged PRs (30d)
- 125
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/agentcore-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws/agentcore-cli#2940 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aws/agentcore-cli#2939 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
aws/agentcore-cli#2938 ·
Maintainers usually reply within 1 day
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Possibly taken @n1dhruv claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
aws/agentcore-cli#2875 · 1 comment ·
Maintainers usually reply within 1 day
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalPossibly taken @abhiramshaji-cyber claimed this 3 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aws/agentcore-cli#2874 ·
Maintainers usually reply within 1 day
All issues in aws/agentcore-cli
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·