feat: display gateway target sync status after deploy#419
Open
aidandaly24 wants to merge 2 commits intoaws:feat/gateway-integrationfrom
Open
feat: display gateway target sync status after deploy#419aidandaly24 wants to merge 2 commits intoaws:feat/gateway-integrationfrom
aidandaly24 wants to merge 2 commits intoaws:feat/gateway-integrationfrom
Conversation
Query ListGatewayTargets after successful deployment and display sync status for each target: - READY: ✓ synced - SYNCHRONIZING: ⟳ syncing... - FAILED: ✗ failed Integrated into both CLI and TUI deploy paths. TUI uses React state for proper rendering. API errors are non-blocking — deploy succeeds regardless of status query result.
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.
Description
After deploying gateways, users had no feedback on whether their targets successfully connected to external MCP servers. The deploy output showed gateway URLs but nothing about target status — users had to go to the console to check.
This PR queries the
ListGatewayTargetsAPI after deploy completes and displays the sync status of each target:Status mappings:
READY→ ✓ syncedSYNCHRONIZING→ ⟳ syncing...SYNCHRONIZE_UNSUCCESSFUL→ ⚠ sync failedCREATING→ ⟳ creating...FAILED→ ✗ failedIntegrated into both the CLI deploy path (
deploy/actions.ts) and the TUI deploy path. The TUI uses proper React state management — statuses are stored intargetStatusesstate and rendered as components inDeployScreen, not hacked through the logger.API errors are non-blocking — if the status query fails (permissions, network, etc.), the deploy still succeeds and the status display is simply skipped.
Related Issue
Part of the MCP Gateway Phase 1 integration (gateway-integration branch). Task 11b.
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshots9 new tests covering:
Checklist