Skip to content

[fix] Address CodeRabbit review for milestone 3 - #6580

Merged
mmabrouk merged 8 commits into
feat/session-approvals-queuefrom
fix/session-approvals-queue-coderabbit
Sep 5, 2026
Merged

[fix] Address CodeRabbit review for milestone 3#6580
mmabrouk merged 8 commits into
feat/session-approvals-queuefrom
fix/session-approvals-queue-coderabbit

Conversation

@mmabrouk

@mmabrouk mmabrouk commented Sep 5, 2026

Copy link
Copy Markdown
Member

Context

CodeRabbit identified correctness and reliability gaps in the milestone 3 session-control branch, plus two strict TypeScript test-fixture failures.

Changes

  • Propagate resumed continuation ownership, reject lost steer bindings, and preserve concurrent heartbeat fences.
  • Validate open-wire durable events and prevent Redis lease-release failures from masking committed heartbeats.
  • Repair strict test inputs, back off long-lived approval polling, and accept live-preview attaches mid-execution.

Tests

  • Core and tracing Alembic legacy and OSS upgrade chains
  • API sessions: 864 passed
  • @agenta/chat: 819 passed; focused live-preview: 23 passed; types:check; lint
  • @agenta/oss: 485 passed, 1 skipped; focused hydration: 12 passed; types:check; lint
  • @agenta/entities: 1,556 passed
  • @agenta/mobile: 164 passed
  • Ruff 0.15.12 format and check

https://claude.ai/code/session_0164kzD6YzYk

Return the execution that owns Send so queued and steered inputs lock and target the resumed continuation instead of the stale stream turn.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Validate mapped interaction, message, and tool events at the open-wire boundary so malformed optional strings cannot poison a committed records batch.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Return no command when the guarded bind loses its open-state race, and reject the cancel admission instead of pretending the pending input was attached.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Treat a failed Redis guard release as a bounded lease delay so it cannot replace the heartbeat result already committed to Postgres.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Require the selected stream timestamp to remain unchanged even when the sweep settled that turn as lost, so a concurrent runner heartbeat wins the collapse race.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Supply the required hydration reset callback and live-event cursor and event handler so the regression tests remain valid under strict TypeScript.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Retain the fast first interaction refresh, then exponentially back off to a sixty-second ceiling while a gate remains open.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
Treat the first observed frame as the connection baseline and enforce contiguous frame indexes only after that baseline exists.

Claude-Session: https://claude.ai/code/session_0164kzT6ttwpBtzvcDC6YzYk
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
agenta-documentation Ready Ready Preview Sep 5, 2026 3:09pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

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

🗂️ Base branches to auto review (1)
  • release/.*

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: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Team

Run ID: 7fe48a34-a4af-4b2b-8b2a-c90dc8203ccd

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

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.

@mmabrouk mmabrouk left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent-generated, low weight.

SHIP

Reviewed the eight commits against the milestone 3 behavior contracts. The fixes preserve queue ordering and flag-off behavior, close the continuation, steer-binding, and heartbeat races, validate durable event ingestion, and add focused regression coverage. The required API and frontend gates pass.

@mmabrouk mmabrouk added the lgtm This PR has been approved by a maintainer label Sep 5, 2026
@mmabrouk
mmabrouk merged commit 04dba03 into feat/session-approvals-queue Sep 5, 2026
41 checks passed
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-pr-6580.up.railway.app/w
Project agenta-oss-clone-spike
Image tag pr-6580-a1a98c9
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-09-05T15:20:13.199Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant