feat(hub): show AgentBox version in settings footer#179
Merged
Conversation
Add a version field to the public /api/v1/health probe (read from the inherited AGENTBOX_CLI_VERSION; apps/hub's own package.json is a 0.0.0 placeholder) and render a quiet footer line on the settings page that fetches it client-side.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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
Adds a quiet version footer to the bottom of the hub Settings page (this repo) and the tray Settings window (companion change already pushed to
madarco/agentbox-tray@main)./api/v1/healthnow returns aversionfield (read from the inheritedAGENTBOX_CLI_VERSION;apps/hub's ownpackage.jsonis a0.0.0placeholder). The settings page fetches it client-side and rendersAgentBox <version>— matching the "hub web = pure REST client" convention (feature behind/api/v1, no server action).Tray <build> · AgentBox <hub version>, fetching the hub version off the same/api/v1/healthprobe and degrading to the tray version alone when the hub is unreachable.The hub's version is the AgentBox version — same string surfaced in both places.
Verify
curl -s localhost:8787/api/v1/health→{"ok":true,"apiVersion":"v1","version":"0.23.0","profile":"localhost"}hub restart;/settingsrenders theAgentBox 0.23.0footer.swift buildclean; footer verified in code against existingHubClient.get+BoxSourcepatterns (visual check is manual on a built.appbundle sinceCFBundleShortVersionStringneeds the bundle).Docs: UI-only footer, no CLI/flag/config surface change, so no
apps/webdocs update needed.Note
Low Risk
UI-only display plus a non-sensitive version string on an already-public health endpoint; no auth or data-path changes.
Overview
Exposes the running AgentBox version on the public
GET /api/v1/healthprobe via a newversionfield sourced fromAGENTBOX_CLI_VERSION(fallbackdev), instead of the hub app’s placeholder package version.The hub Settings page fetches that probe client-side and renders a small
AgentBox <version>footer, with…while loading or on failure.Reviewed by Cursor Bugbot for commit 1809ddf. Configure here.