feat(agents): show last used by/at on card and settings#3302
Open
feat(agents): show last used by/at on card and settings#3302
Conversation
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsSuggested: Minor ( React with an emoji to override the release type:
Current version:
|
a0f147e to
87863ef
Compare
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.
What is this contribution about?
Surfaces "last used" information for agents in two places: the agent card footer (grid/list view) and the agent settings page. Data is derived from the most recent thread created for each agent — no schema migration required.
[avatar] Name · Created May 6 · Last used X ago— with a second avatar shown inline only when the last user differs from the creatorVirtualMCPEntity: two new optional fieldslast_used_at/last_used_bypopulated via aDISTINCT ONquery against the threads tableUsercomponent: newnameClassNameprop to allow callers to override the hardcodedfont-mediumon the name textScreenshots/Demonstration
How to Test
Migration Notes
No database migrations required.
last_used_atandlast_used_byare computed at read time from the existingthreadstable.Review Checklist
Summary by cubic
Show the “last used” time and user for each agent in the card footer and on the settings page, based on the latest thread. Adds
last_used_atandlast_used_byto the entity and SDK; no migration needed.DISTINCT ONquery onthreadsand returnslast_used_at/last_used_byin both single and list fetches.Written for commit 87863ef. Summary will update on new commits.