Repository navigation
fix: a timer wake with nothing to do makes no model call; a refused token on connect is retried - #36
Merged
Merged
Conversation
…ello and one more try A substrate actor's first MCP connect of a wake could meet a 401 (the core revokes a token issued before it marked the actor suspended, and its record can flip while the wake runs). The turn failed with the core MCP server not reachable and the wake was lost. The registry now calls Reauth once on an authorization-required error for the core (Link.Refresh: one hello at a time, new token to the token file the client reads on every request) and connects again.
A wake the model planned at the end of a turn that only read its room was counted as asked for, and on an actor every timer wake was (the core's order carries the plan's words, not who made it), so the quiet rule never applied. Who made the plan and whether the last timer turn did nothing are now kept in the state directory. A wake whose facts are all about closed issues is quiet too.
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.
Two idle timer wakes of an actor cost four model calls with the whole prompt and tool list, to read an empty room twice.
Release notes:
docs/releases/v0.9.10.md.