Skip to content

Draft: preserve incremental Claude tool arguments and default empty calls - #3

Merged
sofyan48 merged 2 commits into
mainfrom
maintenance/upstream-20261202
Dec 3, 2026
Merged

sofyan48 merged 2 commits into
mainfrom
maintenance/upstream-20261202

Conversation

@sofyan48

@sofyan48 sofyan48 commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Upstream maintenance — 2026-12-02

Scope and history

  • Exact fork baseline: 79953e3d92ca610a301123e1621d55949fee98e8.
  • Latest fetched upstream: 52532d8f3d082d21360a192c6d76c8783847de97.
  • Newly inspected upstream range: dbe641f286a489ecb39e3c041c554371e6add864..52532d8f3d082d21360a192c6d76c8783847de97 (50 commits).
  • Semantic adaptation only of 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.
  • Disk checked before builds: 3.7 GiB available; no ENOSPC encountered.

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

  • Original clean main merge-mode pull PASS; local main fd3be527418e509bb8df9ccb208f5e44fb8f94ac contains fetched origin/main 79953e3d92ca610a301123e1621d55949fee98e8. Existing maintenance branch normal merge of current origin/main: already up to date. No local-main push.
  • Newly inspected upstream range 52532d8f3d082d21360a192c6d76c8783847de97..1c0d1cd5fea1cb2aeda5a06358bf74ae9277a3cd (22 commits). NOT full coverage. Add regression for b5978ab210b63e7b2a45c9fb848456230efb398b: 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.
  • Exact baseline with the identical focused usage fixture: PASS, one test. Temporary fixture inclusion removed afterward; baseline clean. Independent integration all-target run includes that same focused test: PASS.
  • Important validation correction: a first integration invocation reused baseline Cargo target artifacts (output identified baseline test module). Discard that integration result. Rebuilt with independent target directory and identical toolchain/profile: cargo test --locked --all-targets baseline 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.
  • No production implementation conflict/replacement. Preserve Home-owned scheduling/auth, RESP/mTLS, durable billing/accounting, plugin restrictions and branding. Home schema 31 → 31, upstream Home 21; no migration change/bump.
  • Kimi route EOF and Antigravity hub/session/signature ports remain unverified; Devin/AI Studio changes do not enable intentionally unsupported workers. See docs/maintenance-2026-12-03.md.
  • Home exact origin/main compile PASS; isolated focused SQLite migration/snapshot tests PASS. UI exact origin/main 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.

@sofyan48
sofyan48 marked this pull request as ready for review December 3, 2026 12:11
@sofyan48
sofyan48 merged commit 0b73da3 into main Dec 3, 2026
5 of 7 checks passed
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.

1 participant