Skip to content

fix(dsh-weknora): retry concurrent public-mode refusals - #5579

Open
Ymmcc wants to merge 1 commit into
Tencent:mainfrom
Ymmcc:fix/dsh-concurrent-resource-fallback
Open

Ymmcc wants to merge 1 commit into
Tencent:mainfrom
Ymmcc:fix/dsh-concurrent-resource-fallback

Conversation

@Ymmcc

@Ymmcc Ymmcc commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Description

Two tools can send requests in public resource URL mode together. With a knowledge-base-restricted API key, the first 403 switches the shared client to handle mode. The second 403 then sees the new client state and incorrectly skips the same fallback.

The retry decision now uses the resource mode with which each request started. A public-mode refusal can retry once in handle mode, and later calls start in handle mode.

Testing

Both response orders failed on main. The new regressions run a JSON listing request and a streamed agent chat concurrently and verify each retries with handles. The dsh-weknora package suite passed all 60 tests and its type check passed.

AI assistance: OpenAI Codex traced the race, implemented the fix and ran the regressions.

This branch has not been deployed

No deployments
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