Skip to content

chore: remove unused tool-loop and parse_chat_chunk helpers from Responses streaming - #1703

Open
detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-unused-tool-loop-and-parse-chat-chunk-76fea2
Open

detail-app[bot] wants to merge 1 commit into
mainfrom
detail/dead-code/chore-remove-unused-tool-loop-and-parse-chat-chunk-76fea2

Conversation

@detail-app

@detail-app detail-app Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Removes StreamingState::extract_tool_calls, StreamingState::prepare_next_iteration,
the standalone parse_chat_chunk parser, and the create_tool_call_chunk test
helper plus their unit tests from dwctl/src/inference/translation/responses/streaming.rs.

These were leftovers of the server-side multi-step tool-loop feature retired in #1518
("feat!: remove tool injection, tool_sources, and the onwards Responses adapter").
The dwctl Responses translator is single-pass via ResponsesStreamReframer, which
only ever calls StreamingState::new, process_chunk, finalize, and
StreamingEvent::to_sse. After #1518 dropped the only production call-sites (in the
onwards Responses adapter), these symbols had no production callers; only their own
in-file #[cfg(test)] tests referenced them.


Dead Code PRs can be configured here.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Deploying control-layer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5a0c86f
Status: ✅  Deploy successful!
Preview URL: https://a24faae3.control-layer.pages.dev
Branch Preview URL: https://detail-dead-code-chore-remov-bdel.control-layer.pages.dev

View logs

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.

0 participants