Skip to content

fix(llm): apply model.compat.sendSessionAffinityHeaders at openai-tra… - #90033

Closed
obuchowski wants to merge 1 commit into
openclaw:mainfrom
obuchowski:fix/session-affinity-headers
Closed

obuchowski wants to merge 1 commit into
openclaw:mainfrom
obuchowski:fix/session-affinity-headers

Conversation

@obuchowski

@obuchowski obuchowski commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fix a regression where model.compat.sendSessionAffinityHeaders stopped being honored after the major inference “gate” moved from src/llm/providers/openai-completions.ts to src/agents/openai-transport-stream.ts.

  • Restore the existing affinity-header behavior without losing functionality already provided by src/llm/providers/anthropic.ts and src/agents/openai-completions-compat.ts.

  • Enable compat.sendSessionAffinityHeaders: true for the Fireworks model configurations in openclaw.plugin.json, because Fireworks prompt caching supports session-affinity routing for repeated session traffic.

  • Success looks like: x-session-affinity, x-client-request-id, and session_id header injection is gated on compat.sendSessionAffinityHeaders plus a resolved cache/session value, while caller-supplied headers still win through the existing provider request-policy merge.

  • Out of scope: changing provider auth, cache-retention semantics, or session-affinity behavior for providers that do not opt into compat.sendSessionAffinityHeaders.

  • Pass sessionId to all wrapEmbeddedAgentStreamFn calls in resolveEmbeddedAgentStreamFn
    The codex path already forwarded params.sessionId to wrapEmbeddedAgentStreamFn, but three other call sites omitted it:

    • providerStreamFn path — when a model has proxy/tls configured, registerProviderStreamForModel returns a transport-aware stream fn (e.g. createOpenAICompletionsTransportStreamFn) that reads options.sessionId to inject session affinity headers via buildOpenAIClientHeaders. Without sessionId in options, the transport stream never adds x-session-affinity / x-client-request-id / session_id.
    • boundary-aware path — the default path for models with a resolved API key and a supported API (e.g. all Fireworks models). Same transport stream underneath, same options.sessionId dependency.
    • promptCacheKey fallback — wraps currentStreamFn ?? streamSimple. The streamSimple path goes through openai-completions.ts which reads options.sessionId for its own session affinity header injection (gated by compat.sendSessionAffinityHeaders).

Linked context

Closes: N/A

Related:

Real behavior proof

  • Behavior or issue addressed: Tested with Fireworks Kimi K2.6, a provider/model path where session-affinity headers are used as the prompt-cache routing mechanism. Temporary proof logging was added locally to confirm that the affinity headers are applied on a real OpenClaw request. The proof logging is not part of the PR diff.

  • Real environment tested:

    • OpenClaw checkout: obuchowski@3734878
    • Provider/model: Fireworks Kimi K2.6 fireworks/accounts/fireworks/models/kimi-k2p6
    • Runtime: local gateway
    • Auth: real Fireworks API key configured locally
  • Exact steps or command run after this patch:
    terminal1:

git fetch origin fix/session-affinity-headers && \
git reset --hard origin/fix/session-affinity-headers && \
sed -i '2607i\        console.error("[fw-req] affinity=" + JSON.stringify(affinityHeadersValue) + " sessionId=" + JSON.stringify(options?.sessionId) + " sendAffinity=" + JSON.stringify(!!(affinityHeadersValue \&\& model.compat?.sendSessionAffinityHeaders)) + " Model Config=" + JSON.stringify(model));' src/agents/openai-transport-stream.ts && \
rm -rf dist && \
node scripts/tsdown-build.mjs --no-clean && \
openclaw gateway --port 18789
....

terminal2:

$ openclaw agent --agent main --model "fireworks/accounts/fireworks/models/kimi-k2p6" --message "reply exactly with OK"

Expected proof shape:
[fw-req] affinity="" sessionId="" sendAffinity=true

Evidence after fix:

22:09:09 [fw-req] affinity="9140d7bd-8527-406f-acc3-717f636f861a" sessionId="9140d7bd-8527-406f-acc3-717f636f861a" sendAffinity=true Model Config={"id":"accounts/fireworks/models/kimi-k2p6","name":"accounts/fireworks/models/kimi-k2p6","provider":"fireworks","api":"openai-completions","baseUrl":"https://api.fireworks.ai/inference/v1","reasoning":false,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":256000,"maxTokens":256000,"compat":{"sendSessionAffinityHeaders":true,"supportsDeveloperRole":false,"supportsUsageInStreaming":false,"supportsStrictMode":false},"requestTimeoutMs":120000}
22:09:14 OK

image
  • Observed result after fix:

The real Fireworks request completed successfully.
The proof log showed that OpenClaw generated the session-affinity headers for the Fireworks request when compat.sendSessionAffinityHeaders was enabled.
Caller-provided request headers remain protected by the existing request-policy merge behavior.

What was not tested:

I did not verify Fireworks billing/cache-hit accounting or provider-side cache-hit metrics.

Proof limitations or environment constraints:

This proof verifies real OpenClaw request shaping and affinity-header emission.
It does not prove measured cache-hit improvement inside Fireworks infrastructure, because that depends on provider-side cache accounting and replica behavior.

Before evidence:

Before this patch, the Fireworks model configuration did not opt into compat.sendSessionAffinityHeaders, and the moved OpenAI-compatible transport path no longer honored the compat flag for Fireworks requests.

Tests and validation

> .agents/skills/autoreview/scripts/autoreview --reviewers codex:gpt-5.5:high
autoreview target: local
branch: fireworks-session-affinity-header
reviewers: codex model=gpt-5.5 thinking=high
tools: on
web_search: on
bundle: 19235 chars
review still running: codex elapsed=60s pid=12562
review still running: codex elapsed=120s pid=12562
review still running: codex elapsed=180s pid=12562
review still running: codex elapsed=240s pid=12562
review still running: codex elapsed=300s pid=12562
autoreview clean: no accepted/actionable findings reported
overall: patch is correct (0.82)

The change is scoped to opt-in affinity headers for OpenAI-compatible completions models and adds the Fireworks catalog flags needed to exercise it. Header merging keeps caller-provided values winning, cacheRetention none suppresses generated affinity headers, and the model compat normalization path already accepts the new flag. I did not find an actionable regression in the provided bundle.
> env CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false corepack pnpm test src/agents/openai-transport-stream.test.ts
$ node scripts/test-projects.mjs src/agents/openai-transport-stream.test.ts
[test] starting test/vitest/vitest.agents.config.ts

 RUN  v4.1.7 /Users/evgeni/WebstormProjects/openclaw

 ✓  agents  src/agents/openai-transport-stream.test.ts (241 tests) 370ms

 Test Files  1 passed (1)
      Tests  241 passed (241)
   Start at  21:59:08
   Duration  3.93s (transform 2.66s, setup 271ms, import 3.15s, tests 370ms, environment 0ms)

[test] passed 1 Vitest shard in 7.77s
> pnpm exec oxfmt --check src/agents/openai-transport-stream.ts src/agents/openai-transport-stream.test.ts
Checking formatting...

All matched files use the correct format.
Finished in 46ms on 2 files using 8 threads
> pnpm lint:core -- src/agents/openai-transport-stream.ts src/agents/openai-transport-stream.test.ts
<paste output>
> git diff --check
<paste output, or note that it completed with no output>

Risk checklist

Did user-visible behavior change? (Yes/No)

No. OpenAI-compatible requests can now include session-affinity headers when the model opts into compat.sendSessionAffinityHeaders and OpenClaw has a resolved cache/session value but that's not directly visible to user, except smaller cost could be expected.

Did config, environment, or migration behavior change? (Yes/No)

No.

Did security, auth, secrets, network, or tool execution behavior change? (Yes/No)

Yes, network request headers can change for opted-in Fireworks model calls. There are no auth or secret-handling changes.

What is the highest-risk area?

OpenAI-compatible request-header shaping.

How is that risk mitigated?

The change is gated on compat.sendSessionAffinityHeaders, preserves the existing request-policy merge behavior so caller-provided headers win, and adds focused regression coverage for the OpenAI-compatible transport path.

Current review state

What is the next action?

Review the updated Fireworks affinity-header behavior and confirm that the real behavior proof is sufficient.

What is still waiting on author, maintainer, CI, or external proof?

  • CI
  • Maintainer review

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 3, 2026
@clawsweeper

clawsweeper Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 3:02 PM ET / 19:02 UTC (Revision 13).

ClawSweeper review

What this changes

The branch forwards session identity through embedded stream wrappers, adds opt-in affinity headers to the older OpenAI-compatible transport, enables them for two Fireworks catalog models, and adds header tests.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

The merged fix at #149615 restores opt-in affinity headers in the managed Chat Completions transport, but it does not enable them in the Fireworks catalog. This PR retains that distinct behavior and session forwarding for provider-selected streams. Its unchanged head also overwrites configured affinity headers, so it is not ready to merge.

Priority: P2
Reviewed head: 37348787eecf772a0349a4858a2741d072a59ede
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The real Fireworks run is useful proof, but the unchanged header-precedence defect and overlap with the current transport prevent merge readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.
Evidence reviewed 9 items Introduced overwrite: The PR copies model.headers and then assigns all three generated affinity headers into that same map before caller-header merging. An existing configured value can therefore be replaced; the added test covers per-call headers but not configured headers.
Current header policy: Current main generates affinity headers only when enabled and caching is active, and checks configured header names case-insensitively before adding defaults.
Merged transport fix: The same-repository merged PR #149615 addresses ignored affinity headers in managed Chat Completions and identifies #148957 as its closing issue. Its merge commit is on main and in v2026.9.6.
Findings 1 actionable finding [P1] Preserve configured affinity headers before generating defaults
Security None None.

How this fits together

Embedded agent runs select a model stream and pass request options to the provider transport. The transport combines session-derived and configured headers before sending a model request; the Fireworks catalog supplies model defaults.

flowchart LR
  A[Agent session] --> B[Stream selection]
  C[Fireworks model settings] --> D[Header policy]
  B --> D
  E[Configured headers] --> D
  D --> F[OpenAI compatible transport]
  F --> G[Provider request]
Loading

Decision needed

Question Recommendation
Should the Fireworks catalog enable session-affinity headers by default for the affected Kimi models, including existing installations? Keep explicit opt-in: Retain the current default and let operators enable affinity on models that need it.

Why: Current main supports explicit opt-in, while the branch changes the shipped catalog default and the submitted proof establishes header generation rather than provider-side cache benefit or upgrade behavior.

Before merge

  • Preserve configured affinity headers before generating defaults (P1) - When affinity is enabled, these assignments replace values already copied from model.headers, including explicitly configured session-affinity headers. The later caller-wins merge protects per-call headers only. This unchanged-head finding remains from the prior review; preserve configured names case-insensitively, as the current main transport does.
  • Resolve merge risk (P1) - The introduced header assignments can replace an existing configured session-affinity value before the caller-wins merge; a user relying on that routing value could be redirected after enabling the Fireworks default.
  • Resolve merge risk (P1) - Enabling affinity by default for existing Fireworks catalog models changes outbound request headers on upgrades; the current proof does not establish preservation of explicit opt-outs or the intended provider-wide default.
  • Complete next step (P2) - Preserve configured affinity headers, port the still-needed behavior to the current transport, and obtain a decision on the Fireworks default before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve configured affinity headers before generating defaults — src/agents/openai-transport-stream.ts:1790-1793
Agent review details

Security

None.

PR surface

Source +48, Tests +62. Total +110 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 52 4 +48
Tests 1 62 0 +62
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 114 4 +110

Review metrics

Metric Value Why it matters
Fireworks model defaults 2 affinity opt-ins added These catalog entries would change request headers for users of the affected models.
Code growth production +52/-4, tests +62/-0 The transport implementation overlaps a merged current-main repair; the remaining production growth needs a current-owner justification.

Merge-risk options

Maintainer options:

  1. Port the safe remainder (recommended)
    Use the current managed transport, preserve configured affinity headers, and prove explicit opt-outs and upgrade behavior before merging a catalog default.
  2. Retain explicit opt-in
    Keep Fireworks affinity operator-controlled and narrow the PR to any still-needed session-forwarding repair.

Technical review

Best possible solution:

Carry the remaining session forwarding and any approved Fireworks catalog opt-in onto the current transport, preserving configured headers case-insensitively and verifying fresh and existing configurations through real HTTP requests.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: a configured affinity header in model.headers is overwritten when this head generates one, while current main's header builder preserves it. The contributor also showed a real Fireworks request reaching the opt-in path.

Is this the best way to solve the issue?

No. Current main already has the transport repair and safer header precedence; the remaining work should be ported to that owner, with the Fireworks default decided explicitly.

Full review comments:

  • [P1] Preserve configured affinity headers before generating defaults — src/agents/openai-transport-stream.ts:1790-1793
    When affinity is enabled, these assignments replace values already copied from model.headers, including explicitly configured session-affinity headers. The later caller-wins merge protects per-call headers only. This unchanged-head finding remains from the prior review; preserve configured names case-insensitively, as the current main transport does.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b29a243dcd7f.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.

Label justifications:

  • P2: The remaining Fireworks behavior is useful but limited in scope, with a concrete compatibility blocker before merge.
  • merge-risk: 🚨 compatibility: The branch changes Fireworks catalog defaults and can replace configured affinity headers on existing setups.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. A supplied terminal screenshot and copied gateway output show an after-fix Fireworks Kimi K2.6 agent request reaching the branch's affinity condition with a session value and completing with OK. This proves the exercised request path, while configured-header precedence, provider-side cache benefit, and upgrade behavior remain separate gaps. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • SunnyShu0925: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Port the remaining behavior to the current managed transport and preserve mixed-case configured headers.
  • Verify fresh and existing Fireworks configurations, including explicit opt-outs, before proposing a default change.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (12 earlier review cycles; latest 8 shown)
  • reviewed August 8, 2026, 7:48 AM ET / 11:48 UTC sha unknown :: found issues before merge. :: [P1] Port the affinity repair to the active transport
  • reviewed August 14, 2026, 5:43 PM ET / 21:43 UTC sha unknown :: needs changes before merge. :: [P1] Port the affinity repair to the active transport
  • reviewed 2026-08-17T10:05:14.717Z sha 3734878 :: needs changes before merge. :: [P1] Port the affinity repair to the managed transport
  • reviewed 2026-08-17T19:29:50.592Z sha 3734878 :: needs changes before merge. :: [P1] Port the affinity repair to the managed transport
  • reviewed 2026-08-21T14:13:28.537Z sha 3734878 :: needs changes before merge. :: [P1] Port the affinity repair to the managed transport
  • reviewed 2026-08-27T12:16:02.149Z sha 3734878 :: needs historical verification review before merge. :: [P1] Port the affinity repair to the managed transport
  • reviewed 2026-09-05T01:19:22.698Z sha 3734878 :: blocked before merge. :: [P1] Preserve configured affinity headers before adding generated defaults
  • reviewed 2026-09-22T02:01:11.629Z sha 3734878 :: blocked before merge. :: [P1] Preserve configured affinity headers before generating defaults

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Jun 3, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jun 4, 2026
@chinarma

Copy link
Copy Markdown

in version 2026.7.1-beta.5 , not work for models.providers.*.models.0.compat

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 27, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. label Jul 30, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jul 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 8, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. labels Aug 17, 2026
@clawsweeper clawsweeper Bot added status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. P1 High-priority user-facing bug, regression, or broken workflow. labels Aug 29, 2026
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 26, 2026
@obviyus

obviyus commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks @obuchowski. This regression is already fixed on main by #149615. On b0c330d, a built Gateway sending real agent turns to a local openai-completions receiver sends session_id, x-client-request-id and x-session-affinity when compat.sendSessionAffinityHeaders: true, and omits all three when it's false. The Fireworks default change here is a separate product decision, so I'm closing this as already fixed.

@obviyus obviyus closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants