fix(sessions): Enable shared session delivery by default - #6588
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🤖 The AI agent says: The three defaults are enabled, explicit false overrides remain supported, and focused API/runner tests and checks passed. The follow-up is ready for review; it has not been merged. @coderabbitai review |
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 SummarySummary by CodeRabbit
WalkthroughThe change enables session coordination features and runner live-frame publishing by default. Environment variables still allow explicit disabling. Docker Compose, Helm, and environment examples now document the enabled-by-default behavior. ChangesSession feature defaults
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: 🔵 Low · up to This change enables shared session delivery, sequenced writes, and runner live frames by default while retaining false overrides. The runtime behavior is covered for default and explicit values, but the session-default regression test can miss swapped configuration inputs, leaving a bounded configuration-correctness risk before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 60.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 5 files. (13 skipped: 13 unsupported.) ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Team
Run ID: e60b468d-6b77-4201-9d02-5d48758e71b6
📒 Files selected for processing (18)
api/oss/src/utils/env.pyapi/oss/tests/pytest/unit/utils/test_env_runner_config.pyhosting/docker-compose/ee/docker-compose.dev.ymlhosting/docker-compose/ee/docker-compose.gh.local.ymlhosting/docker-compose/ee/docker-compose.gh.ymlhosting/docker-compose/ee/env.ee.dev.examplehosting/docker-compose/ee/env.ee.gh.examplehosting/docker-compose/oss/docker-compose.dev.ymlhosting/docker-compose/oss/docker-compose.gh.local.ymlhosting/docker-compose/oss/docker-compose.gh.ssl.ymlhosting/docker-compose/oss/docker-compose.gh.ymlhosting/docker-compose/oss/env.oss.dev.examplehosting/docker-compose/oss/env.oss.gh.examplehosting/kubernetes/helm/values.schema.jsonhosting/kubernetes/helm/values.yamlservices/runner/src/sessions/live-frames.tsservices/runner/tests/unit/live-frames.test.tsservices/runner/tests/unit/session-persist.test.ts
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.
| @pytest.mark.parametrize( | ||
| "configured, expected", [(None, True), ("", True), ("true", True), ("false", False)] |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Cover independent overrides in the regression test.
The test assigns the same value to AGENTA_SESSIONS_SHARED_READER and AGENTA_SESSIONS_SEQUENCE_WRITES for every case. A regression that reads the wrong variable can therefore pass all assertions. Add mixed cases such as shared_reader=false, sequence_writes=true and the reverse, then assert both fields independently.
|
|
Railway Preview Environment
|
|
🤖 The AI agent says: Closing this unmerged default-on change at Mahmoud's request. Release v0.115.1 retains false defaults for the shared reader, sequence writes, and runner live frames. Production EU and US secret values have also been set to false for the user's redeployment. The reader lifecycle and transcript fixes will target v0.115.2. |
Context
A deployment without session feature overrides still used the older delivery path, even after upgrading to v0.115.1. The shared session reader, durable record sequencing and runner live frames were disabled by default.
Changes
Default
AGENTA_SESSIONS_SHARED_READER,AGENTA_SESSIONS_SEQUENCE_WRITESandAGENTA_RUNNER_LIVE_FRAMEStotrue. Explicitfalsestill disables each feature. Align Docker Compose runner fallbacks and the environment/Helm examples with those defaults.How to review
Start with the two API configuration defaults and the runner flag parser, then check the Compose fallbacks. The tests cover unset, empty and explicit values; the persistence test now distinguishes the live batch from durable records.
Tests
Apply the release's existing database migrations before starting the new API. This PR adds no migration or runtime behavior beyond the three defaults.