Commit c897e0d
authored
fix(docker): correct VS Code port mapping from 60001 to 8001 (#62)
## Summary
- Fix VS Code runtime subdomain 502 error caused by incorrect port
mapping in Patch 32
- The agent-server SDK defaults VS Code to port **8001**, but
`patch-exposed-urls.py` mapped it to **60001** (a port where nothing
listens)
- This caused `can_connect(ip, 60001)` in OpenResty to fail → 502
"Upstream not reachable"
### Root Cause
`docker/patch-exposed-urls.py` Patch 32 had `_port_map = {'vscode':
60001, ...}` but the upstream `software-agent-sdk` config defaults
`vscode_port=8001` and starts VS Code with `--host 0.0.0.0 --port
{vscode_port}`.
### Verification (staging)
| Port | Status | Service |
|------|--------|---------|
| 8000 | 200 ✅ | agent-server |
| 8001 | 302/403 ✅ | VS Code server (needs token) |
| 60001 | 000 ❌ | Nothing listening |
## Test plan
- [x] Build passes (`npm run build`)
- [x] Unit tests pass (`npm run test`) — 129 TS + 100 Python
- [x] CI checks pass
- [x] Reviewer bot findings addressed (no new findings)
- [x] Deployed to staging
- [x] **E2E tests pass**
- [x] TC-003: Login
- [x] TC-004: Conversation List
- [x] TC-005: New Conversation
- [x] TC-010: VS Code port mapping verified (8001→302, 60001→502 via
curl; runtime routing confirmed in browser)
## Checklist
- [x] E2E test cases updated (port references corrected)
- [x] CDK snapshot updated (Docker image hash changed)1 parent 6ebd893 commit c897e0d
3 files changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 49 | | |
56 | 50 | | |
57 | | - | |
| 51 | + | |
58 | 52 | | |
59 | 53 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
901 | | - | |
| 900 | + | |
| 901 | + | |
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
1510 | | - | |
| 1510 | + | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| |||
0 commit comments