Repository navigation
Align WorkBuddy 5.9.3 client contract - #103
Merged
Merged
Conversation
|
Sorry @maiphucgiang, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 8 hours and 5 minutes by commenting |
Reviewer's GuideThe PR updates domestic WorkBuddy support to the 5.9.3 client contract by revising profile and identity headers, introducing stable UUIDv7 session and per-attempt tracing metadata, and adding endpoint-scoped deterministic gzip serialization with preview decoding. Existing CLI and international behavior remains profile-specific, while growth fingerprints, documentation, and request fixtures/tests are updated for the new wire contract. Sequence diagram for profile-aware WorkBuddy chat requestssequenceDiagram
participant Client
participant RequestContext
participant UpstreamIO
participant WorkBuddy
Client->>RequestContext: session_conversation_id(profile, account, session_key)
RequestContext-->>Client: UUIDv7 conversation ID for cn-work
Client->>RequestContext: build_attempt_headers(conversation_id)
RequestContext-->>Client: X-Session-ID, tracing headers, baggage, ACP ID
Client->>UpstreamIO: open_backend_stream(url, headers, body)
UpstreamIO->>UpstreamIO: _json_request_kwargs(headers, body, url)
alt cn-work chat body is at least 1024 bytes
UpstreamIO->>WorkBuddy: POST gzip JSON with per-attempt headers
else CLI or international WorkBuddy chat
UpstreamIO->>WorkBuddy: POST gzip JSON with profile headers
else uncompressed chat or non-chat endpoint
UpstreamIO->>WorkBuddy: POST JSON with original transport
end
WorkBuddy-->>Client: Streaming chat response
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
uv run python -B -m pytest -q tests/— 2371 passed, 2 skipped, 5323 subtests passed.Summary by Sourcery
Align domestic WorkBuddy integration with the verified 5.9.3 client contract while preserving existing profile-specific behavior.
Bug Fixes:
Enhancements:
Documentation:
Tests: