Repository navigation
feat(signals): record model usage per user from each run's outcome - #31
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
blockchainluffy
force-pushed
the
feat/usage-tracking
branch
from
October 28, 2026 12:58
fea9d7f to
5588d21
Compare
jannikluhn
reviewed
Oct 28, 2026
| * How long a Run may take, in milliseconds, before the runtime sends `abort` to pi. Defaults to | ||
| * 15 minutes. The Run fails with the usage reported so far. | ||
| */ | ||
| readonly timeoutMs?: number; |
Contributor
There was a problem hiding this comment.
I think the timeout should be out of scope of this PR, and is not trivial. If we add it we should distinguish between an actually stuck agent and a response that just takes a long to generate
Contributor
Author
There was a problem hiding this comment.
The issue when we dont have timeout is, we cannot record usage for any agent call before the hung agent call and will be charged for tokens used in those. Maybe, having it as optional is better and then suggesting to use it? lmk your thoughts
Contributor
Author
There was a problem hiding this comment.
As discussed, the timeout should be if no token gets generated and not on the run itself and deserves another issue
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
feat(signals): stop runs that go past a usage limit
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.
No description provided.