Skip to content

fix(hosting): wire the session history flags into compose and the env examples - #5488

Merged
bekossy merged 6 commits into
feat/sessions-last-message-onlyfrom
fix/sessions-flags-wiring
Jul 27, 2026
Merged

fix(hosting): wire the session history flags into compose and the env examples#5488
bekossy merged 6 commits into
feat/sessions-last-message-onlyfrom
fix/sessions-flags-wiring

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

The problem

The runner service deliberately has no env_file, so it only receives the environment variables compose lists by name. AGENTA_SESSIONS_RECONSTRUCT and AGENTA_RECORDS_DURABLE were not listed in any of the four compose files.

The practical effect is that the feature this stack sits on could not be turned on anywhere. Not in the dev stack, not in a self-hosted deployment. The only place the flags took effect was a unit test that sets them in-process. I found this while trying to stand up a deployment to QA #5486, which could not be done until this was fixed.

The fix

List both flags on the runner service in all four compose files (EE and OSS, dev and gh), and document all four session flags together in the env examples, including the constraint that the runner flag and the web flag have to be flipped together.

Testing

Deployed an EE dev stack from this branch and confirmed both variables arrive inside the runner container. All the QA in this stack depends on it.

Base of the fix stack for #5486.

… examples

The runner service deliberately has no env_file, so AGENTA_SESSIONS_RECONSTRUCT
and AGENTA_RECORDS_DURABLE were unreachable in every edition and could not be
turned on outside a unit test. List them alongside the other runner variables and
document all four flags in the env examples.

Claude-Session: https://claude.ai/code/session_01KM69J7uHafgciiN5zfG7qR
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 24, 2026
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jul 27, 2026 3:29pm

Request Review

@dosubot dosubot Bot added devops documentation Improvements or additions to documentation labels Jul 24, 2026
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 74cd12fe-68bd-44dc-9d52-ddb6eaf887c6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/sessions-flags-wiring

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…st.ts

Three unformatted lines in this test (added upstream in fix/transcript-hygiene)
fail both the format and lint CI jobs, and that red is inherited by every PR
stacked on top, including this one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… nullability

Two build-breaking type errors left over from the storage rework's schema
change (fetchState now hits the stream endpoint, not the old session_state
one):

- StatesTab read sandbox_id/data off the stream row. Both moved: sandbox_id
  now lives on the latest session_turns row (session_states no longer
  exists), so fetch it from there instead.
- The local sessionStreamSchema required a non-null id, but the backend's
  Identifier mixin has always declared id as Optional[UUID]. That made the
  Fern-generated type unassignable where StreamsTab's deriveStreamNest call
  expected the local schema's type. Loosened to match backend reality.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-07-27T17:46:12.366Z

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 27, 2026
@bekossy
bekossy merged commit eb64b42 into feat/sessions-last-message-only Jul 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants