Repository navigation
feat: streaming chat and after-seal check for the Inspector - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API side of the Inspector panel.
POST /chatstreams answers over the AI SDK UI Message Stream protocol v1: tool steps (getOrder, watchPack, searchArchive) astool-*parts, cited moments asdata-evidenceparts, the answer as text deltas from W&B Inference, and the Weave trace URL in the finish metadata. Errors reach the client as a generic message; details stay in the log./askand the streaming route share one agent loop (converse, the traced Weave op).proofbox.checks;GET /packs/{id}/checkserves it and answers 404 until it exists.kill -USR1 <pid>dumps every thread's stack to the log. The inspector test instance froze once without a reproducible cause, and ptrace is locked on the VM.Tested with 25 api tests (fake W&B server streaming split text and tool-call chunks), and live on a separate instance on the VM: full streams, three concurrent chats, and clients disconnecting mid-answer.
Known:
searchArchivesearches the shared VSS collection, so it can cite other teams' clips with no pack id.