Uh oh!
There was an error while loading. Please reload this page.
[codex] Expose web service host port - #277
Conversation
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (10)
📝 WalkthroughWalkthroughThis PR renames the ChangesService Rename and Environment Variable Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR renames the containerized backend service from api to web, updates internal service URLs, and exposes the web/API port from the base Compose stack for host-side tunnel access.
Changes:
- Renames Compose service references and Docker-internal URLs from
apitoweb. - Introduces
WEB_*host/port settings with deprecatedWEBHOOK_INGEST_*fallbacks. - Updates scripts, settings, docs, and tests to use the new web/API naming.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
compose.yaml | Renames api service to web, updates internal URLs, and publishes port 8090. |
compose.local.yaml | Removes the now-duplicated local web/API port override. |
.env.example | Documents new WEB_* variables and legacy fallbacks. |
packages/shared/src/five08/settings.py | Adds web_host / web_port settings with alias choices. |
apps/api/src/five08/backend/api.py | Uses renamed web settings for uvicorn startup. |
apps/worker/src/five08/jobcli.py | Updates Docker default API URL to http://web:8090. |
scripts/worktree-env.sh | Resolves preferred WEB_* ports while preserving legacy exports. |
scripts/docker-compose.sh | Exports the new Compose host port variable and avoids leaking host-run app ports. |
scripts/dev.sh | Uses WEB_PORT / WEB_HOST for host-run development. |
scripts/dev_mux.py | Launches the web service using the new env names. |
README.md | Updates service naming and environment documentation. |
apps/worker/README.md | Updates worker documentation examples for the web service. |
tests/unit/test_worktree_env.py | Updates and expands worktree env tests for new and legacy port names. |
tests/unit/test_shared_settings.py | Adds settings coverage for new and legacy env names. |
tests/unit/test_jobcli.py | Updates Docker default URL expectation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/dev_mux.py`:
- Around line 36-38: The startup argument construction in scripts/dev_mux.py
currently uses env["WEB_PORT"] which raises KeyError in legacy-only
environments; change that to fall back to WEBHOOK_INGEST_PORT like the host line
does. Update the port argument creation (the block that builds the CLI args
where env.get("WEB_HOST", env.get("WEBHOOK_INGEST_HOST", "0.0.0.0")) is used) to
use env.get("WEB_PORT", env.get("WEBHOOK_INGEST_PORT")) (or equivalent env.get
chain) instead of env["WEB_PORT"] so legacy envs without WEB_PORT do not crash.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d6a4e6b5-49db-4042-8204-64f3fa3739a1
📒 Files selected for processing (15)
.env.exampleREADME.mdapps/api/src/five08/backend/api.pyapps/worker/README.mdapps/worker/src/five08/jobcli.pycompose.local.yamlcompose.yamlpackages/shared/src/five08/settings.pyscripts/dev.shscripts/dev_mux.pyscripts/docker-compose.shscripts/worktree-env.shtests/unit/test_jobcli.pytests/unit/test_shared_settings.pytests/unit/test_worktree_env.py
💤 Files with no reviewable changes (1)
- compose.local.yaml
Uh oh!
There was an error while loading. Please reload this page.
0d3590b to
51d9597CompareUh oh!
There was an error while loading. Please reload this page.
Summary
apitoweband update internal Docker URLs tohttp://web:8090.WEB_*names while keepingWEBHOOK_INGEST_*as deprecated fallbacks.Validation
uv run pytest tests/unit/test_worktree_env.py tests/unit/test_shared_settings.py tests/unit/test_jobcli.pyuv run ruff check packages/shared/src/five08/settings.py apps/api/src/five08/backend/api.py scripts/dev_mux.py tests/unit/test_worktree_env.py tests/unit/test_shared_settings.py apps/worker/src/five08/jobcli.py tests/unit/test_jobcli.pydocker compose -f compose.yaml config --servicesdocker compose -f compose.yaml -f compose.local.yaml config --servicesgit diff --checkSummary by CodeRabbit
Documentation
Chores