Feat/reset wipe#55
Open
lazToum wants to merge 5 commits into
Open
Conversation
…ate, reset in-memory metrics
- Route the reset fetch through __WACTORZ_INGRESS_PATH so every scope works
under HA ingress (was a bare /api/reset → 404 under ingress).
- metrics scope now also zeroes live in-memory counters (cost, tokens,
messages_processed) on running actors, so the overview updates immediately
instead of waiting for a restart.
- logs scope clears the in-memory log_feed buffer so a refreshed client
doesn't replay truncated lines.
- Narrow the chat scope so clearing chat history no longer zeros cost/message
counters or wipes the alerts/activity feed (that cleanup is metrics-only).
- Refresh two stale ws.test cases to current reset behaviour (all →
af-wipe-all) and add backend tests for the metrics/logs/chat changes.
Includes rebuilt frontend static assets.
Member
|
Warning to code reviewers: We decided to withold merge into dev until after 0.5.0's release in main. (est ~June 15th) |
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.
Summary
Makes all six reset-dropdown scopes (chat / metrics / spawns / state / logs / all) work end-to-end and behave consistently. Key fix: the reset fetch was missing the ingress prefix, so under HA every button 404'd. Also makes metrics reset visible live (zeros running actors' in-memory counters), clears the feed buffer on logs, and narrows chat so it only touches chat history.
Tested: chat + metrics verified live (metrics needs a server restart to load this build, since Python isn't hot-reloaded); frontend 513 tests, backend reset 27 + cost/history 46 green.