Skip to content

fix(fleet): keep ureq out of the connect binary so it fits the D7 size gate - #12684

Merged
dezren39 merged 1 commit into
mainfrom
claude/fleet-connect-size
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/fleet-connect-size

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Before:

fleet-smoke has been red on main since #12326 merged. That PR made ureq (with rustls) and base64 unconditional dependencies of the fleet crate for the OpenCode session liveness probe, so the TLS HTTP client landed in the connect variant too. fleet-connect-static now builds at 2,542,136 bytes and fails the 2 MiB D7 size gate ("binary exceeds the 2 MiB connect size gate"), which fails "Build the four fleet variant outputs".

After:

The connect variant's dependency tree has no ureq, rustls or base64 again (cargo tree --no-default-features), so it is back to its pre-#12326 shape. Full and serve keep the liveness probe.

How:

  • New opencode-probe feature (dep:ureq, dep:base64), included in full and serve, left out of connect. gh enables ureq itself again, as it did before feat(fleet): persist worktree session identity #12326.
  • session_state.rs: the probe and its helpers are behind the feature. Without it, session_is_live returns false, which is the answer an unreachable OpenCode server already gives, so a recorded session is not reused on connect machines. Explicit and environment identities are unaffected.
  • Verified: clippy is clean for connect, serve and full; the session tests pass with and without default features.

Generated by Claude Code


Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…e gate

#12326 made ureq (with rustls) and base64 unconditional for the
OpenCode session liveness probe. That pulled a TLS HTTP client into
fleet-connect, and fleet-connect-static grew to 2,542,136 bytes, past
the 2 MiB D7 gate, so fleet-smoke has failed on main since.

Both are optional again behind a new opencode-probe feature, on in
full and serve and off in connect. Without it a recorded session
counts as not live, the same answer an unreachable OpenCode server
already gives. gh enables ureq itself again, as before #12326.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 22, 2026 21:08
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 21:08
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 945c1b79-4034-47f2-be8b-8b2de10d1bf1
Commits

Reviewing files that changed from the base of the PR and between 039ffe3 and f6cbe92.

Files selected for processing: 2

  • pkgs/fleet/crates/fleet/Cargo.toml
  • pkgs/fleet/crates/fleet/src/session_state.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T21:10:44.757772Z f6cbe92 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 82adcbc into main Nov 22, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/fleet-connect-size branch November 22, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants