Skip to content

fix: resolve affinity from authoritative invocation session - #22

Merged
rjcloudsigma merged 2 commits into
mainfrom
fix/invocation-session-id-v010
Jul 29, 2026
Merged

fix: resolve affinity from authoritative invocation session#22
rjcloudsigma merged 2 commits into
mainfrom
fix/invocation-session-id-v010

Conversation

@rjcloudsigma

Copy link
Copy Markdown
Collaborator

Summary

  • resolve TaaS affinity identity per stream invocation from OpenClaw options.sessionId
  • cover managed GPT-5.6, Kimi, and simple-completion transports
  • keep payload and response correlation invocation-local under concurrency
  • never derive conversation identity from agent or workspace scope when no authoritative session exists
  • bump plugin to v0.10.0

Why

Provider wrappers are constructed before an embedded run is bound, so wrapper context can lack the session ID even though the stream invocation carries it. Resolving identity at wrapper construction left a large GPT request population without caller session metadata.

Agent/workspace fallback was also unsafe because those scopes outlive individual conversations and could merge unrelated sessions or workers onto one sticky key.

Verification

  • npm test: 20/20 plugin tests passed
  • smoke and TypeScript checks passed
  • focused OpenClaw transport tests previously passed: 165/165 agent wrapper tests and 17/17 simple-completion tests
  • concurrent interleaving regression proves no session cross-contamination
  • git diff --check passed

@rjcloudsigma
rjcloudsigma merged commit b9c643a into main Jul 29, 2026
1 check passed
@rjcloudsigma
rjcloudsigma deleted the fix/invocation-session-id-v010 branch July 29, 2026 04:47
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