Repository navigation
Show how long the model thought before each reply - #41
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Slice 20: the visitor sees when the model is thinking and for how long, never what it thinks.
timeThoughts, from the request or from the moment the last step running finished, to the next reply's first text or step. It adds adata-thoughtpart to the answer at that place, so it's kept with the conversation and outlasts a reload. Answers kept before this have none and show none, soSTORED_FORMATstays 2.groupContentdoes. The count still counts only the searches.src/server: no files changed.src/lib: no files changed. The times go back to the server inside the answers.safeValidateUIMessagesaccepts them, andconvertToModelMessagesleaves them out (ai 7.0.143). A unit test runs the fake model on a conversation with and without the times and shows the model's input is identical.Checks (local, fakes):
verifypassed (488 unit tests).test:e2epassed all 67 in the second full run; the first failed 6 waiting on the fake model's answer (KI-7, noted). Page checked at 1440px and 375px on a dev server with the fakes.Unverified: the real model's waits and times on staging; Safari and Firefox.