Repository navigation
Draft: preserve incremental Claude tool arguments and default empty calls - #3
Merged
Merged
Conversation
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.
Upstream maintenance — 2026-12-02
Scope and history
79953e3d92ca610a301123e1621d55949fee98e8.52532d8f3d082d21360a192c6d76c8783847de97.dbe641f286a489ecb39e3c041c554371e6add864..52532d8f3d082d21360a192c6d76c8783847de97(50 commits).6101a906d3d0c7b222ddb283f058950607e81bd7: incremental Claude tool arguments and empty-object fallback. Independent Rust and Go histories cannot be merged literally; patch IDs do not establish semantic coverage. This is NOT a complete upstream sync.Combination and retained features
The fork already forwards tool argument fragments immediately. Retain that implementation and empty opening argument delta, suppress empty fragments, and emit
{}once at tool-block stop only if no nonempty argument fragment was emitted. Track argument presence by Claude block index independently of OpenAI tool indices. Regression coverage includes sparse block indices, two tool calls, byte-fragmented SSE, empty and split arguments, repeated stops, terminal framing.No textual merge conflict. Upstream semantics are adapted into the existing Rust translator rather than replacing it with Go. Preserve bounded SSE parsing, reasoning/usage translation, Home-owned scheduling/authentication, RESP/mTLS, durable accounting, branding, and plugin restrictions. No Home/UI payload or database schema change. Home database remains version 31; no migration added.
Verification
Same toolchain/environment, independent existing Cargo target caches:
cargo test --locked --lib claude_tool_arguments_stream_immediately_and_default_only_when_empty: identical new fixture on exact baseline FAIL (missing{}fallback), integration PASS. Temporary fixture removed from detached baseline after comparison.cargo test --locked --all-targets: baseline 528 pass / 0 fail / 1 ignored; integration 529 pass / 0 fail / 1 ignored.cargo fmt --all --check: PASS.bash -n install.sh scripts/test-install.sh && bash scripts/test-install.sh: PASS (synthetic installer checks, not production deployment).cargo clippy --locked --all-targets -- -D warnings: baseline and integration both FAIL, exit 101, identical six diagnostics in unchanged codex_catalog, classifier, gateway and test code. Logs differ only in worktree path. This PR must remain DRAFT pending required lint gate resolution.No deployment, restart, production DB access, force push, or main push. Docker/release/live-provider qualification not run. Broader upstream changes (Copilot Decisions, affinity routing, Claude cloaking, Antigravity replay/TTL) are NOT claimed implemented; they need contract-aware Rust ports, not replacement of Home-owned architecture.
Daily follow-up — 2026-12-03 WIB
fd3be527418e509bb8df9ccb208f5e44fb8f94accontains fetched origin/main79953e3d92ca610a301123e1621d55949fee98e8. Existing maintenance branch normal merge of current origin/main: already up to date. No local-main push.52532d8f3d082d21360a192c6d76c8783847de97..1c0d1cd5fea1cb2aeda5a06358bf74ae9277a3cd(22 commits). NOT full coverage. Add regression forb5978ab210b63e7b2a45c9fb848456230efb398b: Rust already requires finish reason/DONE and does not terminate on mid-stream usage. Preserve incremental usage behavior. Byte-fragmented fixture covers subsequent tools, truncation, trailing cache counts, exactly one stop.cargo test --locked --all-targetsbaseline 528 pass / 0 fail / 1 ignored, integration 530 pass / 0 fail / 1 ignored, including prior empty-argument and new usage fixtures.CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 CARGO_INCREMENTAL=0 CARGO_BUILD_JOBS=2, Rust/Cargo 1.100.0.cargo fmt --all --check: PASS.cargo clippy --locked --all-targets -- -D warnings: both FAIL exit 101 at identical six unchanged source locations (codex_catalog, ws_recovery twice, websocket, codex_multiagent_tests, gateway_client_tests). GitHub previous Rust CI failure independently confirms those diagnostics; Windows checks succeeded. Required gate still blocks readiness; remain DRAFT.docs/maintenance-2026-12-03.md.bun run test: 1632 pass / 0 fail. No production build, release/container/live-provider qualification, deployment, restart, production DB access, force push or auto-merge. Disk before builds 3.7 GiB, after independent validation about 1.9 GiB; no ENOSPC.