Skip to content

dynamo on gdl: follow-along for the gdl/port branch (do not merge) - #3

Draft
ryanolson wants to merge 250 commits into
mainfrom
gdl/port
Draft

ryanolson wants to merge 250 commits into
mainfrom
gdl/port

Conversation

@ryanolson

Copy link
Copy Markdown
Owner

Follow-along PR for the dynamo-on-gdl port. Do not merge: gdl/port stays a long-lived branch, and its work lands there one reviewed branch at a time. main here is ai-dynamo/dynamo 7c195fd1a7, the commit gdl/port was cut from, so this diff shows only the port.

What the port does

It runs dynamo's local pipelines on gdl in two phases.

  • Add first. gdl's traits go in beside dynamo's, with no change in behavior.
  • Then subtract. runtime::pipeline's local machinery (Operator, link, and the per-stage response map) is retired in favor of gdl local pipelines.

dynamo keeps its AsyncEngine boundary, network planes, discovery, config, metrics, health and shutdown. gdl comes in only as the gdl crate, pinned by revision on ryanolson/gdl. Neither gdl-runtime nor velo from git is used.

What is in so far (merge commits on gdl/port)

  • Phase 0:

    • Rust 1.99.0, including the container pins.
    • The gdl pin.
    • lib/gdl-adapters, with a dependency guard.
  • Adapters: CxBridge, EngineSink, PipelineEngine and DynOperatorStage, between dynamo's engines and operators and gdl's local pipeline traits.

  • Metrics bridge and config pattern: a gdl node's metrics are served on a dynamo endpoint, with dynamo's prefix and identity labels.

  • Ingress calls its engine directly, with no per-request id map. A worker request drops from 67 to 55 allocations.

  • Allocation guards for the four frontend pipelines, the baseline Phase 2 must not exceed:

    Pipeline Allocations per request, 1 item
    A 349
    B 402
    C 71
    Embeddings 199
  • Controller keeps a kill once it has one, and publishes a stop or kill before it tells its children. This one is gdl-free and meant for upstream.

  • First slice: the routed chat pipeline composed on gdl behind DYN_LOCAL_PIPELINE=gdl, with dynamo's default unchanged.

    • Pipeline B costs 455 allocations against 402 today. The +53 is the temporary adapters, which Phase 2 replaces with native operators.

Next

  • Pipelines A, C and embeddings on gdl.
  • Then Phase 2: native gdl operators.
  • The default switches to gdl only when counts are at or below the baseline.

Tracking: STRGT-707 (the plan) and STRGT-714 to STRGT-728.

async-trait 0.1.89 marks each generated method #[must_use]. The method
returns a boxed future, which is already must_use, so clippy 1.99
reports double_must_use at every #[async_trait] trait method: 56 sites
in the workspace. 0.1.92 no longer adds the attribute.

Update the three locks that CI lints: the workspace,
lib/bindings/python and lib/runtime/examples.

Signed-off-by: Ryan Olson <[email protected]>
Pin 1.99.0 in rust-toolchain.toml and lib/runtime/examples, and fix
what the new compiler and clippy report, each in the smallest way:

- AtomicU*::fetch_update is deprecated as a rename of try_update, with
  the same signature: rename the 14 calls.
- result_large_err now covers async fns: allow it on the 19 flagged
  functions, as the crate already does elsewhere, and on the two
  generated KServe gRPC modules.
- manual_chunks (chunks_exact with a constant size): use as_chunks,
  which drops the remainder the same way.
- Unused imports that 1.99 now finds: 2 in the workspace, 3 in the
  Python bindings.
- needless_late_init, for_kv_map, needless_borrows_for_generic_args,
  needless_return_with_question_mark, and a float literal that 1.99
  types as f32 only by fallback.

Signed-off-by: Ryan Olson <[email protected]>
Pin the gdl crate from the ryanolson/gdl mirror at a fixed rev. The
gdl crate holds gdl's node traits and links no velo. gdl's runtime
takes velo from git, and the workspace takes velo from crates.io, so
the runtime stays out.

Signed-off-by: Ryan Olson <[email protected]>
A new workspace crate, not published, that will hold the bridge
between Dynamo's AsyncEngine and Operator and gdl's local pipeline
traits. For now it depends on the gdl crate only.

tests/dependencies.rs runs cargo tree on the crate, over normal and
build edges on every target, and fails if gdl-runtime, gdl-gen, or
velo or a velo-* crate from git enters the build. velo from crates.io
is allowed. A second test checks the line classifier on sample lines,
and the first test also requires gdl in the tree, so an empty tree
cannot pass.

Cargo.lock gains the crate and 11 packages from gdl; no locked version
changes.

Signed-off-by: Ryan Olson <[email protected]>
The dependency guard missed a forbidden crate behind an optional
dependency, because cargo tree selects default features: check with
--all-features.

It also failed on a valid tree when the cargo cache came from a host
build, because --target all needs packages that only other targets use
and --offline forbade fetching them: drop --offline. --locked still
holds the versions.

Signed-off-by: Ryan Olson <[email protected]>
The guard's cargo tree call moves to a function shared with a new test.
The test runs it on a fixture workspace whose only path to a package
named gdl-runtime is an optional dependency that no default feature
enables. Without --all-features the test fails, so the guard cannot
quietly lose the flag. The fixture is path-only and runs offline.

Signed-off-by: Ryan Olson <[email protected]>
The repo now pins Rust 1.99.0.

Signed-off-by: Ryan Olson <[email protected]>
Phase 0 of the dynamo-on-gdl port: Rust 1.99.0 with its lint fixes,
gdl pinned at the ryanolson/gdl mirror, and the dynamo-gdl-adapters
crate with its dependency guard.

Signed-off-by: Ryan Olson <[email protected]>
The workspace toolchain is 1.99.0. Move the remaining 1.96.1 pins to
match, so an image does not install one toolchain and then fetch the
other on its first cargo run:

- container/templates/dynamo_base.Dockerfile and lib/sidecar/Dockerfile
  (RUST_VERSION for rustup-init)
- the inference-gateway ext-proc Dockerfile and Makefile (RUST_IMAGE)
- the two custom-backend docs pages that show the pin

AGENTS.md keeps its build times, which were measured on 1.96.1, and
kvbm-engine's AGENTS.md keeps its minimum rustc.

Signed-off-by: Ryan Olson <[email protected]>
Pin Rust 1.99.0 in the container builds and the backend docs, to match
rust-toolchain.toml.

Signed-off-by: Ryan Olson <[email protected]>
…e-id refusal

Add two integration tests that drive Ingress::for_engine through
handle_payload with a TCP response peer.

ingress_allocations counts heap allocations on the worker thread for
one request, including the response-stream tasks it spawns. Today:
67 allocations for a one-item stream and 127 for 16 items. The test
fails if either count rises.

ingress_duplicates pins how the worker treats a repeated request id.
A second request is refused with DuplicateRequestId while the first is
inside the engine call. It is served once the engine has returned its
stream. A dropped request frees its id.

Signed-off-by: Ryan Olson <[email protected]>
`metrics::register` registers a `derive(gdl::Metrics)` struct on an
endpoint. Each series gets Dynamo's `dynamo_component_` prefix, and gets
`dynamo_namespace`, `dynamo_component`, `dynamo_endpoint` and `worker_id`
once each, with the values Dynamo's own metrics on that endpoint carry.

The metrics go in a registry made with `Registry::new_custom`, which adds
the prefix and labels when it gathers. That registry is a child of the
endpoint's registry, so `/metrics` and OTLP both read it. Dynamo's
existing metrics do not move.

The tests scrape `/metrics` over HTTP and compare the labels with a
series that Dynamo's `create_metric` makes on the same endpoint.

Signed-off-by: Ryan Olson <[email protected]>
A gdl node's `Build::Config` is Dynamo's existing serde type for that
component. Dynamo's loader reads it and passes it to `Build::build`, so
flags, environment variables and files do not change. gdl's loader lives
in gdl's runtime, which this crate does not link.

The tests build a node from `KvRouterConfig`, loaded from `DYN_ROUTER_*`,
and from `MockerConfig`, loaded from JSON. They check the node gets the
loaded values, not the defaults.

Signed-off-by: Ryan Olson <[email protected]>
Add PreprocessedRouting::new, which takes the backend engine and the
prefill and encoder routers. build_preprocessed_routing now ends by
calling it, so there is one way to build the struct.

Move the embeddings chain out of the model watcher into
build_embeddings_pipeline, which takes the engine at its end. The
watcher passes its PushRouter. One difference: the watcher now creates
the PushRouter before it builds the preprocessor, so a model whose
embeddings preprocessor fails creates the router before it errors.

Export build_pipeline, build_embeddings_pipeline and
PreprocessedRouting::new so a test outside the crate can build each
pipeline with a test engine in place of the workers. No behavior
changes.

Signed-off-by: Ryan Olson <[email protected]>
The bridge attached each node registry as a child of the endpoint's
registry. Child registries are merged only at scrape time, so two
failures appeared there instead of at registration:

- A second registration on one endpoint succeeded, but the scrape served
  only the first one's values.
- A node metric named like a Dynamo work-handler metric, such as
  `request_bytes_total`, made `/metrics` return 500. gdl's derive does
  not reserve that name.

A collector on the endpoint's own registry now serves the node registry.
It describes each metric under its served name and labels, so Prometheus
refuses either clash when the second registration is made, as it does
for Dynamo's own metrics.

Signed-off-by: Ryan Olson <[email protected]>
Ingress::for_engine wrapped each engine in a SegmentSource linked to a
ServiceBackend. Every worker request went through that pipeline's
per-request response map and edges, though a single engine's stream is
already the call's return value.

Ingress now stores the engine and calls it. for_pipeline, link and
attach still take a SegmentSource and store it as the engine, so they
work as before.

The map also refused a second request whose id was still inside the
engine call. A migration retry keeps its id and can reach the same
worker, and the frontend reads that refusal as a Conflict. Ingress
keeps this with a set of ids held only for the engine call.

Allocations per worker request (ingress_allocations): 67 to 55 for a
one-item stream, 127 to 115 for 16 items. The test's ceilings drop to
match.

Signed-off-by: Ryan Olson <[email protected]>
Prometheus records each descriptor's help and labels before it checks
the next one, and keeps them for the life of the registry, even through
`unregister`. So when a node's second field clashes, its first field's
name stays reserved on that endpoint. Nothing can undo that, and a
refused registration is a startup error. The test records the behavior,
and the module doc names it.

Signed-off-by: Ryan Olson <[email protected]>
CxBridge::cx makes a gdl Cx that follows a Dynamo request context: a
stop of the context stops the Cx, and a kill cancels it. The Cx is
linked as a child of the context, so it needs no task, and it carries
the Dynamo id as metadata for logs. A Cx never leaves the cancelled
state, so a kill stays a kill even when a stop comes after it.

CxBridge::context goes the other way, for a request that starts in
gdl: a stop of the Cx stops the context, and a cancel kills it. A task
forwards the signals and ends when the context is dropped. It never
sends a stop after a kill, which Dynamo's controller would let replace
the kill.

Signed-off-by: Ryan Olson <[email protected]>
Three adapters, so that a gdl pipeline can be built from Dynamo's own
engines and operators and served where Dynamo serves an engine:

- EngineSink: a Dynamo engine as a gdl Sink.
- PipelineEngine: a gdl Next as a Dynamo AsyncEngine. Each call
  derives a fresh Cx from the request's context. The response stream
  carries that context.
- DynOperatorStage: a Dynamo Operator as the inner end of a gdl Hop.
  It wraps its downstream hop in a PipelineEngine once, when it is
  built.

The request stays SingleIn<T>, and its context is the source of truth.
Items stay Annotated<T>, so a Dynamo error item does not end a stream.

An eager error enters gdl as a gdl::Error whose source holds the
original anyhow::Error, and the source chain reaches every error in it.
It leaves through PipelineEngine as the same anyhow::Error. So
Migration still retries an eager WorkerUnavailable, and the HTTP
handler still maps an engine's HttpError to its status.

A gdl scope's cancel does not reach the request's context, because gdl
cancels every attempt when it ends, also when it ends normally.

The tests run Migration and the HTTP service through the adapters. They
use dynamo-llm as a dev-dependency only, so that dynamo-llm can later
depend on this crate.

Signed-off-by: Ryan Olson <[email protected]>
Counts allocations per request through the adapters and through
Dynamo's link chain, over the same engine and identity operators, with
0 to 5 stages and 1 or 16 items. It prints the table and fails only if
the adapters allocate per item. The adapted path costs more per request
than the link chain. That path is off by default, and the numbers are
there to measure it.

Signed-off-by: Ryan Olson <[email protected]>
Dynamo assigns the identity labels by position in the hierarchy, so
under a nested namespace dynamo_component is the inner namespace and
dynamo_endpoint is the component. The bridge copies that. Say so in the
module doc, which rustdoc renders; until now only a private function
said it.

Signed-off-by: Ryan Olson <[email protected]>
Serve a gdl node's metrics on a Dynamo endpoint, with Dynamo's prefix
and identity labels, and give a gdl node Dynamo's config type and loader.

Signed-off-by: Ryan Olson <[email protected]>
…licates

Run one request and an in-call duplicate through each constructor,
including for_pipeline, link and attach, which still take a
SegmentSource pipeline.

Signed-off-by: Ryan Olson <[email protected]>
Ingress calls the worker's engine directly, without a SegmentSource and
its per-request id map: 67 to 55 allocations per worker request (one
item). The duplicate-id refusal Migration relies on stays.

Signed-off-by: Ryan Olson <[email protected]>
PipelineEngine ended the stream with no item when gdl reported a cancel
of a killed request. It read the kill from the Dynamo context. A stop
after the kill makes that context report it was stopped, not killed. So
the stream then sent a Cancelled error item. The Cx derived from the
context stays cancelled, so read the kill from it as well.

Signed-off-by: Ryan Olson <[email protected]>
Delete the selector between Dynamo's link chain and the gdl pipeline:
LocalPipeline, DYN_LOCAL_PIPELINE, with_local_pipeline, and the
local_pipeline parameter of build_pipeline and build_embeddings_pipeline.
The frontend's routed pipelines, its embeddings pipeline, and the
in-process pipeline of the HTTP and gRPC inputs are now always composed
on gdl.

Also delete what only the Dynamo branch used: the engine field of
RoutingTerminal::Engine, the card argument of build_embeddings_pipeline,
Migration::into_operator_for, and the log lines that named the selected
pipeline.

The tests that ran each case on both pipelines now run it on gdl and
keep the gdl assertions. The allocation rows keep the gdl rows only;
their counts do not change.

One test ignored because of the Dynamo case now passes and runs:
a_cancelled_dispatch_preserves_one_classifier_lifecycle_through_detached_cleanup.

A Python caller of the preprocessed pipeline that is killed during
dispatch now gets a Cancelled error instead of an empty stream. HTTP
still answers 499.

Signed-off-by: Ryan Olson <[email protected]>
Backend runs only as the gdl around node now. Delete its Dynamo Operator
impls (tokens, and the embeddings pass-through) and generate_tokens,
which only they called.

DecoderState and DecoderStream were generic over the form of their items
so they could serve both pipelines. They now read gdl items directly,
still in their gdl Result, so no item moves more than before. The helpers
that read a checked item move to operator.rs as free functions, for
Migration to use as well.

Signed-off-by: Ryan Olson <[email protected]>
The chat and completions preprocessors run only as gdl around nodes, and
the embeddings preprocessor only as a native gdl operator. Delete their
three Dynamo Operator impls, and generate_chat and generate_completion,
which only those impls called.

chat_forward and completion_forward took a dispatch and a then closure
so each pipeline could plug in its own send. They now return the
preprocessed request and the state, as the gdl closures did; chat_forward
also validates the tools, as its gdl closure did, before the request is
sent on. generate_embedding and embedding_forward take gdl's downstream.
The backward halves stay generic over the stream they read: a test
drives chat_backward with a pending stream.

Allocations per request do not change. The forward future of the chat
and completions nodes no longer keeps its state across an await of a
ready future, so a-gdl and b-gdl ask for 1,968 fewer bytes per request.

Signed-off-by: Ryan Olson <[email protected]>
Migration runs only as a native gdl operator. Delete its Dynamo Operator
impl.

Its body, its response stream (Migrated) and RetryManager were generic
over the Downstream the two pipelines passed. They now take gdl's
downstream, still generic over the next hop, and read the attempt's
items in their gdl Result as before. The item form (ItemForm, and
send_items and respond_items on Downstream) had no other user, so it
goes too; send_items is now a method of GdlDownstream. The two methods
RetryManager's Drop calls move to an impl block with no bound on the
next hop.

Allocations per request do not change. Migration's future no longer
keeps a second copy of the request's context, so b-gdl and c-gdl ask for
32 fewer bytes per request.

Signed-off-by: Ryan Olson <[email protected]>
The prefill router runs only as a native gdl operator. Delete its Dynamo
Operator impl.

route and forward_decode were generic over the Downstream the two
pipelines passed. They now take gdl's downstream and return gdl items.
route takes the gate its caller read always: only the Dynamo operator
passed none and let route read it. forward_decode no longer keeps a
second reference to the decode stream's context, which it held only to
box the response for the Dynamo operator. respond and adopt on
Downstream had no other user, so they go too.

Signed-off-by: Ryan Olson <[email protected]>
The encoder router runs only as a native gdl operator. Delete its
Dynamo Operator impl, and make encode take gdl's downstream and return
gdl items.

It was the last user of DynamoDownstream, the Downstream every Dynamo
operator passed its body, so DynamoDownstream goes too, with pass, which
only boxed a stream for a Dynamo caller.

Signed-off-by: Ryan Olson <[email protected]>
The Downstream trait let each operator body run under both pipelines.
GdlDownstream is now its only implementation, so its methods (send,
forward and send_cleanup) become GdlDownstream's own, and the trait
goes. The module docs describe the native operators alone.

Signed-off-by: Ryan Olson <[email protected]>
…peline

No adapter in this crate served only a Dynamo composition: PipelineEngine,
EngineSink, CxBridge and the item readers are what the gdl pipelines and
their Dynamo engines use, at the boundary and inside. So nothing is
deleted; three doc comments stop describing Dynamo's link chain as a
current pipeline.

The marks on cx_for_dynamo_stages, for_dynamo_stages and cancel_on_kill
stay: pipeline A and the embeddings pipeline still have a Dynamo engine
inside them.

Signed-off-by: Ryan Olson <[email protected]>
hotpath.sh and callgrind.sh no longer measure the dynamo form of A, B, C
and embeddings: that pipeline is gone. The RISE mark, which used to guard
the dynamo rows only, now marks any row that got worse; WORSE is no longer
written.

A base from before the switch has those four rows, and the strict parser
would reject it. --base now skips each of them, names it on stderr, and
compares the rest. callgrind-test.sh checks this with a both-forms base,
and that an unknown dynamo row is still an error. Its other cases move
from the dynamo rows to the gdl rows.

hot-paths.md keeps the last table with both forms (table 18, x86_64,
fab21e5 against cecbba9) as the record of the switch.

Signed-off-by: Ryan Olson <[email protected]>
Remove the DYN_LOCAL_PIPELINE field from the frontend configuration
reference, and describe the router's cancellation on the gdl pipeline
as the only case.

Add a behavioral entry for the upcoming release to the deprecations
ledger: the frontend's local pipelines run on gdl, and a request on a
chat_engine_factory's routed engine that is killed during dispatch now
raises an exception for a Cancelled error, where it returned an empty
stream. HTTP still answers 499.

Signed-off-by: Ryan Olson <[email protected]>
The frontend has one local pipeline, so the session affinity, repeated
prompt cache hit and SGLang Generate tests no longer run once per
pipeline. Delete the pipeline parameter and the helpers that set
DYN_LOCAL_PIPELINE and read back the pipeline the frontend logged.

Signed-off-by: Ryan Olson <[email protected]>
Clippy's type_complexity lint rejects the tuple chat_forward returns
since it became concrete. Name it ChatForward. No code changes.

Signed-off-by: Ryan Olson <[email protected]>
@ryanolson
ryanolson had a problem deploying to external_collaborator November 5, 2026 20:27 — with GitHub Actions Failure
The local pipeline nodes (ServiceFrontend, SegmentSource, PipelineOperator
and the rest) have no users left outside their own tests. Remove
tests/pipeline.rs with the helpers only it used (common/mock.rs and
common/engines.rs), and the for_pipeline, link and attach cases of the
Ingress duplicate-id test, so the next commits can delete the nodes.

Signed-off-by: Ryan Olson <[email protected]>
These took a SegmentSource pipeline, and nothing builds one any more. A
worker's Ingress is built from an engine with Ingress::for_engine and its
variants, which stay.

Signed-off-by: Ryan Olson <[email protected]>
Delete pipeline/nodes: Source, Sink, Edge, link, Operator,
PipelineOperator, PipelineNode, the Frontend response map,
ServiceFrontend, ServiceBackend, SegmentSource, SegmentSink and the
Service alias, with their re-exports from pipeline.rs. The frontend's
local pipeline is gdl, and nothing builds these nodes any more.

Delete the five PipelineError variants that only the nodes returned:
EdgeAlreadySet, NoEdge, NoNetworkEdge, DetachedStreamReceiver and
DetachedStreamSender. DuplicateRequestId stays, because a worker's
Ingress still returns it; its doc now names the Ingress only.

AsyncEngine, AsyncEngineContext, Context, ResponseStream, the
Ingress::for_engine constructors, retain, EngineContextGuard and
link_child stay.

Signed-off-by: Ryan Olson <[email protected]>
Ingress::new and Ingress::new_with_adapter build an Ingress with no
engine. Before, Ingress::attach set the engine afterwards; with attach
gone nothing can, and the first request panics with "engine not set".
Make both private: the for_engine constructors use them, and so do the
push handler tests that never reach the engine.

The Ingress doc now shows how to build one from an engine, with
compile_fail examples that keep the two constructors out of reach.

Signed-off-by: Ryan Olson <[email protected]>
… pipeline::Event

Only the deleted pipeline tests and their mock network used them. The
pipeline module's doc comment sat on the serde import that Event needed;
it is now the module's own doc.

Signed-off-by: Ryan Olson <[email protected]>
@ryanolson
ryanolson had a problem deploying to external_collaborator November 5, 2026 22:11 — with GitHub Actions Failure
…ean end

A nested gdl call whose request is killed or passes its deadline ends
quietly, as if it had finished. A node that writes closing output when
its input ends needs to know which it was.

Add cut_short(cx, context) and the CutShort trait on AnnotatedItems and
CheckedItems. It reads gdl's Cx::check (cancel, deadline) and the Dynamo
context's kill, since a pipeline rooted for Dynamo stages does not cancel
its Cx on a kill. A stop is not a cut.

Signed-off-by: Ryan Olson <[email protected]>
When the engine's stream ends with a choice unfinished, Backend flushes
the text a decoder holds back and marks the choice finished. After a
kill or a passed deadline the stream also ends cleanly, so a cut answer
was marked finished with `finish_reason: stop`.

Check once, on that end, whether the request was cut short, and end
with no flush if it was. A graceful stop still flushes and finishes.

Signed-off-by: Ryan Olson <[email protected]>
A request that is killed or passes its deadline ends its response stream
cleanly. The chat and completions preprocessors then wrote their closing
output as for a finished answer: the usage chunk, the response parsers'
end-of-stream flush (the tool-call jail closes an open call with
`finish_reason: tool_calls`), and a complete payload record.

The response transform now checks once, where its input ends, whether
the request was cut short, and then writes no usage chunk. The response
parsers, some of them in the published dynamo-parsers crate, cannot be
asked, so the decision reaches them through a shared flag and one gate
above them ends their output. The payload capture records the request
as dropped, with reason `request_cut_short`. The flag is allocated only
when the parsers or the payload capture run, never on the default path.
A graceful stop still ends with the usage chunk.

Signed-off-by: Ryan Olson <[email protected]>
The routing host reports a request complete to the router's plugins when
the worker's stream ends cleanly. A kill is caught by the stream's
`stopped` arm, but only when it is seen before the stream's end. A kill
that lands while the stream ends was reported as `Completed`.

Check the kill once, at the stream's end, and abort the request if it was
killed. The sink's gdl context cannot tell, since gdl cancels it at the
end of every attempt.

Signed-off-by: Ryan Olson <[email protected]>
When decode's stream ends, the prefill handoff waits for prefill and
sends prefill's output. Pin that a kill landing as decode ends adds no
`finish_reason` and no error: prefill's output reports a prefill that did
complete, not a finished answer.

Signed-off-by: Ryan Olson <[email protected]>
…h roots

Run the frontend's own chat pipelines, the in-process one (a kill does
not cancel its Cx) and the routed one (a kill does), over a worker that
finishes its answer. A whole answer keeps its finish and usage chunk on
both, so the end check does not fire on a normal end. A request killed
as the worker's stream ends keeps the worker's finish but gets no usage
chunk and no error item.

Signed-off-by: Ryan Olson <[email protected]>
The chat response parsers no longer close a tool call left open when a
request is killed. The HTTP custom-tool adapter then found the call still
open at the end of the stream and ended with an error item, where a
killed stream must end quietly.

Pass the request's context to the adapter, and raise the error for an
open call only when the request was not killed.

Signed-off-by: Ryan Olson <[email protected]>

This branch had an error being deployed

1 failed deployment
external_collaborator — 82d35a6f Deployed Nov 6, 2026 by ryanolson via ok-to-test #28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants