Skip to content

fix: obfuscate client tool descriptions - #179

Closed
Fan1K413 wants to merge 2 commits into
jasonxu114514:mainfrom
Fan1K413:main
Closed

Fan1K413 wants to merge 2 commits into
jasonxu114514:mainfrom
Fan1K413:main

Conversation

@Fan1K413

Copy link
Copy Markdown

Problem

Some requests containing client tool definitions receive a 429 FreeUsageLimitError, while simpler requests succeed. This may be caused by keyword detection similar to Antigravity's.

Related issue: #178

Changes

  • Insert zero-width characters into client tool and parameter descriptions across Chat, Responses, Anthropic, and converted legacy functions definitions. Text within quotes and Markdown backticks is preserved.
  • Fix converted legacy functions being renamed twice, allowing tool names to be restored correctly.

Validation

  • Used temporary tests to cover tool definitions across protocols, nested parameter descriptions, legacy tool name restoration, quoted text, and Markdown code blocks.
  • Verified with real DeepSeek Harness requests; they now work normally.

Known limitations

  • Descriptions without suitable spaces are left unchanged.
  • Unmarked commands or code may be treated as ordinary text.
  • The descriptions may still be detected if the upstream removes zero-width characters or normalizes the text.

@Fan1K413
Fan1K413 marked this pull request as draft November 16, 2026 11:39
jasonxu114514 added a commit that referenced this pull request Nov 16, 2026
Preserve upstream HTTP failures across transport retries, classify title requests before shaping, and rename legacy functions exactly once.

Keep adjacent Responses assistant items together, including interleaved text and calls. Add opt-in prompt environment overrides with matching shell descriptions, strict validation, and WebUI round-trip preservation.

Document compatibility boundaries and retain existing defaults. Include the requested test/ ignore rule. Offline zz_ regressions passed and were removed after validation as requested; vet and Windows/Linux builds passed.

Refs #173, #175, #176, #178, #179, #181
@jasonxu114514

Copy link
Copy Markdown
Owner

The legacy functions double-renaming bug is independently fixed on main in 14faec7: 14faec7 . Conversion now preserves the client name until the shared shaping loop, with offline Chat/Responses v1/v2 definition, reference and reverse-restoration coverage. The same commit fixes title classification before message mutations and retains HTTP errors across transport retries. Keeping this draft open: zero-width description rewriting and WARP session reminting were not adopted, and their live causal effect remains unverified. Please rebase, remove the already-addressed rename change and separate description rewriting from identity changes; a controlled sanitized reproduction is needed before treating either as the general fix for #178/#181. Existing defaults remain unchanged.

@Fan1K413 Fan1K413 closed this Nov 22, 2026
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