-
Notifications
You must be signed in to change notification settings - Fork 3
plat 475
github-actions[bot] edited this page Oct 4, 2026
·
1 revision
| Coordination | Value |
|---|---|
| State | fixed on main; takes effect the next time the app is launched with run_agentworks
|
| Date | 2026-10-04 |
| Owner | integrations |
| Related | PLAT-474 (consent screen name) |
The owner connected the Upwork MCP server from an agent chat. After approving, the
browser went to http://localhost:5173/api/oauth/callback?code=... and said
"localhost refused to connect". The sign-in itself had worked once the owner pasted the
URL back to the chat (the server exchanged the code and saved the token).
A sign-in an agent starts has no request to take its address from, so the callback comes
from PUBLIC_URL. agent_go/.env (local, git-ignored) had
PUBLIC_URL=http://localhost:5173, Vite's default port; the app runs on 51733.
Sign-ins started from the UI derive the address from the page and were not affected.
-
agent_go/run_server_with_logging.sh(whatrun_agentworksruns): when it starts the frontend andPUBLIC_URLis not already exported, it exportsPUBLIC_URL=http://localhost:<frontend port>. The server's.envloader never overrides an exported variable, so this wins over the stale file value. APUBLIC_URLexported in the shell (a deployment) is untouched. It prints the callback address at start-up.
- Providers that check the callback exactly (Upwork, Google) need
http://localhost:<port>/api/oauth/callbackregistered in their app settings; the Upwork app was registered withlocalhost:5173. Until that is added, Upwork refuses the new address. The.envline can be deleted. - Not tried with a fresh launch.
Auto-synced from docs/ on main. Edit there, not here.